Skip to content Skip to sidebar Skip to footer

Pycharm/django Setup: Cannot Import Charset From Email?

I've been asked to contribute to some in-production Python/Django code. I'm setting it up in PyCharm. When I run the app, I get this error message: File '/myApp/myVirtualEnvironmen

Solution 1:

That may be caused by the name shadowing trap.

A cause may be that you are shadowing the Charset class, which is defined in the email.charset module, when you import from email import (charset as Charset, encoders as Encoders).

Another probable cause, supported by this issue: If you check your file tree, you may find a file named charset.py or Charset.py which shadows the above mentioned

Search your files and you will find what casts the shadow.

Post a Comment for "Pycharm/django Setup: Cannot Import Charset From Email?"