Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2986 connectés 

  FORUM HardWare.fr
  Programmation
  Python

  [os x] pyrcc4 introuvable !

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[os x] pyrcc4 introuvable !

n°2215356
monster-mu​nch
Miam
Posté le 08-01-2014 à 15:07:50  profilanswer
 

Bonjour,
 
Je souhaite compiler un fichier avec pyrcc4.
Mais lorsque je tape la commande :

Citation :

pyrcc4 -o monFichier.py monFichier.qrc


 
J'ai l'erreur :  
 

Citation :

-bash: pyrcc4: command not found


 
Je suis sous mac avec Maverick.
Quelqu'un à déjà eu le problème ?

mood
Publicité
Posté le 08-01-2014 à 15:07:50  profilanswer
 

n°2215436
masklinn
í dag viðrar vel til loftárása
Posté le 08-01-2014 à 22:31:34  profilanswer
 

T'as pyqt d'installé? Parce-que ni Qt in PyQt ne sont livrés par défaut avec OSX hein :)


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2215463
monster-mu​nch
Miam
Posté le 09-01-2014 à 10:35:36  profilanswer
 
n°2215488
masklinn
í dag viðrar vel til loftárása
Posté le 09-01-2014 à 12:19:39  profilanswer
 

Et il est bien installé sur ton path?


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2215497
monster-mu​nch
Miam
Posté le 09-01-2014 à 13:40:02  profilanswer
 

Je fais comment pour savoir ?

n°2215515
masklinn
í dag viðrar vel til loftárása
Posté le 09-01-2014 à 14:43:21  profilanswer
 

essaie de faire un "sudo find / -name 'pyrcc*', s'il est trouvé il est bien installé, regardes dans quel répertoire il est et si ce répertoire est bien dans ton $PATH.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2215531
monster-mu​nch
Miam
Posté le 09-01-2014 à 15:18:25  profilanswer
 

Il est a priori bien installer puisqu'il trouve :

Citation :

/System/Library/Frameworks/Python.framework/Versions/2.7/bin/pyrcc5


 
Par contre, il n'est pas dans mon $PATH :

Citation :

/Library/Frameworks/Python.framework/Versions/3.3/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin


 
Comment je fais pour le rajouter ?


Message édité par monster-munch le 09-01-2014 à 15:19:02
n°2215534
masklinn
í dag viðrar vel til loftárása
Posté le 09-01-2014 à 15:47:35  profilanswer
 

Notes que c'est pyrcc5 ça, pas 4 :o
 
Pour fixer ton path, t'as probablement un .profile ou un .bashrc où "/Library/Frameworks/Python.framework/Versions/3.3/bin" et "/opt/local/bin" sont ajouté au PATH (tu peux utiliser grep dans ton compte pour savoir où c'est fait), faut ajouter "/System/Library/Frameworks/Python.framework/Versions/2.7/bin/" à côté du reste.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2215554
monster-mu​nch
Miam
Posté le 09-01-2014 à 16:45:49  profilanswer
 

Hum je ne comprend pas  :o  
 
J'ai dans /etc/paths

Citation :

/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin


 
Il faut que je rajoute  

Citation :

/System/Library/Frameworks/Python.framework/Versions/2.7/bin/

à la suite ?

n°2215583
masklinn
í dag viðrar vel til loftárása
Posté le 09-01-2014 à 18:31:51  profilanswer
 

Non, /etc/paths c'est pour le système, faut pas y toucher. Normalement t'as un autre fichier dans ton home où le reste du path est rajouté (genre /opt/local/bin).


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
mood
Publicité
Posté le 09-01-2014 à 18:31:51  profilanswer
 

n°2215632
monster-mu​nch
Miam
Posté le 10-01-2014 à 00:31:36  profilanswer
 

Ok. Je n'ai pas encore trouver le fichier mais je chercherai plus tard !
Donc j'avance dans ce que je veux faire en exécutant avec  

Citation :

/System/Library/Frameworks/Python.framework/Versions/2.7/bin/pyrcc5 -o toto.py toto.qrc  


 
Ensuite, je dois utiliser pyuic4.
J'ai fait une recherche avec  

Citation :

sudo find / -name 'pyuic*'


 
Ce qui me retourne

Citation :


/System/Library/Frameworks/Python.framework/Versions/2.7/bin/pyuic5
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PyQt5/uic/pyuic.py


 
Donc je fais la même chose sauf  

Citation :

/System/Library/Frameworks/Python.framework/Versions/2.7/bin/pyuic5 -o ui_toto.ui

me dit :

Citation :

No module named PyQt5.uic


 
Est-ce que j'aurai mal installé PyQt ?

n°2215653
masklinn
í dag viðrar vel til loftárása
Posté le 10-01-2014 à 10:13:28  profilanswer
 

N'utilisant pas pyqt, je ne saurais te dire.


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°2215800
monster-mu​nch
Miam
Posté le 10-01-2014 à 23:28:23  profilanswer
 

Bon, j'ai passé la semaine à essayer d'installer pyuic, puis pyqt ; J'abandonne !
Je me suis monté une vm avec un bon ubuntu, et tout fonctionne en quelques minutes  :o  
Merci pour ton aide.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Python

  [os x] pyrcc4 introuvable !

 

Sujets relatifs
erreur de compilation projet ou bibliothèque introuvableErreur d execution 432 nom du fichier ou de la classe introuvable lors
Problème de class introuvable à la générationMssql / Php : module spécifié introuvable
librairies Javax.swing.JOptionPane introuvable-Eclipse avec Jdk-1.6Option de degogage introuvable
[jna] UnsatisfiedLinkError : Le module spécifié est introuvable.hibernate.cfg.xml fichier introuvable
zlib1.dll introuvable sous Windows 7 ?SSL_SESSION_ID introuvable
Plus de sujets relatifs à : [os x] pyrcc4 introuvable !


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)