En ligne de commande import optparse fonctionne bien mais dans mon
script j'obtiens cette erreur :
Traceback (innermost last):
File "/usr/local/src/netqmail-1.05/rcptchecks/addons/updatedb.py",
line 43, in ?
import optparse
ImportError: No module named optparse
En ligne de commande import optparse fonctionne bien mais dans mon script j'obtiens cette erreur :
Traceback (innermost last): File "/usr/local/src/netqmail-1.05/rcptchecks/addons/updatedb.py", line 43, in ? import optparse ImportError: No module named optparse
Je cherche sans rien trouver de concluant.
Vérifie les chemins (sys.path entre autres, éventuellement en ajoutant un : import sys print sys.path
avant l'import de optparse dans /usr/local/src/netqmail-1.05/rcptchecks/addons/updatedb.py
mes deux centimes -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in ''.split('@')])"
ngillet@cominico.fr wrote:
Bonjour,
En ligne de commande import optparse fonctionne bien mais dans mon
script j'obtiens cette erreur :
Traceback (innermost last):
File "/usr/local/src/netqmail-1.05/rcptchecks/addons/updatedb.py",
line 43, in ?
import optparse
ImportError: No module named optparse
Je cherche sans rien trouver de concluant.
Vérifie les chemins (sys.path entre autres, éventuellement en ajoutant un :
import sys
print sys.path
avant l'import de optparse dans
/usr/local/src/netqmail-1.05/rcptchecks/addons/updatedb.py
mes deux centimes
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xiludom.gro'.split('@')])"
En ligne de commande import optparse fonctionne bien mais dans mon script j'obtiens cette erreur :
Traceback (innermost last): File "/usr/local/src/netqmail-1.05/rcptchecks/addons/updatedb.py", line 43, in ? import optparse ImportError: No module named optparse
Je cherche sans rien trouver de concluant.
Vérifie les chemins (sys.path entre autres, éventuellement en ajoutant un : import sys print sys.path
avant l'import de optparse dans /usr/local/src/netqmail-1.05/rcptchecks/addons/updatedb.py
mes deux centimes -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in ''.split('@')])"
ngillet
Merci c'est çà.
En ligne de commande j'ai la v.2.4 et dans le script j'avais la v.1.5 pk j'en sais pas grand chose j'ai retiré la 1.5 et now c'est ok.
J'ai juste un soucis avec MySQL Lib Python not found ?
J'ai tenté une install depuis la lib de python.org mais j'ai cette erreur :
python setup.py buildrunning buildrunning build_py running build_ext building '_mysql' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o -I'/usr/include/mysql' _mysql.c:41:19: mysql.h: Aucun fichier ou r?pertoire de ce type _mysql.c:42:26: mysqld_error.h: Aucun fichier ou r?pertoire de ce type _mysql.c:43:20: errmsg.h: Aucun fichier ou r?pertoire de ce type error: command 'gcc' failed with exit status 1
Merci pour votre aide.
Nico
Merci c'est çà.
En ligne de commande j'ai la v.2.4
et dans le script j'avais la v.1.5 pk j'en sais pas grand chose j'ai
retiré la 1.5 et now c'est ok.
J'ai juste un soucis avec MySQL Lib Python not found ?
J'ai tenté une install depuis la lib de python.org mais j'ai cette
erreur :
python setup.py buildrunning buildrunning build_py
running build_ext
building '_mysql' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC -I/usr/local/include/python2.4 -c _mysql.c -o
build/temp.linux-i686-2.4/_mysql.o -I'/usr/include/mysql'
_mysql.c:41:19: mysql.h: Aucun fichier ou r?pertoire de ce type
_mysql.c:42:26: mysqld_error.h: Aucun fichier ou r?pertoire de ce type
_mysql.c:43:20: errmsg.h: Aucun fichier ou r?pertoire de ce type
error: command 'gcc' failed with exit status 1
En ligne de commande j'ai la v.2.4 et dans le script j'avais la v.1.5 pk j'en sais pas grand chose j'ai retiré la 1.5 et now c'est ok.
J'ai juste un soucis avec MySQL Lib Python not found ?
J'ai tenté une install depuis la lib de python.org mais j'ai cette erreur :
python setup.py buildrunning buildrunning build_py running build_ext building '_mysql' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/python2.4 -c _mysql.c -o build/temp.linux-i686-2.4/_mysql.o -I'/usr/include/mysql' _mysql.c:41:19: mysql.h: Aucun fichier ou r?pertoire de ce type _mysql.c:42:26: mysqld_error.h: Aucun fichier ou r?pertoire de ce type _mysql.c:43:20: errmsg.h: Aucun fichier ou r?pertoire de ce type error: command 'gcc' failed with exit status 1