471,579 Members | 1,290 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,579 software developers and data experts.

[py2exe] py2exe and datetime -> No module named datetime

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\t emp\_mysql.py to
_mysql.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\_socket.py to
_socket.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\_sre.py
to _sre.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\_ssl.py
to _ssl.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\_winreg.py to
_winreg.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\datetime.py to
datetime.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\select.py to
select.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\unicodedata.py to
unicodedata.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\win32api.py to
win32api.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\win32evtlog.py to
win32evtlog.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\win32file.py to
win32file.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\winsound.py to
winsound.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\wx._calendar.py to
wx\_calendar.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\wx._controls.py to
wx\_controls.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\wx._core.py to
wx\_core.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\wx._gdi.py to
wx\_gdi.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\wx._html.py to
wx\_html.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\wx._misc.py to
wx\_misc.pyo
byte-compiling
D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\wx._windows.py to
wx\_windows.pyo
byte-compiling D:\Project\DDG\exTract2\build\bdist.win32\winexe\t emp\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
Jul 18 '05 #1
0 2578

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by RJS | last post: by
2 posts views Thread by Stefan Behrens | last post: by
reply views Thread by Steven Bell | last post: by
6 posts views Thread by Luc Saffre | last post: by
2 posts views Thread by duikboot | last post: by
1 post views Thread by Funduk | last post: by
11 posts views Thread by Grant Edwards | last post: by
reply views Thread by David Vaughan | last post: by
true911m
4 posts views Thread by true911m | last post: by
5 posts views Thread by Doug Morse | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.