Bonjour,
J'ai voulu installer PyDuino et ai donc chargé la branche dev
puis fait un python setup.py install
. Je suis dans un environnement virtuel Python 3 mais netifaces semble être chargé en Python 2 :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | Processing dependencies for pyduino==0.0.1 Searching for netifaces Reading https://pypi.python.org/simple/netifaces/ Best match: netifaces 0.10.4 Downloading https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz#md5=36da76e2cfadd24cc7510c2c0012eb1e Processing netifaces-0.10.4.tar.gz Writing /tmp/easy_install-98gagxxl/netifaces-0.10.4/setup.cfg Running netifaces-0.10.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-98gagxxl/netifaces-0.10.4/egg-dist-tmp-6e61mos9 Traceback (most recent call last): File "/home/ubuntu/.local/share/virtualenvs/rampe/lib/python3.4/site-packages/setuptools/sandbox.py", line 152, in save_modules yield saved File "/home/ubuntu/.local/share/virtualenvs/rampe/lib/python3.4/site-packages/setuptools/sandbox.py", line 193, in setup_context yield File "/home/ubuntu/.local/share/virtualenvs/rampe/lib/python3.4/site-packages/setuptools/sandbox.py", line 237, in run_setup DirectorySandbox(setup_dir).run(runner) File "/home/ubuntu/.local/share/virtualenvs/rampe/lib/python3.4/site-packages/setuptools/sandbox.py", line 267, in run return func() File "/home/ubuntu/.local/share/virtualenvs/rampe/lib/python3.4/site-packages/setuptools/sandbox.py", line 236, in runner _execfile(setup_script, ns) File "/home/ubuntu/.local/share/virtualenvs/rampe/lib/python3.4/site-packages/setuptools/sandbox.py", line 46, in _execfile exec(code, globals, locals) File "/tmp/easy_install-98gagxxl/netifaces-0.10.4/setup.py", line 17, in <module> def run_tests(self): AttributeError: 'dict' object has no attribute 'print' |
Ce qui est étrange, c'est qu'un pip install netifaces
fonctionne tout à fait dans le même environnement (et du coup, python setup.py install
fonctionne par la suite).
Merci.
+0
-0