From: Jaime B. J. <j.b...@gm...> - 2017-01-17 11:02:53
|
Thank You for your fast reply, but it doesn't work for me. The output setup py2exe comands: *"*** copy dlls **** *copying C:\Python27\lib\site-packages\py2exe\run.exe -> C:\Users\A558286\workspa* *ce\Python\Act_Masivo_Generico\src\dist\GUI.exe* *The following modules appear to be missing* *['Carbon', 'Carbon.Files', '_sysconfigdata', 'backports', 'backports.configparse* *r']"* I think this modules backports missing are relevant. An when I executed: *"Traceback (most recent call last):* * File "GUI.py", line 15, in <module>* *ImportError: No module named backports"* Tahnk You 2017-01-17 11:54 GMT+01:00 Massa, Harald Armin <ch...@gh...>: > Jaime, > > > >> >> *" File "GUI.py", line 14, in <module>* >> * File "configparser.pyc", line 12, in <module>* >> *ImportError: No module named backports.configparser"* >> >> I tried use other kind of import like this from backports import >> configparser but it doesn't works. >> >> With other libraries I need specify the package to import in options >> includes like "sip" or "time". It is neccesary include something in this >> options to solve the problem? >> >> >> py2exe is challenged with submodules. > > A workaround that often helped me is: > > put lines in your main script as > > import backports > import backports.configparser > > I found with other modules that with this trick py2exe more reliably finds > and includes those files. > > best wishes > > Harald > > > > > > -- > -- Un Saludo Atentamente Jaime Barrio. ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ingeniero Informático (UPM) Linkedin <http://es.linkedin.com/pub/jaime-barrio-jimenez/32/363/311> ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |