Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

377
Vistas
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/myVirtualEnvironment/lib/python2.7/site-packages/django/core/mail/message.py",
 line 8, in <module>
  from email import (charset as Charset, encoders as Encoders)
   ImportError: cannot import name charset

What could be causing this?

about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

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.

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda