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

Discussion in 'Python' started by F. GEIGER, Aug 16, 2004.

  1. F. GEIGER

    F. GEIGER Guest

    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
    F. GEIGER, Aug 16, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. x-herbert
    Replies:
    2
    Views:
    1,814
    x-herbert
    Aug 8, 2003
  2. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    685
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  3. Chris
    Replies:
    2
    Views:
    5,030
    Chris
    Oct 21, 2005
  4. ye juan
    Replies:
    1
    Views:
    2,142
    Lee Harr
    Feb 1, 2006
  5. Barak, Ron
    Replies:
    0
    Views:
    818
    Barak, Ron
    Sep 10, 2008
Loading...

Share This Page