Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #18558 > unrolled thread

virtualenv wrecked my Django+modules install

Started byAlec Taylor <alec.taylor6@gmail.com>
First post2012-01-06 06:01 +1100
Last post2012-01-07 14:38 +1100
Articles 5 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  virtualenv wrecked my Django+modules install Alec Taylor <alec.taylor6@gmail.com> - 2012-01-06 06:01 +1100
    Re: virtualenv wrecked my Django+modules install 88888 Dihedral <dihedral88888@googlemail.com> - 2012-01-05 14:16 -0800
    Re: virtualenv wrecked my Django+modules install 88888 Dihedral <dihedral88888@googlemail.com> - 2012-01-05 14:16 -0800
    Re: virtualenv wrecked my Django+modules install alex23 <wuwei23@gmail.com> - 2012-01-05 18:48 -0800
      Re: virtualenv wrecked my Django+modules install Alec Taylor <alec.taylor6@gmail.com> - 2012-01-07 14:38 +1100

#18558 — virtualenv wrecked my Django+modules install

FromAlec Taylor <alec.taylor6@gmail.com>
Date2012-01-06 06:01 +1100
Subjectvirtualenv wrecked my Django+modules install
Message-ID<mailman.4458.1325790109.27778.python-list@python.org>
Good morning,

On my system (Windows 8 Developer Preview x64 with Python 2.7.2 x64) I
painstakingly installed all the dependencies for Django, Satchmo and a
few other large scale projects.

(about 10% couldn't be installed with pip, which is why I use the word
'painstakingly')

Recently though I needed Pinax for something, so following there guide
(http://pinax.readthedocs.org/en/latest/gettingstarted.html) I setup a
virtualenv for it.

Not only could I not get Pinax running, but when I went back to work
on my Satchmo-based project, and ran "manage.py runserver" I got the
following error:
Traceback (most recent call last):
  File "P:\Prototype\Django\store\manage.py", line 18, in <module>
    from django.core.management import execute_manager
ImportError: No module named django.core.management

Typing in `import django` from the interpreter gives me:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named django

Does this mean I need to install everything required by my project all
over again? - If so, should I take a virtualenv approach (and what
would the advantages be of doing so)?

Thanks for all suggestions,

Alec Taylor

[toc] | [next] | [standalone]


#18563

From88888 Dihedral <dihedral88888@googlemail.com>
Date2012-01-05 14:16 -0800
Message-ID<32395968.380.1325801795538.JavaMail.geo-discussion-forums@prar8>
In reply to#18558
Use co-linux or VMware to do some experiment first. 

This is better than those old days of workstations or the mainframes
from 5 to 10 vendors 20 years ago.

[toc] | [prev] | [next] | [standalone]


#18564

From88888 Dihedral <dihedral88888@googlemail.com>
Date2012-01-05 14:16 -0800
Message-ID<mailman.4461.1325801798.27778.python-list@python.org>
In reply to#18558
Use co-linux or VMware to do some experiment first. 

This is better than those old days of workstations or the mainframes
from 5 to 10 vendors 20 years ago.

[toc] | [prev] | [next] | [standalone]


#18575

Fromalex23 <wuwei23@gmail.com>
Date2012-01-05 18:48 -0800
Message-ID<60f10857-6a3d-4f3d-9d69-39487e4885f8@e2g2000vbb.googlegroups.com>
In reply to#18558
On Jan 6, 5:01 am, Alec Taylor <alec.tayl...@gmail.com> wrote:
> Does this mean I need to install everything required by my project all
> over again? - If so, should I take a virtualenv approach (and what
> would the advantages be of doing so)?

Virtualenv should _never_ clobber any non-virtualenv installs, that's
the whole purpose of it.

> Not only could I not get Pinax running, but when I went back to work
> on my Satchmo-based project[...]

Did you de-activate the Pinax virtualenv before trying to work on your
other project? That's the only guess I have as to why you couldn't see
your original installation.

[toc] | [prev] | [next] | [standalone]


#18632

FromAlec Taylor <alec.taylor6@gmail.com>
Date2012-01-07 14:38 +1100
Message-ID<mailman.4502.1325907531.27778.python-list@python.org>
In reply to#18575
I ran Pinax-env\Scripts\deactivate.bat but it didn't change anything.

I'm skeptical if satchmo will work in a virtualenv, since many of its
dependencies (such as PIL) I had to install with a setup from here:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil

How would I get around this issue in a virtualenv?


P:\Prototype>where python
C:\Python27\python.exe

P:\Prototype>Pinax-env\Scripts\activate.bat
(Pinax-env) P:\Prototype>where python
P:\Prototype\Pinax-env\Scripts\python.exe
C:\Python27\python.exe

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web