J'ai réussi après avoir appliqué la première modif dans l'__init__.py à mettre à jour setuptools :)

lionel@W253EU-SSD:~$ sudo pip3 install --upgrade setuptools
/usr/local/lib/python3.5/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
The directory '/home/lionel/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/lionel/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/d1/6a/4b2fcefd2ea0868810e92d519dacac1ddc64a2e53ba9e3422c3b62b378a6/setuptools-40.8.0-py2.py3-none-any.whl (575kB)
    100% |████████████████████████████████| 583kB 2.7MB/s
Installing collected packages: setuptools
  Found existing installation: setuptools 28.6.1
    Uninstalling setuptools-28.6.1:
      Successfully uninstalled setuptools-28.6.1
Successfully installed setuptools-40.8.0

Puis:    lionel@W253EU-SSD:~$ sudo do-release-upgrade

Recherche d'une nouvelle version d'Ubuntu
Prendre :1 Signature de l'outil de mise à niveau [819 B]
Prendre :2 Outil de mise à niveau [1'246 kB]
1'247 k o réceptionnés en 0s (0  o/s)
authentification de « bionic.tar.gz » avec « bionic.tar.gz.gpg »
extraction de 'bionic.tar.gz'

Lecture du cache
Vérification du gestionnaire de paquets
Lecture des listes de paquets… Terminé
Construction de l'arbre des dépendances
Lecture des informations d'état… Terminé
Att http://ch.archive.ubuntu.com/ubuntu xenial InRelease
Att http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial InRelease
Att http://ch.archive.ubuntu.com/ubuntu xenial-updates InRelease
Att http://security.ubuntu.com/ubuntu xenial-security InRelease
Att http://archive.canonical.com/ubuntu xenial InRelease
Att http://ch.archive.ubuntu.com/ubuntu xenial-backports InRelease
Att http://ppa.launchpad.net/js-reynaud/kicad-4/ubuntu xenial InRelease
Att http://ppa.launchpad.net/rednotebook/stable/ubuntu xenial InRelease
0  o réceptionnés en 0s (0  o/s)
Lecture des listes de paquets… Terminé
Construction de l'arbre des dépendances
Lecture des informations d'état… Terminé

Restauration du système dans son état d'origine

Annulation
Lecture des listes de paquets… Terminé
Construction de l'arbre des dépendances
Lecture des informations d'état… Terminé
=== Command detached from window (Thu Feb 14 15:56:54 2019) ===
=== Command terminated with exit status 1 (Thu Feb 14 15:57:04 2019) ===

:(

Le 14.02.19 à 12:05, Daniel Cordey a écrit :


On 14.02.19 12:02, Lionel.g wrote:
...
  File "/home/lionel/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2097, in _rebuild_mod_path
    orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'
=== Command terminated with exit status 1 (Thu Feb 14 11:52:33 2019) ===

Donc bien un problème de version des 'setuptools'

Use pip3

dc




_______________________________________________
gull mailing list
gull@forum.linux-gull.ch
https://forum.linux-gull.ch/mailman/listinfo/gull
_______________________________________________
gull mailing list
gull@forum.linux-gull.ch
https://forum.linux-gull.ch/mailman/listinfo/gull

Reply via email to