473,705 Members | 6,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

py2exe and UPPER CASE file system

Hi,
my problem is, I try to use a py2exe compiled python script from a
CD-ROM. This should work, BUT the tool I use (or have to use) generates
only upper case file names on the CD-ROM.

For py2exe 0.4.1 and python 2.2 this worked fine... but the current
releases do not.

Any ideas or help?
Thanks in advance
Werner Merkl
Jul 18 '05 #1
4 1983
Werner Merkl <werner_DOT_mer kl_@_fujitsu_DA SH_siemens.com> writes:
Hi,
my problem is, I try to use a py2exe compiled python script from a
CD-ROM. This should work, BUT the tool I use (or have to use)
generates only upper case file names on the CD-ROM.

For py2exe 0.4.1 and python 2.2 this worked fine... but the current
releases do not.


I would say if it worked it was a bug ;-).

Does it work in newer versions when you set the PYTHONCASEOK environment
variable?

Thomas
Jul 18 '05 #2
Thomas Heller wrote:
Werner Merkl <werner_DOT_mer kl_@_fujitsu_DA SH_siemens.com> writes:

Hi,
my problem is, I try to use a py2exe compiled python script from a
CD-ROM. This should work, BUT the tool I use (or have to use)
generates only upper case file names on the CD-ROM.

For py2exe 0.4.1 and python 2.2 this worked fine... but the current
releases do not.

I would say if it worked it was a bug ;-).


Oops... I thought, this was by intention, because py2exe 0.4.1 has its
own module loader...
Does it work in newer versions when you set the PYTHONCASEOK environment
variable?

Yes, this would work, BUT if I start a Python EXE directly from CD, then
normally this variable is NOT set...

So I need to set it inside the Python EXE or run a C wrapper to set the
environment variable and than start my Python EXE.

BTW: I tried to "import os" or "import OS as os" to add
"os.environ ment['PYTHONCASEOK'] = '1'" inside, but this seemed not to work.
regards
Werner
Jul 18 '05 #3
On Wed, 2004-10-27 at 08:20 +0200, Werner Merkl wrote:
Werner Merkl <werner_DOT_mer kl_@_fujitsu_DA SH_siemens.com> writes:
my problem is, I try to use a py2exe compiled python script from a
CD-ROM. This should work, BUT the tool I use (or have to use)
generates only upper case file names on the CD-ROM.


Somehow I missed the original post, but what OS are you on that have to
use a tool that generates only uppercase filenames on the CD? If you're
on Windows, Linux, BSD, Solaris or most any modern OS, you should be
able to use cdrtools (cdrecord + mkisofs) which can generate
Rockridge/Joliet CD's with regular (long mixed case) filenames:

cdrecord homepage:
http://www.fokus.gmd.de/research/cc/.../cdrecord.html

binaries for a lot of different systems here:
ftp://ftp.berlios.de/pub/cdrecord/ProDVD/

Regards,
Cliff

--
Cliff Wells <cl************ @comcast.net>

Jul 18 '05 #4
Cliff Wells wrote:
On Wed, 2004-10-27 at 08:20 +0200, Werner Merkl wrote:
Werner Merkl <werner_DOT_mer kl_@_fujitsu_DA SH_siemens.com> writes:
my problem is, I try to use a py2exe compiled python script from a
CD-ROM. This should work, BUT the tool I use (or have to use)
generates only upper case file names on the CD-ROM.


Somehow I missed the original post, but what OS are you on that have to
use a tool that generates only uppercase filenames on the CD? If you're
on Windows, Linux, BSD, Solaris or most any modern OS, you should be
able to use cdrtools (cdrecord + mkisofs) which can generate
Rockridge/Joliet CD's with regular (long mixed case) filenames:

My problem is not a matter of operation systems. Windows can handle
upper and lower case, BUT I need to a CD mastering tool, which converts
all lower cases to upper cases.
cdrecord homepage:
http://www.fokus.gmd.de/research/cc/.../cdrecord.html

binaries for a lot of different systems here:
ftp://ftp.berlios.de/pub/cdrecord/ProDVD/


Thanks for your advice, but I cannot change our mastering tool.
Regards
Werner
Jul 18 '05 #5

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

Similar topics

11
15788
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
19
2212
by: Lad | last post by:
I used Py2exe to compile my script( I use XP). The compiled script works OK on my XP where Python is installed. But when I install the compiled exe to another computer, os.system causes the following error: Bad file or command name Any help would be appreciated.
4
3589
by: Werner Merkl | last post by:
Hi, we have written a Python EXE program, which should run via AUTORUN.INF from a CD/DVD (Windows of course). For this CD/DVD we us a imaging tool from Microsoft, which seam to generate a pure ISO 9660 level 1 image.
2
4144
by: Maria.Reinhammar | last post by:
I have an app using active_directory.py and the std module asyncore in a Windows Service. Works perfectly! That is, until I try to use py2exe to create a standalone (need to avoid installing the entire Python etc. on the target system). When I try to start the installed Service, the system tells me it terminates prematurely and in the event log I find: The instance's SvcRun() method failed
4
34875
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. ...
0
13469
bartonc
by: bartonc | last post by:
You can find the original author of the script by ggling " Py2Exe version 6.3 setup" The cool thing about this is that it calls py2exe, just in case you're uncomfortable with the command line. I had to search hi and lo for the example of how to exclude Tkinter. Coming soon: scipy includes and numpy include that gets rid of complaints of missing modules that are fantom errors. # Py2Exe version 6.3 setup file for wxPython GUI programs. #...
1
2982
by: Jimmy Retzlaff | last post by:
py2exe 0.6.8 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported. Changes in 0.6.8:
0
1523
by: Larry Bates | last post by:
Jimmy Retzlaff wrote: Everyone, Thanks for all your hard work on py2exe, it is greatly appreciated. -Larry Bates
0
3120
by: Jimmy Retzlaff | last post by:
py2exe 0.6.9 released ===================== py2exe is a Python distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation. Console and Windows (GUI) applications, Windows NT services, exe and dll COM servers are supported. Changes in 0.6.9:
0
8768
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...
0
8690
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9139
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8979
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
7895
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...
1
6606
isladogs
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4440
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...
2
2491
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2083
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.