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
cannot import name 'message_from_file' #13
Comments
Hi! This issue seems to be coming from your virtualenv and/or package manager itself, not from django-rest-passwordreset. Are you using virtualenv or pipenv? Is this happening with the latest version of django-rest-passwordreset (0.9.6) or also with older versions (e.g., 0.9.5)? How are you installing the package? (using edit: What version of pip are you using ( |
Hi! I'm creating the virtualenv like this
I've installed the package using pip Version: 10.0.01 Maybe it's a problem with my e-mail backend configuration?
|
Some dependency on I'm using Arch Linux with Python 3.7 on system and Python 3.6 on the virtualenv, when I run I've tried on 2 computers and reinstalled my system and the problem still happens (guess who going to reinstall his system again 😢). |
This should really not be the case at all. In addition, a package that you install in a virtualenv should not (and actually can not) break your system python installation (if it does, then something else is really wrong with your virtualenv or python installation...). We're using this library heavily on debian and Ubuntu systems, and have never had an issue like this before. Is it possible that your virtualenv version is quite old? Can you do a virtualenv --version and if possible upgrade virtualenv on your system before you install the project and dependencies? |
I get this error using
After this, doesn't matter what version of python 3 that I'm using, it breaks and gives this error:
The error stays even after I uninstall Virtualenv version: 16.0.0
Pip freeze before installing
|
Doesn't seem to be exactly a problem on your lib, but triggered from it. When I have a little more time I'll try to make a repo to reproduce this issue. |
Hi! I'm wondering if you came across this issue again (or if you found a solution to it, other than not using this package)? |
I am also getting same msg with import pandas as pd in django web application but in pip freeze does not have django_rest_passwordreset package Traceback (most recent call last): |
@giovannicimolin @saurabhaec Do you happen to have a file called "email.py" (or a folder called "email") somewhere within your project? |
I got this problem, I have tried to run sever through virtual env as follows this seems to be working. when I am trying with apache (by http with port 80) it seems to be not working. I think the error due to not able to import library from site_packages. Try on checking python path given in apache2 configuration because it works with django runserver method. |
@rinshankolayil do you happen to have a file called "email.py" or a folder called "email" somewhere within your project? |
@anx-ckreuzberger : Aah may be there is one. I will check and tell you.Anyway thanks |
When I try adding
'django_rest_passwordreset'
to django apps, I get this error:And removing it my app runs fine. Can you help me with this issue?
This has something to do with the
email
package?Django: 2.1.2
Python: 3.6
Using virtualenv.
The text was updated successfully, but these errors were encountered: