Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with py2exe

Status
Not open for further replies.

freddypyther

Programmer
Jun 1, 2007
1
ES
Hi there!! I'm new to this forum, nice to join here with you!

I'm trying to get a .exe of a simple program I've done:

(renaming.py):

import os

top=raw_input("directorio: ")

def getNewName(name):
return name.lower()

for root, dirs, files in os.walk(top, topdown=False):
for name in files:
try:
os.rename(os.path.sep.join((root,name)),os.path.sep.join((root,getNewName(name))))
except:
print "ha habido algun error con fichero: ",
print os.path.sep.join((root,name))+"->"+os.path.sep.join((root,getNewName(name)))
for name in dirs:
try:
os.rename(os.path.sep.join((root,name)),os.path.sep.join((root,getNewName(name))))
except:
print "ha habido algun error con directorio: ",
print os.path.sep.join((root,name))+"->"+os.path.sep.join((root,getNewName(name)))



I'm following all the steps on the tutorial of but I get an error on the step with the command $ python setup.py py2exe :

It says that doesn't recognize C:\Python25\lib\site-packages\py2exe\py2exe_util.pyd like a valid windows image. I'm trying to solve it for more than a month asking in different forums and I haven't got it. So if you knew what could I do I'll be so grateful. If not, I'll be so grateful is someone know how to do it and pass me the final renaming.exe because I'm getting desperate with this stuff.

Thanks you very much!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top