Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 24/12/2022, à 15:24

Alden Vacker

Erreur Python quand une commande est lancée

Bonjour, je me tourne vers le forum car je m'arrache les cheveux sur un problème qui fait face depuis tout à l'heure. Quand j'execute une commande python ou une autre commande je reçois cette erreur :

Python path configuration:
  PYTHONHOME = 'usr/bin/python3.10'
  PYTHONPATH = 'usr/bin/python3.10'
  program name = 'python3.10'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python3.10'
  sys.base_prefix = 'usr/bin/python3.10'
  sys.base_exec_prefix = 'usr/bin/python3.10'
  sys.platlibdir = 'lib'
  sys.executable = '/usr/bin/python3.10'
  sys.prefix = 'usr/bin/python3.10'
  sys.exec_prefix = 'usr/bin/python3.10'
  sys.path = [
    'usr/bin/python3.10',
    'usr/bin/python3.10/lib/python310.zip',
    'usr/bin/python3.10/lib/python3.10',
    'usr/bin/python3.10/lib/python3.10/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f9fd04d1740 (most recent call first):
  <no Python frame>

Je suis sous Lubuntu 20.04

Merci d'avance

Hors ligne

#2 Le 24/12/2022, à 15:42

xubu1957

Re : Erreur Python quand une commande est lancée

Bonjour,

Donne le retour de :

sudo apt update

et d'éventuels paquets cassés :

dpkg -l | grep -v ^ii

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#3 Le 25/12/2022, à 06:53

Compte supprimé

Re : Erreur Python quand une commande est lancée

Bonjour,
Il semble que ton sys.path soit incomplet...
Que retourne :

ls /usr/lib/python*/dist-packages

?

#4 Le 25/12/2022, à 12:45

Alden Vacker

Re : Erreur Python quand une commande est lancée

xubu1957 a écrit :

Bonjour,

Donne le retour de :

sudo apt update

et d'éventuels paquets cassés :

dpkg -l | grep -v ^ii

Pour

sudo apt update

J'obtiens :

Atteint :1 http://dl.google.com/linux/chrome/deb stable InRelease
Atteint :2 http://archive.ubuntu.com/ubuntu focal InRelease                                                              
Réception de :3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                                        
Réception de :4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]                                      
Atteint :5 https://linux.teamviewer.com/deb stable InRelease                                                             
Atteint :6 https://dl.winehq.org/wine-builds/ubuntu focal InRelease                                                      
Réception de :7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]                                      
Atteint :8 https://download.sublimetext.com apt/dev/ InRelease                                                           
Réception de :9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [275 kB]
Réception de :10 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [408 kB]
Réception de :11 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
Réception de :12 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [7996 B]
Réception de :13 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30,5 kB]
Réception de :14 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40,8 kB]
Réception de :15 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [94,1 kB]
Réception de :16 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [940 B]
Ign :17 http://ppa.launchpad.net/wii.sceners.linux/wiithon-1.1/ubuntu karmic InRelease                                   
Atteint :18 http://packages.microsoft.com/repos/code stable InRelease                                                    
Atteint :19 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                                               
Atteint :20 https://repo.protonvpn.com/debian stable InRelease                                                           
Réception de :21 http://ppa.launchpad.net/wii.sceners.linux/wiithon-1.1/ubuntu karmic Release [66,0 kB]                  
Réception de :22 http://ppa.launchpad.net/wii.sceners.linux/wiithon-1.1/ubuntu karmic Release.gpg [307 B]                
Atteint :23 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease                                                 
Ign :22 http://ppa.launchpad.net/wii.sceners.linux/wiithon-1.1/ubuntu karmic Release.gpg                                 
Could not find platform independent libraries <prefix>                                                                   
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/usr/bin/python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python3'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.executable = '/usr/bin/python3'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/lib/python38.zip',
    '/usr/lib/python3.8',
    '/usr/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fe34e297740 (most recent call first):
