473,609 Members | 1,861 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
classes.
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 ***

<snip/>

byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\_mysql .py to
_mysql.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\_socke t.py to
_socket.pyo
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
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\_winre g.py to
_winreg.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\dateti me.py to
datetime.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\select .py to
select.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\unicod edata.py to
unicodedata.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\win32a pi.py to
win32api.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\win32e vtlog.py to
win32evtlog.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\win32f ile.py to
win32file.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\winsou nd.py to
winsound.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._ca lendar.py to
wx\_calendar.py o
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._co ntrols.py to
wx\_controls.py o
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._co re.py to
wx\_core.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._gd i.py to
wx\_gdi.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._ht ml.py to
wx\_html.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._mi sc.py to
wx\_misc.pyo
byte-compiling
D:\Project\DDG\ exTract2\build\ bdist.win32\win exe\temp\wx._wi ndows.py to
wx\_windows.pyo
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

<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 2731

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

Similar topics

0
2982
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 "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. py2exe output is last.
2
3348
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.
0
2020
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 were not found: warning: py2exe: * Carbon.Folder
6
3940
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.
2
4874
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
1
2583
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 py.
11
15767
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
0
2580
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 succesfully on non-gui programs, and the Python program
4
34825
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 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 haven't tested it. You'll need a working Python installation first, preferably v2.3 or later. ...
5
2018
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 problem like this occur under py2exe but not with the standard distro? Thanks in adavance for any...
0
8130
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8222
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
8406
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 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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7002
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5510
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4021
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2531
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
1
1672
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1389
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.