473,545 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
+ 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
Since then a py2exe app doesn't run anymore:

Traceback (most recent call last):
File "MainFrame. py", line 26, in ?
File "Notebook.p yo", line 125, in ?
File "NotebookPage_A ctivities.pyo", line 7, in ?
File "Editors.py o", 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 ***


D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\_mysql .py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\_socke t.py to
byte-compiling D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\_sre.p y
to _sre.pyo
byte-compiling D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\_ssl.p y
to _ssl.pyo
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\_winre g.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\dateti me.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\select .py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\unicod edata.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\win32a pi.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\win32e vtlog.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\win32f ile.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\winsou nd.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._ca lendar.py to
wx\_calendar.py o
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._co ntrols.py to
wx\_controls.py o
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._co re.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._gd i.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._ht ml.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._mi sc.py to
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._wi ndows.py to
byte-compiling D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\zlib.p y
to zlib.pyo
removing c:\dokume~1\ddg _fge\lokale~1\t emp\tmp1psfqf.p y


Has anybody else experienced this?

Python 2.3.4 on WinXP
py2exe 0.5.2

Many thanks in advance and best regards
Jul 18 '05 #1
0 2722

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

Similar topics

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- and ActivePython-2.2.1-222. In the sample below, commenting out "import numarray" allows the exe to run. Left in, I get "4.exe has generated errors" etc. I'm going around and around and there isn't much on Google....
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 special extension and how? Below is the output I get as well as a small demo app to reproduce the problem.
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 following output: warning: py2exe: ************************************************************************* warning: py2exe: * The following modules...
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 Python 2.3) - PIL 1.1.4 - Installer or py2exe : latest versions.
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 setup.py py2exe Does anybody know what I've done wrong? Or is it just not possible
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 skillz</sarcasm>. Everything was going great I went and got all the newest software (including Distutils and PY2EXE) and read the docs on making a setup...
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 foo.ico That generates a usage error: error: --icon not recognized
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 I'm now just after step-by-step guidance on using py2exe and Pmw together. I wasn't expecting this to take hours... I've used py2exe...
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 a simple python app into a single .exe file that can be copied and run on any Windows XP machine. It may work on many other Windows platforms, but I...
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 questions are: (a) does anyone have any thoughts on why this exception is occurring and what to do about it, and (b) more generally, why would a...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
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 we have to send another system
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.