<no Python frame>
Lecture des listes de paquets... Fait
W: Erreur de GPG : http://ppa.launchpad.net/wii.sceners.linux/wiithon-1.1/ubuntu karmic Release : Les signatures suivantes ne sont pas valables : 39BEE4BBB63E15E56314B93428577FE31F882273
E: Le dépôt http://ppa.launchpad.net/wii.sceners.linux/wiithon-1.1/ubuntu karmic Release n'est pas signé.
N: Les mises à jour depuis un tel dépôt ne peuvent s'effectuer de manière sécurisée, et sont donc désactivées par défaut.
N: Voir les pages de manuel d'apt-secure(8) pour la création des dépôts et les détails de configuration d'un utilisateur.
N: Le fichier configuré « main/binary-i386/Packages » ne sera pas pris en compte car le dépôt « http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease » ne prend pas en charge l'architecture « i386 »
E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi'
E: Sub-process returned an error code

Et pour

dpkg -l | grep -v ^ii

J'obtiens :

Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom                                           Version                              Architecture Description
+++-=============================================-====================================-============-======================================================================================================
rc  libreoffice-kf5                               1:6.4.7-0ubuntu0.20.04.1             amd64        office productivity suite -- KDE Frameworks 5 integration
rc  libreoffice-qt5                               1:6.4.7-0ubuntu0.20.04.1             amd64        office productivity suite -- Qt 5 integration
rc  linux-image-5.4.0-100-generic                 5.4.0-100.113                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-104-generic                 5.4.0-104.118                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-105-generic                 5.4.0-105.119                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-126-generic                 5.4.0-126.142                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-128-generic                 5.4.0-128.144                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-131-generic                 5.4.0-131.147                        amd64        Signed kernel image generic
rc  linux-image-5.4.0-26-generic                  5.4.0-26.30                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-48-generic                  5.4.0-48.52                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-52-generic                  5.4.0-52.57                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-53-generic                  5.4.0-53.59                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-54-generic                  5.4.0-54.60                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-58-generic                  5.4.0-58.64                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-60-generic                  5.4.0-60.67                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-67-generic                  5.4.0-67.75                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-70-generic                  5.4.0-70.78                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-72-generic                  5.4.0-72.80                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-73-generic                  5.4.0-73.82                          amd64        Signed kernel image generic
rc  linux-image-5.4.0-91-generic                  5.4.0-91.102                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-92-generic                  5.4.0-92.103                         amd64        Signed kernel image generic
rc  linux-image-5.4.0-99-generic                  5.4.0-99.112                         amd64        Signed kernel image generic
rc  linux-modules-5.4.0-100-generic               5.4.0-100.113                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-104-generic               5.4.0-104.118                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-105-generic               5.4.0-105.119                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-126-generic               5.4.0-126.142                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-128-generic               5.4.0-128.144                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-131-generic               5.4.0-131.147                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-26-generic                5.4.0-26.30                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-48-generic                5.4.0-48.52                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-52-generic                5.4.0-52.57                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-53-generic                5.4.0-53.59                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-54-generic                5.4.0-54.60                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-58-generic                5.4.0-58.64                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-60-generic                5.4.0-60.67                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-67-generic                5.4.0-67.75                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-70-generic                5.4.0-70.78                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-72-generic                5.4.0-72.80                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-73-generic                5.4.0-73.82                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-91-generic                5.4.0-91.102                         amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-92-generic                5.4.0-92.103                         amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-5.4.0-99-generic                5.4.0-99.112                         amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-100-generic         5.4.0-100.113                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-104-generic         5.4.0-104.118                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-105-generic         5.4.0-105.119                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-126-generic         5.4.0-126.142                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-128-generic         5.4.0-128.144                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-131-generic         5.4.0-131.147                        amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-26-generic          5.4.0-26.30                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-48-generic          5.4.0-48.52                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-52-generic          5.4.0-52.57                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-53-generic          5.4.0-53.59                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-54-generic          5.4.0-54.60                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-58-generic          5.4.0-58.64                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-60-generic          5.4.0-60.67                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-67-generic          5.4.0-67.75                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-70-generic          5.4.0-70.78                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-72-generic          5.4.0-72.80                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-73-generic          5.4.0-73.82                          amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-91-generic          5.4.0-91.102                         amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-92-generic          5.4.0-92.103                         amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  linux-modules-extra-5.4.0-99-generic          5.4.0-99.112                         amd64        Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
rc  pgdg-keyring                                  2018.2                               all          keyring for apt.postgresql.org
rc  qwbfsmanager                                  1.2.1-1.1+b3                         amd64        graphical file manager for the WBFS filesystem
rc  wiithon                                       1.32                                 amd64        WBFS partition manager

