Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

ImportError: cannot import name proxy_re #28

Closed
Braynid opened this issue Oct 5, 2013 · 7 comments
Closed

ImportError: cannot import name proxy_re #28

Braynid opened this issue Oct 5, 2013 · 7 comments

Comments

@Braynid
Copy link

Braynid commented Oct 5, 2013

I've installed storm via pip and I get the above error when I try running it.

I've checked and paramiko is installed as part of dist-packages

I'm using:
Ubuntu 12.10
Python 2.7.3

Thanks,

@emre
Copy link
Owner

emre commented Oct 5, 2013

It seems your paramiko version outdated. I will push proxy_re to the storm and remove the import for further problems. meantime you can try to update paramiko.

(sudo) pip install paramiko --upgrade

@Braynid
Copy link
Author

Braynid commented Oct 6, 2013

I've updated paramiko and now it works fine. Thanks.

@Braynid Braynid closed this as completed Oct 6, 2013
@dtelaroli
Copy link

For me, the upgrade return error:

Installing collected packages: pycrypto
Found existing installation: pycrypto 2.6
Uninstalling pycrypto:
Successfully uninstalled pycrypto
Running setup.py install for pycrypto
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash._MD2' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o
src/MD2.c:31:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;file='/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ght5JX-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
running build_ext
running build_configure
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash._MD2' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.7 -c src/MD2.c -o build/temp.linux-x86_64-2.7/src/MD2.o
src/MD2.c:31:20: fatal error: Python.h: No such file or directory
compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Rolling back uninstall of pycrypto
Command /usr/bin/python -c "import setuptools;file='/tmp/pip-build-root/pycrypto/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ght5JX-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build-root/pycrypto

@emre
Copy link
Owner

emre commented Oct 22, 2013

they key message in the error is here:

src/MD2.c:31:20: fatal error: Python.h: No such file or directory

you should install python-dev packages for your python version. for my case:

» apt-cache search python2.7-dev
python-all-dev - package depending on all supported Python development packages
python2.7-dev - Header files and a static library for Python (v2.7)

@emre emre reopened this Oct 22, 2013
@emre
Copy link
Owner

emre commented Oct 22, 2013

I reopened the issue since it's easy to get proxy_re into storm codebase.

@dtelaroli
Copy link

solved installing python-all-dev thanks.

software dependency hell again
maybe all dependencies should be installed by installer

@emre
Copy link
Owner

emre commented Oct 24, 2013

It is not possible to control python-dev packages with pip. :/

@emre emre closed this as completed in 60171f6 Nov 8, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants