Hi Jarvis,
Can you provide the error messages trace ? It can greatly help understanding what's happening.
If you haven't already done this, try to restart from a fresh new virtualenv inside which you'll install Django and the additional packages you've added (if any). Then restore a copy of your project in this context (if by chance you work with git, a simple git clone will do the trick) and test your app again.
Hoping you haven't already messed your system Python by installing stuff in sudo mode. The situation could be a little more complicated then.
Best.
Hi Jarvis,
Can you provide the error messages trace ? It can greatly help understanding what's happening.
If you haven't already done this, try to restart from a fresh new virtualenv inside which you'll install Django and the additional packages you've added (if any). Then restore a copy of your project in this context (if by chance you work with git, a simple git clone will do the trick) and test your app again.
Hoping you haven't already messed your system Python by installing stuff in sudo mode. The situation could be a little more complicated then.
Best.
Eric
From: django...@googlegroups.com <django...@googlegroups.com> on behalf of tango ward <tango...@gmail.com>
Sent: Tuesday, February 13, 2018 9:43:45 PM
To: django...@googlegroups.com
Subject: importError: Count Not import Django inside Virtualenv
JarvisThanks,Any advice pls?Hi,I want to seek some advice about the error. All of my pet projects in my desktop are getting the same error even though virtualenv is activated. I can confirm that when I started playing around with the projects, I have installed Django inside virtualenv without using "sudo". Now, I can't run python manage.py runserver and the packages that I am getting whenever I run pip freeze are different from before which doesn't include Django in the list.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA6wQLKp3oz-6FfDzQ%3Dip4XRsuLPSeOCuwkbUuWbe1JNx2YhFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/AM5P193MB0083C66FCD689270720750708CF60%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM.
Hi,
Hard to say without knowing the exact context, but my gut feeling is that you've modified a system wide library at a moment (maybe
inadvertently).
My own experience is that it's easy to mess with Python libraries when installing packages with sudo , which may happen form time to time when working with virtualenv (or pyenv) since not very long, and being caught up by old habits (they tend to survive longer that wanted 😊).
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA6wQLJCkd0B-0ep8jrUFk1QUp%3D_jQ_AuundhzBMwOSYf7h4fg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/AM5P193MB008390FC972C3F8D22B625968CF50%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM.
Hi Eric,
Hi,
Hard to say without knowing the exact context, but my gut feeling is that you've modified a system wide library at a moment (maybe inadvertently).
My own experience is that it's easy to mess with Python libraries when installing packages with sudo , which may happen form time to time when working with virtualenv (or pyenv) since not very long, and being caught up by old habits (they tend to survive longer that wanted 😊).
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/AM5P193MB008390FC972C3F8D22B625968CF50%40AM5P193MB0083.EURP193.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.
-- Etienne Robillard tka...@yandex.com https://www.isotopesoftware.ca/
Hi,
The copy/paste of the project tree will work of course. Chances are that unwanted files can be brought too, but this should not be a problem in a first stage.
I have used rsync or tar archives to deploy Django projects in some cases, and it worked fine.
Hi Etienne,
I prefer messing with standard distutils/setuptools commands to avoid situations like this... ;-)
Messing and restoring system libs is a matter of personnal taste
😃