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

AttributeError: module 'typing' has no attribute 'Text' #261

Closed
gongqingkui opened this issue Jul 4, 2020 · 5 comments · Fixed by #267
Closed

AttributeError: module 'typing' has no attribute 'Text' #261

gongqingkui opened this issue Jul 4, 2020 · 5 comments · Fixed by #267

Comments

@gongqingkui
Copy link

X;\venv\lib\site-packages\dotenv\parser.py", line 44, in
("string", typing.Text),
AttributeError: module 'typing' has no attribute 'Text'

@bbc2
Copy link
Collaborator

bbc2 commented Jul 6, 2020

What version of Python are you using? If it's 3.4 or earlier, I'm afraid we don't support it.

@jjgutierrez0314
Copy link

Hello, I am also getting the same error. I am using Python 3.5.0

...
File "/mnt/nfs/exa/work/jjg/Microblog/venv/lib/python3.5/site-packages/dotenv/ parser.py", line 44, in ("string", typing.Text), AttributeError: module 'typing' has no attribute 'Text'

@gongqingkui
Copy link
Author

What version of Python are you using? If it's 3.4 or earlier, I'm afraid we don't support it.

I use Python3.5.1 in venv environment.
I fixed it with:
Change parser.py 58 line.
  except ImportError:
To
  except Exception:

It working.

@gongqingkui
Copy link
Author

Hello, I am also getting the same error. I am using Python 3.5.0

...
File "/mnt/nfs/exa/work/jjg/Microblog/venv/lib/python3.5/site-packages/dotenv/ parser.py", line 44, in ("string", typing.Text), AttributeError: module 'typing' has no attribute 'Text'

I use Python3.5.1 in venv environment.
I fixed it with:
Change parser.py 58 line.
except ImportError:
To
except Exception:

It working.

@gongqingkui
Copy link
Author

The question has been resolved by @bbc2 in #267

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

Successfully merging a pull request may close this issue.

3 participants