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:
  #1  
Old May 3rd, 2004, 02:51 PM
DevHims DevHims is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 27 DevHims User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question py2Exe problem? Help needed please?

Heloooooo to all,

I am really new to python and also to py2exe. I have been working with python since few days. I am trying to create stream.exe file from stream.py file.

Stream.py file imports module using this syntex
"from import libflow *"
and use functions which are defined in libflow module.

When i used py2exe to create stream.exe ,it creates streams .exe file but atlast gives error message that

'[libflow]' unable to locate this module.

When i used stream.exe it is not working properly.

My setup script, stream.py file and all other necessary files are in same folder.


What i shoud use to make stream.exe working properly?

My setup.py file is

from distutils.core import setup
import py2exe
setup(console=["stream.py"])


I tried every possible ways, which i found on internet. But no one worked. Please anybody can send me some referencce or solution example for my problem.

Thanks in advance.

DevHims

Reply With Quote
  #2  
Old May 3rd, 2004, 06:39 PM
Boceifus's Avatar
Boceifus Boceifus is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 95 Boceifus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 5 h 2 m 36 sec
Reputation Power: 5
I think the problem is that your libflow isnt in the standard library to import (python23/lib or python23/lib/site-packages) so when you try to import it,python can't find the specified module.Try making sure the module is in one of those directories then try to compile your script again.
__________________
It is not important if the glass is half full or half empty.What is important,is who has been drinking from MY glass?!?!?

Reply With Quote
  #3  
Old May 4th, 2004, 10:03 AM
DevHims DevHims is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 27 DevHims User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question I tried that. It did not work.

Hiii,

I tried to copy libFLow module in python23/lib and also to python23/lib/site-packages. But it is giving same error." '[libFLow]' appear to be missing. I do not know what is problem.

Please anybody help me.!!!!!

Thanks.

DevHims

Reply With Quote
  #4  
Old May 4th, 2004, 05:45 PM
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
"from import libflow *"
should be
"from libflow import *"

Is the program working without using py2exe?

Did you install libflow yourself?
Where do you think it is located?

c:\python23\python stream.py will run the program without using py2exe.
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > py2Exe problem? Help needed please?


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 5 hosted by Hostway
Stay green...Green IT