python3 ImportError: No module named mysql.connecteur de rendement fichier_liste.read().decode(“utf-8”).split(u“\n”)

essayez d'importer python-mysql.connecteur sur Python 3.2.3 et de la réception d'un étrange pile. Je soupçonne une mauvaise configuration sur mon ubuntu 12.04 installer.

 vfi@ubuntu:/usr/share/pyshared$ python3 
Python 3.2.3 (par défaut, Sep 25 2013, 18:22:43) 
[GCC 4.6.3] sur linux2 
Tapez "help", "copyright", "credits" ou "licence" pour plus d'informations. 
>>> import mysql.connecteur 
Traceback (most recent call last): 
File "", line 1, in 
ImportError: No module named mysql.connecteur 
Erreur dans sys.excepthook: 
Traceback (most recent call last): 
Le fichier "/usr/share/pyshared/apport_python_hook.py", ligne 66, dans apport_excepthook 
d'apport.fileutils importation likely_packaged, get_recent_crashes 
Fichier "apport/__init__.py", line 1, in 
d'apport.rapport d'importer Rapport 
Fichier "apport/report.py", à la ligne 20, dans 
importation d'apport.fileutils 
Fichier "apport/fileutils.py", à la ligne 22, dans 
d'apport.packaging_impl importation impl emballage 
Fichier "apport/packaging_impl.py", à la ligne 20, dans 
importation apt 
Fichier "apt/__init__.py", à la ligne 24, dans 
de apt.package Package d'importation 
Fichier "apt/package.py", ligne 1051 
retour fichier_liste.read().decode("utf-8").split(u"\n") 
^ 
SyntaxError: invalid syntaxe 

Exception d'origine était: 
Traceback (most recent call last): 
File "", line 1, in 
ImportError: No module named mysql.connecteur 

voici les modules connexes de l'état sur mon pc:

vfi@ubuntu:/usr/share/pyshared$ sudo aptitude search python3-apt 
je python3-apt - Python 3 interface de libapt-pkg 
p python3-apt:i386 - Python 3 interface de libapt-pkg 
p python3-apt-dbg - Python 3 interface de libapt-pkg (extension de débogage) 
p python3-apt-dbg:i386 - Python 3 interface de libapt-pkg (extension de débogage) 
v python3-apt-dbg:tous - 
v python3-apt-dbg:tout:i386 
v python3-apt:tous - 
v python3-apt:: i386 
vfi@ubuntu:/usr/share/pyshared$ sudo aptitude search python-apt 
j'python-apt - Python interface de libapt-pkg 
p python-apt:i386 - Python interface de libapt-pkg 
j'python-apt-commune - Python interface de libapt-pkg (paramètres régionaux) 
p python-apt-dbg - Python interface de libapt-pkg (extension de débogage) 
p python-apt-dbg:i386 - Python interface de libapt-pkg (extension de débogage) 
v python-apt-dbg:tous - 
v python-apt-dbg:tout:i386 
p python-apt-dev - Python interface de libapt-pkg (fichiers de développement) 
p python-apt-doc - Python interface de libapt-pkg (documentation de l'API) 
v python-apt-p2p - 
v python-apt-p2p-khashmir - 
v python-apt:tous - 
v python-apt:: i386 
j'python-aptdaemon - module Python pour le serveur et le client de aptdaemon 
p python-aptdaemon-gtk - paquet de Transition 
j'python-aptdaemon.gtk3widgets - Python GTK+ 3 widgets pour exécuter une aptdaemon client 
p python-aptdaemon.gtkwidgets - Python GTK+ 2 widgets pour exécuter une aptdaemon client 
j'python-aptdaemon.pkcompat - PackageKit de compatibilité pour AptDaemon 
p python-aptdaemon.test - environnement de Test pour aptdaemon clients 
vfi@ubuntu:/usr/share/pyshared$ sudo aptitude search python-mysql.connecteur 
pi python-mysql.connecteur - pur Python de mise en œuvre de MySQL protocole Client/Serveur 

Espère que vous pouvez aider!

Grâce

OriginalL'auteur vinni_f | 2013-11-28