qnap912 0 Report post Posted June 19, 2012 Bonjour , j ai installer la vesion PYTHON2.5 avec ipkg car j ai besoin de cette version pour utiliser la librairie pyUSB je suis sur TS109 pro 2 il n a pas creer de python.sh comme il le fait avec l installation PYTHON2.7 avec le QPKG donc n import ou je suis dans la racine si je tape : python l editeur python ne s active plus . le python.sh n'a pas etait creer ! Comment faire pour corriger ? Merci. Share this post Link to post Share on other sites
father_mande 1 Report post Posted June 23, 2012 Bonjour, 1 vérifiez votre PATH : echo $PATH il doit contenir /opt/bin et /opt/sbin 2 cherchez si python est bien un lien vers /opt/bin/python vers /opt/bin/python2.5 Philippe. Share this post Link to post Share on other sites
qnap912 0 Report post Posted June 23, 2012 Hello Father_mande, Merci pour la reponse. 1 >> Alors j'ai tapé la commande et ca donne : >> echo $PATH >> /bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin 2 >> >> cd ./opt/bin >> ll py* Ca donne : ..........python2.4* ......... python2.5* ......... python2.5-config* 3 >>> >> cd / >> find -name python.sh ==> ca me donne : ./etc/init.d/python.sh ./mnt/HDA_ROOT/rootfs_2_3_6/share/HDA_DATA/.qpkg/Python/python.sh ./share/HDA_DATA/.qpkg/Python/python.sh lorsque j edite le fichier >> vi ./share/HDA_DATA/.qpkg/Python/python.sh ===> j ai toutes les informations concernant PYTHON2.7 Comment faire pour avoir un python.sh correspondant à PYTHON2.5 ? Pour info pour l installer dans mon Qnap j ai utilisé cette commande : >> ipkg install python25 l'installation a l air de bien s installer mais elle ne creer pas de PYTHON.SH Comme pour la version .QPKG Serait il possible d'avoir un lien sur les anciens paquets QPKG ? il doit y avoir une maniere de creer automatiquement ce fichier PYTHON.SH ! Merci de votre aide. Share this post Link to post Share on other sites
father_mande 1 Report post Posted June 24, 2012 Bonjour, Vous "mixer" 2 choses ... IPKG et QPKG Si vous avez besoin de python 2.7 installez-le ... votre shell sera cohérent : ipkg install python27 OU Si vous avez besoin de l’exécutable python ajoutez le ln -s /opt/bin/python2.5 /opt/bin/python OU Si vous voulez avoir python25 dans le shell python.sh qui utilise la 2.7, remplacez TOUTES les occurrences de python2.7 par python2.5 MAIS soyez cohérent ... Philippe. Share this post Link to post Share on other sites