#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    27
    Rep 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
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2004
    Posts
    103
    Rep Power
    11
    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?!?!?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Posts
    27
    Rep 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
  6. #4
  7. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    14
    "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.

IMN logo majestic logo threadwatch logo seochat tools logo