Hors ligne

#5 Le 25/12/2022, à 12:58

xubu1957

Re : Erreur Python quand une commande est lancée

Bonjour,

Pour purger les résidus de configuration marqués "rc" :

sudo apt purge ~c

comme expliqué à la machine à café et rajouté à la fin de ce message.

E: Le dépôt http://ppa.launchpad.net/wii.sceners.linux/wiithon-1.1/ubuntu karmic Release n'est pas signé.

Tu mets du karmic 9.10 sur une version 20.04 focal ? hmm

Pour le dégager :

sudo add-apt-repository -ry ppa:wii.sceners.linux/wiithon-1.1

Dernière modification par xubu1957 (Le 25/12/2022, à 13:16)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#6 Le 25/12/2022, à 14:34

Alden Vacker

Re : Erreur Python quand une commande est lancée

MPython Alaplancha a écrit :

Bonjour,
Il semble que ton sys.path soit incomplet...
Que retourne :

ls /usr/lib/python*/dist-packages

?


J'obtiens :

apport                                              monotonic-1.5.egg-info
apport_python_hook.py                               monotonic.py
apt                                                 mpl_toolkits
aptdaemon                                           nacl
apt_inst.cpython-38-x86_64-linux-gnu.so             netifaces-0.10.4.egg-info
apt_inst-stubs                                      netifaces.cpython-38d-x86_64-linux-gnu.so
apt_pkg.cpython-38-x86_64-linux-gnu.so              netifaces.cpython-38-x86_64-linux-gnu.so
apt_pkg-stubs                                       numpy
aptsources                                          numpy-1.17.4.egg-info
AptUrl                                              NvidiaDetector
apturl-0.5.2.egg-info                               oauthlib
apt_xapian_index-0.49.egg-info                      oauthlib-3.1.0.egg-info
axi                                                 olefile
bcrypt                                              olefile-0.46.egg-info
bcrypt-3.1.7.egg-info                               orca
blinker                                             paramiko
blinker-1.4.egg-info                                paramiko-2.6.0.egg-info
Brlapi-0.7.0.egg-info                               past
brlapi.cpython-38-x86_64-linux-gnu.so               pcardext.cpython-38-x86_64-linux-gnu.so
cairo                                               pexpect
certifi                                             pexpect-4.6.0.egg-info
certifi-2019.11.28.egg-info                         PIL
_cffi_backend.cpython-38-x86_64-linux-gnu.so        Pillow-7.0.0.egg-info
chardet                                             pip
chardet-3.0.4.egg-info                              pip-20.0.2.egg-info
click                                               pkg_resources
Click-7.0.egg-info                                  ply
colorama                                            ply-3.11.egg-info
colorama-0.4.3.egg-info                             problem_report.py
CommandNotFound                                     protobuf-3.6.1.egg-info
command_not_found-0.3.egg-info                      ptyprocess
Crypto                                              pyatspi
cryptography                                        __pycache__
cryptography-2.8.egg-info                           pycairo-1.16.2.egg-info
cups.cpython-38-x86_64-linux-gnu.so                 pycrypto-2.6.1.egg-info
cupsext.cpython-38-x86_64-linux-gnu.so              pycups-1.9.73.egg-info
cupshelpers                                         PyGObject-3.36.0.egg-info
cupshelpers-1.0.egg-info                            pygtkcompat
cycler-0.10.0.egg-info                              PyJWT-1.7.1.egg-info
cycler.py                                           pylab.py
dateutil                                            pymacaroons
dblatex-0.3.11py3.egg-info                          pymacaroons-0.13.0.egg-info
dbtexmf                                             PyNaCl-1.3.0.egg-info
dbus                                                pyparsing-2.4.6.egg-info
_dbus_bindings.cpython-38-x86_64-linux-gnu.so       pyparsing.py
_dbus_glib_bindings.cpython-38-x86_64-linux-gnu.so  PyQt5
dbus_python-1.2.16.egg-info                         PyQt5-5.14.1.dist-info
deb822.py                                           pyrfc3339
debconf.py                                          pyRFC3339-1.1.egg-info
debian                                              python_apt-2.0.0+ubuntu0.20.4.8.egg-info
debian_bundle                                       python_dateutil-2.7.3.egg-info
defer                                               python_debian-0.1.36ubuntu1.egg-info
defer-1.0.6.egg-info                                python_magic-0.4.16.egg-info
devscripts                                          pytz
devscripts-2.20.2ubuntu2.egg-info                   pytz-2019.3.egg-info
distro-1.4.0.egg-info                               pyxdg-0.26.egg-info
distro_info-0.23ubuntu1.egg-info                    PyYAML-5.3.1.egg-info
distro_info.py                                      Quirks
distro.py                                           reportlab
DistUpgrade                                         reportlab-3.5.34.egg-info
duplicity                                           requests
duplicity-0.8.12.0.egg-info                         requests-2.22.0.egg-info
easy_install.py                                     requests_unixsocket
entrypoints.egg-info                                requests_unixsocket-0.2.0.egg-info
entrypoints.py                                      samba
fasteners                                           scanext.cpython-38-x86_64-linux-gnu.so
fasteners-0.14.1.egg-info                           secretstorage
future                                              SecretStorage-2.3.1.egg-info
future-0.18.2.egg-info                              setuptools
galternatives                                       setuptools-45.2.0.egg-info
galternatives-1.0.6.egg-info                        simplejson
gi                                                  simplejson-3.16.0.egg-info
google                                              sip-4.19.21.dist-info
gpg                                                 sipconfig_nd8.py
gpg-1.13.1_unknown.egg-info                         sipconfig.py
hpmudext.cpython-38-x86_64-linux-gnu.so             sip.cpython-38-x86_64-linux-gnu.so
httplib2                                            sip.pyi
httplib2-0.14.0.egg-info                            six-1.14.0.egg-info
HweSupportStatus                                    six.py
idna                                                softwareproperties
idna-2.8.egg-info                                   speechd
janitor                                             speechd_config
jwt                                                 systemd
keyring                                             systemd_python-234.egg-info
keyring-18.0.1.egg-info                             talloc.cpython-38-x86_64-linux-gnu.so
kiwisolver-1.0.1.egg-info                           tdb.cpython-38-x86_64-linux-gnu.so
kiwisolver.cpython-38-x86_64-linux-gnu.so           _tdb_text.py
LanguageSelector                                    uaclient
language_selector-0.1.egg-info                      ubuntu_advantage_tools-27.12.egg-info
language_support_pkgs.py                            UbuntuDrivers
launchpadlib                                        ubuntu_drivers_common-0.0.0.egg-info
launchpadlib-1.10.13.egg-info                       ufw
lazr                                                ufw-0.36.egg-info
lazr.restfulclient-0.14.2.egg-info                  unattended_upgrades-0.1.egg-info
lazr.uri-1.0.3.egg-info                             unidiff
ldb.cpython-38-x86_64-linux-gnu.so                  unidiff-0.5.5.egg-info
_ldb_text.py                                        unohelper.py
libfuturize                                         uno.py
libpasteurize                                       UpdateManager
lockfile                                            urllib3
lockfile-0.12.2.egg-info                            urllib3-1.25.8.egg-info
louis                                               usbcreator
louis-3.12.0.egg-info                               usb_creator-0.3.7.egg-info
lsb_release.py                                      vboxapi
lubuntu-update-notifier                             vboxapi-1.0.egg-info
lubuntu_update_notifier-0.1.egg-info                wadllib
macaroonbakery                                      wadllib-1.3.3.egg-info
macaroonbakery-1.3.1.egg-info                       wheel
magic                                               wheel-0.34.2.egg-info
mako                                                xapian
Mako-1.1.0.egg-info                                 xdg
markupsafe                                          xkit
MarkupSafe-1.1.0.egg-info                           xkit-0.0.0.egg-info
matplotlib                                          yaml
matplotlib-3.1.2.egg-info                           _yaml.cpython-38-x86_64-linux-gnu.so
matplotlib-3.1.2-nspkg.pth

