F
F. GEIGER
py2exe and datetime -> No module named datetime
I've begun to use the stdlib module datetime instead of my home brewn
classes.
Since then a py2exe app doesn't run anymore:
Traceback (most recent call last):
File "MainFrame.py", line 26, in ?
File "Notebook.pyo", line 125, in ?
File "NotebookPage_Activities.pyo", line 7, in ?
File "Editors.pyo", line 3, in ?
ImportError: No module named datetime
Strange enough, py2exe seems to have added datetime:
D:\Project\DDG\exTract2>setup.py py2exe -O1 --packages encodings
running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'wx._gdi'
creating python loader for extension 'win32evtlog'
creating python loader for extension 'datetime'
creating python loader for extension 'wx._misc'
creating python loader for extension 'zlib'
creating python loader for extension '_winreg'
creating python loader for extension 'wx._windows'
creating python loader for extension 'wx._html'
creating python loader for extension 'win32api'
creating python loader for extension '_sre'
creating python loader for extension 'select'
creating python loader for extension 'wx._core'
creating python loader for extension '_socket'
creating python loader for extension 'wx._controls'
creating python loader for extension 'unicodedata'
creating python loader for extension 'win32file'
creating python loader for extension 'winsound'
creating python loader for extension '_mysql'
creating python loader for extension '_ssl'
creating python loader for extension 'wx._calendar'
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
<snip/>
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_mysql.py to
_mysql.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_socket.py to
_socket.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_sre.py
to _sre.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_ssl.py
to _ssl.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_winreg.py to
_winreg.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\datetime.py to
datetime.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\select.py to
select.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\unicodedata.py to
unicodedata.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\win32api.py to
win32api.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\win32evtlog.py to
win32evtlog.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\win32file.py to
win32file.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\winsound.py to
winsound.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._calendar.py to
wx\_calendar.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._controls.py to
wx\_controls.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._core.py to
wx\_core.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._gdi.py to
wx\_gdi.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._html.py to
wx\_html.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._misc.py to
wx\_misc.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._windows.py to
wx\_windows.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\zlib.py
to zlib.pyo
removing c:\dokume~1\ddg_fge\lokale~1\temp\tmp1psfqf.py
<snip/>
Has anybody else experienced this?
Python 2.3.4 on WinXP
py2exe 0.5.2
Many thanks in advance and best regards
Franz GEIGER
I've begun to use the stdlib module datetime instead of my home brewn
classes.
Since then a py2exe app doesn't run anymore:
Traceback (most recent call last):
File "MainFrame.py", line 26, in ?
File "Notebook.pyo", line 125, in ?
File "NotebookPage_Activities.pyo", line 7, in ?
File "Editors.pyo", line 3, in ?
ImportError: No module named datetime
Strange enough, py2exe seems to have added datetime:
D:\Project\DDG\exTract2>setup.py py2exe -O1 --packages encodings
running py2exe
*** searching for required modules ***
*** parsing results ***
creating python loader for extension 'wx._gdi'
creating python loader for extension 'win32evtlog'
creating python loader for extension 'datetime'
creating python loader for extension 'wx._misc'
creating python loader for extension 'zlib'
creating python loader for extension '_winreg'
creating python loader for extension 'wx._windows'
creating python loader for extension 'wx._html'
creating python loader for extension 'win32api'
creating python loader for extension '_sre'
creating python loader for extension 'select'
creating python loader for extension 'wx._core'
creating python loader for extension '_socket'
creating python loader for extension 'wx._controls'
creating python loader for extension 'unicodedata'
creating python loader for extension 'win32file'
creating python loader for extension 'winsound'
creating python loader for extension '_mysql'
creating python loader for extension '_ssl'
creating python loader for extension 'wx._calendar'
*** finding dlls needed ***
*** create binaries ***
*** byte compile python files ***
<snip/>
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_mysql.py to
_mysql.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_socket.py to
_socket.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_sre.py
to _sre.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_ssl.py
to _ssl.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\_winreg.py to
_winreg.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\datetime.py to
datetime.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\select.py to
select.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\unicodedata.py to
unicodedata.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\win32api.py to
win32api.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\win32evtlog.py to
win32evtlog.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\win32file.py to
win32file.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\winsound.py to
winsound.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._calendar.py to
wx\_calendar.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._controls.py to
wx\_controls.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._core.py to
wx\_core.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._gdi.py to
wx\_gdi.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._html.py to
wx\_html.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._misc.py to
wx\_misc.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\wx._windows.py to
wx\_windows.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\temp\zlib.py
to zlib.pyo
removing c:\dokume~1\ddg_fge\lokale~1\temp\tmp1psfqf.py
<snip/>
Has anybody else experienced this?
Python 2.3.4 on WinXP
py2exe 0.5.2
Many thanks in advance and best regards
Franz GEIGER