Installation Windows avec les sources

Plus d'informations
il y a 4 ans 2 mois - il y a 4 ans 2 mois #22961 par olischlo
Bonjour,

J'ai tenté d'installer Noethys à partir du source code sur Windows 10. J'ai quelques soucis. Voici la procédure que j'ai faites.
Installation Python 2.7 en version 32 bits (Windows x86 MSI installer)
Installation MySQLdb (use executable installer)
Installation PIL (use executable installer)  http://www.pythonware.com/products/pil/

Installation GIT for windows ( https://gitforwindows.org/ )
Installation Microsoft Visual C++ Compiler for Python 2.7 ( https://www.NotAllowedScript6605e4e23fa66microsoft.com/en-us/download/details.aspx?id=44266 )

Puis les commandes suivantes dans mon git bash

pip install -U wxPython
pip install python-dateutil
pip install numpy
pip install pycrypto
pip install pycrypt
pip install reportlab
pip install MatPlotLib
pip install ObjectListView
pip install pyExcelerator
videoCapture : Refer to http://videocapture.sourceforge.net/ to install it
pip install Pyttsx
pip install Appdirs
pip install Psutil
pip install Paramiko
pip install Lxml
git clone https://github.com/Noethys/Noethys.git

Premier lancement j'ai un crash après le "splash" de Noethys
Quelqu'un aurait récemment fait cela ? Le problème semble venir de la lib PIL...

Merci
Olivier

Ci-dessous le log du crash:


 07/01/2020 21:37:44 | 1.2.7.1 | Python 2 | wxPython 4.0.7.post2 msw (phoenix) wxWidgets 3.0.5 | win32 Windows 10 AMD64  
Generation d'un nouveau fichier de config
nouveau_fichier = True
Traceback (most recent call last):
  File "Noethys.py", line 4331, in OnInit
    etat_exemple = frame.ChargeFichierExemple()
  File "Noethys.py", line 419, in ChargeFichierExemple
    dlg = DLG_Bienvenue.Dialog(self)
  File "C:\GIT\Noethys-1.2.7.1\noethys\Dlg\DLG_Bienvenue.py", line 87, in __init__
    self.bouton_ok = CTRL_Bouton_image.CTRL(self, texte=_(u"Ok"), cheminImage="Images/32x32/Valider.png")
  File "C:\GIT\Noethys-1.2.7.1\noethys\Ctrl\CTRL_Bouton_image.py", line 48, in __init__
    self.MAJ()
  File "C:\GIT\Noethys-1.2.7.1\noethys\Ctrl\CTRL_Bouton_image.py", line 56, in MAJ
    img = PILtoWx(img)
  File "C:\GIT\Noethys-1.2.7.1\noethys\Ctrl\CTRL_Bouton_image.py", line 29, in PILtoWx
    imagewx.SetData(image.tobytes('raw', 'RGB'))
  File "C:\Python27\lib\site-packages\PIL\Image.py", line 512, in __getattr__
    raise AttributeError(name)
AttributeError: tobytes

Traceback (most recent call last):
  File "C:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed
Error in sys.exitfunc:

Dernière édition: il y a 4 ans 2 mois par olischlo.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 ans 2 mois #22971 par olischlo
Personne n'a installé l'application de cette manière ?

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 ans 2 mois #22973 par Ivan
Réponse de Ivan sur le sujet Installation Windows avec les sources
Il faudrait peut-être désinstaller PIL et installer PILLOW (qui est un fork).

Ivan

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 4 ans 2 mois #22974 par olischlo
Effectivement ça marche.

Merci

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.195 secondes
Propulsé par Kunena