Hors ligne

#7 Le 25/12/2022, à 14:39

Alden Vacker

Re : Erreur Python quand une commande est lancée

xubu1957 a écrit :

Bonjour,

Pour purger les résidus de configuration marqués "rc" :

sudo apt purge ~c

comme expliqué à la machine à café et rajouté à la fin de ce message.

E: Le dépôt http://ppa.launchpad.net/wii.sceners.linux/wiithon-1.1/ubuntu karmic Release n'est pas signé.

Tu mets du karmic 9.10 sur une version 20.04 focal ? hmm

Pour le dégager :

sudo add-apt-repository -ry ppa:wii.sceners.linux/wiithon-1.1

Quand j'exéctute la cmd pour dégager karmic j'obtiens encore cette réponse :

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/usr/bin/python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python3'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.executable = '/usr/bin/python3'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/lib/python38.zip',
    '/usr/lib/python3.8',
    '/usr/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fbdf3222740 (most recent call first):
<no Python frame>

Hors ligne

#8 Le 25/12/2022, à 15:44

xubu1957

Re : Erreur Python quand une commande est lancée

Pour python, je ne sais pas renseigner.

        _ _ _

(edit=messages regroupés)
        _ _ _


Montre :

ls /usr/lib/python3.8/encodings

pompé dans discuss.python.org/t/why-is-python3-not-working/10565/6

