Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > [py2exe] py2exe and datetime -> No module named datetime

Reply
Thread Tools

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

 
 
F. GEIGER
Guest
Posts: n/a
 
      08-16-2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ImportError: No module named zipextimporter on py2exe when { Barak, Ron Python 0 09-10-2008 11:58 AM
load module named "datetime" and change the directory of output file? ye juan Python 1 02-01-2006 09:48 PM
HELP! py2exe error - No module named decimal Chris Python 2 10-21-2005 09:13 PM
datetime: .datetime-.datetime = .timedelta, .time-.time=TypeError ? Christos TZOTZIOY Georgiou Python 3 09-13-2003 10:44 AM
py2exe: "ImportError: No module named pywintypes" ...?? :-( x-herbert Python 2 08-08-2003 08:48 AM



Advertisments