Problème au lancement du fichier source de noethys.py

Plus d'informations
il y a 3 ans 2 mois #24555 par heubord
Bonjour
Voici ce que je reçois quand j'essaie de lance l'application, à partir du code source.
Je viens de récupérer la dernière vesion sur github.com (cf. copie écran de la page jointe).
J'ai la version 3.8.0 de python.


22/01/2021 02:52:19 | 1.2.8.7 | Python 3 | wxPython 4.1.1 msw (phoenix) wxWidgets 3.1.5 | win32 Windows 10 AMD64  
Traceback (most recent call last):
  File "D:\Projets\MainWhoho2\Noethys-master\noethys\Noethys.py", line 4372, in OnInit
    frame.Initialisation()
  File "D:\Projets\MainWhoho2\Noethys-master\noethys\Noethys.py", line 225, in Initialisation
    self.CreationBarreMenus()
  File "D:\Projets\MainWhoho2\Noethys-master\noethys\Noethys.py", line 1176, in CreationBarreMenus
    CreationMenu(self.menu, item)
  File "D:\Projets\MainWhoho2\Noethys-master\noethys\Noethys.py", line 1166, in CreationMenu
    CreationItem(menu, sousitem)
  File "D:\Projets\MainWhoho2\Noethys-master\noethys\Noethys.py", line 1144, in CreationItem
    itemMenu.SetBitmap(wx.Bitmap(Chemins.GetStaticPath(item["image"]), wx.BITMAP_TYPE_PNG))
wx._core.wxAssertionError: C++ assertion "strcmp(setlocale(0, 0), "C") == 0" failed at ..\..\src\common\intl.cpp(1694) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!

OnInit returned false, exiting...
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(470) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

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

Plus d'informations
il y a 3 ans 2 mois #24557 par Ivan
Bonjour,

Je crois me souvenir que c'est cette version de wxPython qui est buggée. Il faudrait télécharger la dernière, qui corrige ce souci :  https://wxpython.org/Phoenix/snapshot-builds/

Ivan

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

Plus d'informations
il y a 2 ans 8 mois #25154 par heubord

Bonjour,

Je crois me souvenir que c'est cette version de wxPython qui est buggée. Il faudrait télécharger la dernière, qui corrige ce souci :  https://wxpython.org/Phoenix/snapshot-builds/

Ivan



 
Merci de votre prompte réponse.
La version wxPython 4.1.2a1.dev5165+64e5d863 msw que j'ai installé a permit de résoudre le problèmé.
Cependant, un autre problème est apparu après le chargement de la base de données.
Tous ce bloque et on a le message suivant

Traceback (most recent call last):
  File "d:\programs\python\python39\lib\site-packages\wx\lib\mixins\gridlabelrenderer.py", line 123, in _onPaintColLabels
    cols = self.CalcColLabelsExposed(window.GetUpdateRegion())
wx._core.wxAssertionError: C++ assertion "idx >= 0 && idx < m_numCols" failed at C:\PROJECTS\bb2\dist-win64-py39\build\ext\wxWidgets\include\wx/generic/grid.h(2081) in wxGrid::GetColPos(): invalid column index

Voici les version de modules utilisés
05/07/2021 02:01:22 | 1.2.9.9 | Python 3 | wxPython 4.1.2a1.dev5165+64e5d863 msw (phoenix) wxWidgets 3.1.5 | win32 Windows 10 AMD64  

Je mets en fichier joint la capture de l'écran   
 
Pièces jointes :

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

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