Dernière modification par xubu1957 (Le 25/12/2022, à 16:01)


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#9 Le 25/12/2022, à 15:50

Alden Vacker

Re : Erreur Python quand une commande est lancée

xubu1957 a écrit :

Montre :

ls /usr/lib/python3.8/encodings

pompé dans discuss.python.org/t/why-is-python3-not-working/10565/6

Le chemin n'existe pas.

Je viens de me rappeler que j'avais installé python 3.10 et vu qu'il utilisait pas cette version par défaut j'avais rm les dossier "python2.7", "python3.8" et "python3.9"
hmm

Hors ligne

#10 Le 25/12/2022, à 16:12

xubu1957

Re : Erreur Python quand une commande est lancée

Montre :

python3 --version

repris dans [Résolu] Installation de Python-3.9.7

et je lis :

Le 03/09/2021, abelthorne a écrit :

(..)
Mettre à jour Python sur Ubuntu peut entraîner pas mal de problèmes et il ne faut pas le faire n'importe comment.


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#11 Le 25/12/2022, à 16:43

Alden Vacker

Re : Erreur Python quand une commande est lancée

xubu1957 a écrit :

Montre :

python3 --version

repris dans [Résolu] Installation de Python-3.9.7

et je lis :

Le 03/09/2021, abelthorne a écrit :

(..)
Mettre à jour Python sur Ubuntu peut entraîner pas mal de problèmes et il ne faut pas le faire n'importe comment.

 Python 3.8.10 

Hors ligne