Your setuptools is too old


#1

Bonjour à tous,

Je possède un raspberry 3b avec Raspbian Jessie sur lequel j’ai installé Jeedom. Lors de l’installation d’un plugin je rencontre le problème suivant :

File “/usr/lib/python2.7/dist-packages/setuptools/dist.py”, line 301, in finalize_options
ep.load()(self, e**p.name, value)
File “/tmp/easy_install-KaYqam/pytest-runner-4.4/setuptools_scm-3.2.0-py2.7.egg/setuptools_scm/integration.py”, line 10, in version_keyword
File “/tmp/easy_install-KaYqam/pytest-runner-4.4/setuptools_scm-3.2.0-py2.7.egg/setuptools_scm/version.py”, line 66, in _warn_if_setuptools_outdated
setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12)
Cleaning up…
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-CKtDy0/pylint
Storing debug log for failure in /root/.pip/pip.log
Makefile:159: recipe for target ‘tests-deps’ failed
make: *** [tests-deps] Error 1
sed -i -e ‘253s/.*//’ openzwave/cpp/src/value_classes/ValueID.h
cd openzwave && make
make[1]: Entering directory ‘/opt/python-openzwave/openzwave’
CPPFLAGS= make -C /opt/python-openzwave/openzwave/cpp/build/ -w
make[2]: Entering directory ‘/opt/python-openzwave/openzwave/cpp/build’
Building OpenZWave Version 1.4.-1
Building tinystr.o
Building tinyxmlerror.o

Et donc notamment cette partie “setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12)”
qui entraîne le “Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-CKtDy0/pylint”

Une idée de comment corriger ce problème de version trop ancienne ?

Merci d’avance


#2

En complément, j’ai essayé de mettre à jour pip mais j’ai cette erreur :

pi@raspberrypi:~ $ pip install -U pip
Downloading/unpacking pip from https://files.pythonhosted.org/packages/d8/f3/413bab4ff08e1fc4828dfc59996d721917df8e8583ea85385d51125dceff/pip-19.0.3-py2.py3-none-any.whl#sha256=bd812612bbd8ba84159d9ddc0266b7fbce712fc9bc98c82dee5750546ec8ec64
Downloading pip-19.0.3-py2.py3-none-any.whl (1.4MB): 1.4MB downloaded
Installing collected packages: pip
Found existing installation: pip 1.5.6
Not uninstalling pip at /usr/lib/python2.7/dist-packages, owned by OS
Can’t roll back pip; was not uninstalled
Cleaning up…
Exception:
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 122, in main
status = self.run(options, args)
File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 295, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File “/usr/lib/python2.7/dist-packages/pip/req.py”, line 902, in move_wheel_files
pycompile=self.pycompile,
File “/usr/lib/python2.7/dist-packages/pip/wheel.py”, line 214, in move_wheel_files
clobber(source, lib_dir, True)
File “/usr/lib/python2.7/dist-packages/pip/wheel.py”, line 204, in clobber
os.makedirs(destdir)
File “/usr/lib/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: ‘/usr/local/lib/python2.7/dist-packages/pip-19.0.3.dist-info’

Storing debug log for failure in /home/pi/.pip/pip.log


#3

Bon avec un simple sudo pip install -U pip ça semble corriger le problème.