fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] The `plugin_env` should be an ``Environment`` instance th


From: Nilesh
Subject: Re: [Fab-user] The `plugin_env` should be an ``Environment`` instance that contains pkg_resources.VersionConflict: (pycrypto 2.0.1 (/usr/lib/python2.6/dist-packages), Requirement.parse('pycrypto>=2.1'))
Date: Wed, 28 Sep 2011 15:41:40 -0700

Thanks Jeff.

pip freeze shows pycrypto==2.0.1 so I ran mkvirtualenv
--no-site-packages x and then pip install fabric and now gcc failed
(log attached).

Is there a recommended way to upgrade pycrypto to 2.1 or higher in my
main virtualenv I call w?

I tried below in the main virtualenv I call w.

(w)address@hidden:~/domains/w$ pip install --upgrade pycrypto
Downloading/unpacking pycrypto
 Running setup.py egg_info for package pycrypto
Installing collected packages: pycrypto
 Found existing installation: pycrypto 2.0.1
   Not uninstalling pycrypto at /usr/lib/python2.6/dist-packages,
outside environment /home/nilesh/domains/w
 Running setup.py install for pycrypto

----snip----

error: command 'gcc' failed with exit status 1

----------------------------------------
 Can't roll back pycrypto; was not uninstalled
Command /home/nilesh/domains/w/bin/python -c "import
setuptools;__file__='/home/nilesh/domains/w/build/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n',
'\n'), __file__, 'exec'))" install --single-version-externally-managed
--record /tmp/pip-iTiBTZ-record/install-record.txt --install-headers
/home/nilesh/domains/w/include/site/python2.6 failed with error code 1

(w)address@hidden:~/domains/w$ pip uninstall pycrypto
Not uninstalling pycrypto at /usr/lib/python2.6/dist-packages, outside
environment /home/nilesh/domains/w

On Wed, Sep 28, 2011 at 1:47 PM, Jeff Forcier <address@hidden> wrote:
> Hi Nilesh,
>
> On Wed, Sep 28, 2011 at 9:26 AM, Nilesh <address@hidden> wrote:
>> On a freshly installed ubuntu LTS 10.04.3 server I am getting errors
>> and I would appreciate help in understanding how to resolve. Thanks
>> and much appreciated.
>>
>> <snip>
>>
>> pkg_resources.VersionConflict: (pycrypto 2.0.1
>> (/usr/lib/python2.6/dist-packages),
>> Requirement.parse('pycrypto>=2.1'))
>
> Paramiko recently changed its requirements (I think as of 1.7.7.x) to
> require PyCrypto 2.1 or greater. It looks like you've got PyCrypto
> 2.0.1 installed, either from an earlier setup of Fabric or for some
> other package?
>
> What does 'pip freeze' show you in that virtualenv?
>
> Alternately, try making a "clean" virtualenv with 'mkvirtualenv
> --no-site-packages <name>' and reinstall Fabric in there -- this will
> especially help if my guess was right and you've got a pre-existing
> PyCrypto in your global site-packages.
>
> Please let us know if any of that helps narrow it down.
>
> Best,
> Jeff
>
>
> --
> Jeff Forcier
> Unix sysadmin; Python/Ruby engineer
> http://bitprophet.org
>

Attachment: pip.log
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]