Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running code #37

Open
okofishe opened this issue Jan 12, 2024 · 1 comment
Open

Error when running code #37

okofishe opened this issue Jan 12, 2024 · 1 comment

Comments

@okofishe
Copy link

Hello,
after pip install extract_emails and trying to run your sample code i got the error below. What could be the problem. Thanks in advance and between pip install extract_emails[all] is not working, why?

Traceback (most recent call last):
File "/Users/user/My Drive/emailextractfromURL/olu.py", line 3, in
from extract_emails import DefaultFilterAndEmailFactory as Factory
File "/Users/user/My Drive/emailextractfromURL/venv/lib/python3.9/site-packages/extract_emails/init.py", line 2, in
from .factories import (
File "/Users/user/My Drive/emailextractfromURL/venv/lib/python3.9/site-packages/extract_emails/factories/init.py", line 1, in
from .base_factory import BaseFactory
File "/Users/user/My Drive/emailextractfromURL/venv/lib/python3.9/site-packages/extract_emails/factories/base_factory.py", line 6, in
from extract_emails.link_filters import LinkFilterBase
File "/Users/user/My Drive/emailextractfromURL/venv/lib/python3.9/site-packages/extract_emails/link_filters/init.py", line 1, in
from .contact_link_filter import ContactInfoLinkFilter
File "/Users/user/My Drive/emailextractfromURL/venv/lib/python3.9/site-packages/extract_emails/link_filters/contact_link_filter.py", line 7, in
class ContactInfoLinkFilter(LinkFilterBase):
File "/Users/user/My Drive/emailextractfromURL/venv/lib/python3.9/site-packages/extract_emails/link_filters/contact_link_filter.py", line 53, in ContactInfoLinkFilter
contruct_candidates: list[str] | None = None,
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'NoneType'

@Praveensenpai
Copy link

which python version are u using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants