Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old February 5th, 2004, 01:01 PM
sik sik is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 sik User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
py2exe then a problem

I only started to learn python yesterday.

I tried to compile my script into an executable via py2exe and it worked. When I try to execute it though this is what happens:

C:\Python23\dist>hello
Could not locate script resource:

(so i try again)

C:\Python23\dist>hello.exe
Could not locate script resource:

All the files that came along with the compilation are also in the dist folder.


ANy help? TY

Reply With Quote
  #2  
Old February 5th, 2004, 04:21 PM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,529 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 19 m 5 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Add one to the list of strange py2exe errors . Anyway what exactly did you do to compile the files. also mayvbe you could attach your program and setup file..

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
  #3  
Old February 21st, 2004, 08:06 AM
eolruin eolruin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 eolruin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
May this helps...

Recheck the output of py2exe for a traceback ...

I had the same error with an 'old' *.exe file my 'bin' directory (an older version of the script I copyied to the folder I store my python exes).

Seems it can be that some part of your exe file doesn't match the libraries (datetime.pyd, library.zip, python23.dll,wxpopen.exe, _sre.pyd etc.) you have copied/which are created by py2exe.

Make sure you really have a new .exe after calling py2exe.

Recall your 'setup.py py2exe' combo until you get NO TRACEBACK !

BTW: Please note also that py2exe has changed:

an older version had the key/value "script=['cconv.py']", the newest (from about 2 weeks before) had now "console=['cconv.py']" for a console application ...

sample "setup.py" from my sources:

from distutils.core import setup
import py2exe

setup(name='cconv /eol 2003',
description="wrapper for charconv.exe ",
console=['cconv.py'])

HTH ,

=(eol.ruin)=

Last edited by eolruin : February 21st, 2004 at 08:10 AM.

Reply With Quote
  #4  
Old February 21st, 2004, 11:00 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
Python and py2exe in one day, that's a lot to learn in short time.
Make sure you are using the latest versions of Python (2.3.3) and Py2exe (0.5.0). Then read the other threads here (search this forum for py2exe) and read the py2exe website and it's wiki. It's a good chance that other documentation and examples on using py2exe are out of date.

Does anyone know of a new tutorial? Could be an opportunity for someone
Grim
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > py2exe then a problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway