473,486 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

[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 2715

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2967
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
2
3333
by: Stefan Behrens | last post by:
Hi, does anybody know how I can get py2exe to work with wxPython's wxCalendarCtrl? Currently, I have just a "standard" setup.py, and py2exe gives me a syntax error. Do I need to include any...
0
1975
by: Steven Bell | last post by:
I am trying to build an executable from a python script. Using python 2.3, SOAPpy 0.10.3, Py2exe 0.4.2. Build command: python setup.py py2exe -w --includes xml.sax.drivers2.drv_py I get the...
6
3931
by: Luc Saffre | last post by:
Hello, I had a strange problem when freezing (using either py2exe or McMillan installer) a script that imports reportlab (which imports PIL (which imports FixTk))). - Python 2.3.3c (also with...
2
4868
by: duikboot | last post by:
Hi all, I've tried to create a .exe file on linux (Fedora). So in installed wine, python2.3 with wine and py2exe (with wine ofcourse) I made a setup file (setup.py) and ran >wine python.exe...
1
2574
by: Funduk | last post by:
Hello, So I've been playing with Python and Pygame for a while and I decided I wanted to make a real executable so I could send that stuff over to my friends to show off my <sarcasm>maad...
11
15722
by: Grant Edwards | last post by:
I'm trying in vain to set the icon for the executable generated by py2exe. According to various sources there are two answers: 1) Do it on the command line: python setup.py py2exe --icon...
0
2572
by: David Vaughan | last post by:
py2exe and Pmw problem ---------------------- I was really surprised not to find some faq setting out what to do to get py2exe working for a program using Pmw. I'm haemorrhaging time here, and...
4
34770
true911m
by: true911m | last post by:
Here's a little walkthrough to get py2exe up and running. I'm not an expert, so I can't help much with any problems you might have. This is what worked for me. The result here will be to convert...
5
2014
by: Doug Morse | last post by:
Hi, I have an application that runs just fine using the standard Python distro interpreter (v2.5.1 on WinXP) but throws the following exception when run as an executable built with py2exe. My...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3066
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.