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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #16  
Old January 31st, 2006, 05:14 AM
snodo snodo is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 1 snodo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 41 sec
Reputation Power: 0
Quote:
Originally Posted by wx_uab
...
3 . File "Image.pyc", line 1571, in open
IOError: cannot identify image file

Solution : In order to make PIL and PY2EXE work together all libraries of PIL need to be imported explicitly such as:

import Image
import BmpImagePlugin # if you are using bitmaps
Import JpgImagePlugin # if you are dealing with jpg images

So forth ..
Note : These explicit imports may not be necessary if you are running the python script directly but are needed if you are running the exe file created by py2exe .


i tried to use this solution but it didn't work for me
i am using python 2.4 with PIL 1.15
i use reportlab 1.20 in connection with PIL to generate PDF-Files this works fine
but if i try to put my script into an executable with help of py2exe, i can't use images anymore.
if i generate PDFs without images it works fine.
but when i try to use images i get this error:

Code:
File "PIL\Image.pyc", line 1745, in open
IOError: cannot identify image file

as you can see there are about 200 lines more now in comparism to your error. and the file has moved to the subdir "PIL" -> "PIL\Images.pyc" instead of only "Image.pyc" in root dir

i hope you can help me

Reply With Quote
  #17  
Old April 28th, 2006, 12:33 AM
skchan2 skchan2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 13 skchan2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 25 m 27 sec
Reputation Power: 0
im following the instructions, but i get this error when i try to run the exe file

Traceback (most recent call last):
File "asl-alphabet.py", line 2, in ?
File "letters.pyc", line 1, in ?
File "hand.pyc", line 1, in ?
File "dmsgl.pyc", line 23, in ?
File "OpenGL\__init__.pyc", line 18, in ?
File "OpenGL\__init__.pyc", line 14, in __set_attributes
IOError: [Errno 2] No such file or directory: 'C:\\Documents and Settings\\Sunny
Chan.PDPXPIT\\Desktop\\Web Server\\ASL\\dist\\library.zip\\OpenGL\\version'

Reply With Quote
  #18  
Old May 1st, 2006, 02:28 AM
skchan2 skchan2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2006
Posts: 13 skchan2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 25 m 27 sec
Reputation Power: 0
never mind, i figured it out
Comments on this post
pabloj disagrees: Either delete or post your findings, please
netytan disagrees: Please post how you fixed the problem so others can learn from it .

Reply With Quote
  #19  
Old June 19th, 2006, 12:01 PM
asusual.unusual asusual.unusual is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Posts: 1 asusual.unusual User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 31 m 21 sec
Reputation Power: 0
help pls

i did a game in python using pygame
when i tried to convert to exe by py2exe its getting converted and the exe files are created. but when i click on the exe file it throws the following error

Traceback (most recent call last):
File "foot.py", line 390, in ?
File "foot.py", line 167, in main
File "foot.py", line 17, in load_sound
pygame.error: Mix_LoadWAV_RW with NULL src

pls help me

Reply With Quote
  #20  
Old August 1st, 2006, 09:32 AM
DomSau DomSau is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 25 DomSau Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 8 h 31 m 4 sec
Reputation Power: 0
great tutorial ill use it when i need. im only beginner

Reply With Quote
  #21  
Old November 6th, 2006, 10:13 PM
abyssalRX abyssalRX is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 8 abyssalRX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 37 m 5 sec
Reputation Power: 0
Well I am using Python 2.5 and PY2EXE.py is not a file in it. Python 2.2 (which I was previously using) had py2exe but gave an error saying to use build_exe.py.

Python 2.5 does have a build_exe.py though. any hints? Should I use the same directions and switch the words py2exe with build_exe?

EDIT: Nevermind... >.> I feel stupid now. I got it to work...

Reply With Quote
  #22  
Old January 15th, 2007, 11:54 AM
hunterxx hunterxx is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2007
Posts: 1 hunterxx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m 43 sec
Reputation Power: 0
I have learn this language before but now I want to learn by myself from the start....
Thanks for the guide links...

Reply With Quote
  #23  
Old April 14th, 2007, 12:40 PM
punchthemonkey9's Avatar
punchthemonkey9 punchthemonkey9 is offline
Jeenyus
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: New Jersey
Posts: 92 punchthemonkey9 User rank is Sergeant (500 - 2000 Reputation Level)punchthemonkey9 User rank is Sergeant (500 - 2000 Reputation Level)punchthemonkey9 User rank is Sergeant (500 - 2000 Reputation Level)punchthemonkey9 User rank is Sergeant (500 - 2000 Reputation Level)punchthemonkey9 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 2 h 23 m 7 sec
Reputation Power: 12
Send a message via AIM to punchthemonkey9
Not sure if this has been asked yet, but is there a PY2EXE equivelant for Linux to compile a Python program into a linux binary file?

Reply With Quote
  #24  
Old August 14th, 2007, 08:54 PM
eibwen eibwen is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2005
Posts: 8 eibwen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 59 m 22 sec
Reputation Power: 0
Excellent guide. Worked like a charm on the first try.
Thanks Grim!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > PY2EXE step-by-step guide


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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