Hi,
    Thanks for reply.
  can u show me an example or somthing like that?
  let me tell more in detail about my problem.
  i have a web.py project which main entry is a application.py file,
and i use the following command to make my .spec file.
         python /opt/pyinstaller-1.5.1/Makespec.py --onefile --paths=/
opt/engr/lib /opt/engr/application.py
  /opt/engr is my project source folder.
  and i used build command to build my project into an executable file
which name is application
        python /opt/pyinstaller-1.5.1/Build.py /opt/buildengr/
application.spec
everything is ok but i find some module is not in the outPYZ1.pyz when
i used ArchiveViewer to check the executable file.
       python /opt/pyinstaller-1.5.1/ArchiveViewer.py /opt/buildengr/
dist/application

the ouput is something like that:
      pos, length, uncompressed, iscompressed, type, name
[(0, 2906841, 2906841, 0, 'z', 'outPYZ1.pyz'),
 (2906841, 8223, 20548, 1, 'm', 'iu'),
 (2915064, 176, 243, 1, 'm', 'struct'),
 (2915240, 5910, 14497, 1, 'm', 'archive'),
 (2921150, 1157, 2272, 1, 's', '_mountzlib'),
 (2922307, 81, 76, 1, 's', 'useUnicode'),
 (2922388, 2146, 5215, 1, 's', 'application'),
 (2924534, 863, 1623, 1, 's', '_pyi_egg_install.py'),
 (2925397, 239, 462, 1, 's', 'redirect'),
 (2925636, 71220, 128020, 1, 'b', '_codecs_tw.so'),
 (2996856, 17930, 48991, 1, 'b', '_heapq.so'),
 (3014786, 87492, 263134, 1, 'b', 'cPickle.so'),
 (3102278, 25817, 68970, 1, 'b', 'strop.so'),
 (3128095, 15239, 42071, 1, 'b', 'sqlalchemy.cresultproxy.so'),
 (3143334, 16461, 46544, 1, 'b', '_locale.so'),
 (3159795, 75168, 236715, 1, 'b', '_sqlite3.so'),
and :
? O outPYZ1.pyz
 Name: (ispkg, pos, len)
{'BaseHTTPServer': (False, 880181, 8577),
 'ConfigParser': (False, 604911, 9029),
 'Cookie': (False, 1272205, 8924),
 'Crypto': (True, 632136, 591),
 'Crypto.Cipher': (True, 1651921, 650),
 'Queue': (False, 2692236, 3179),
 'SimpleHTTPServer': (False, 1225643, 3518),
 'SocketServer': (False, 20453, 7639),
 'StringIO': (False, 1594762, 4556),
 'UserDict': (False, 2052749, 2695),
 'UserList': (False, 72704, 1732),
 '_LWPCookieJar': (False, 2472311, 2710),
 '_MozillaCookieJar': (False, 1051137, 2281),
 '__future__': (False, 838904, 1788),
 '_abcoll': (False, 1429461, 6326),
 '_strptime': (False, 2603473, 6381),
 '_threading_local': (False, 644812, 2633),
 '_weakrefset': (False, 834138, 2493),
 'abc': (False, 1554852, 2580),
 'anydbm': (False, 136590, 1427),
 'app': (True, 2271456, 106),
 'app.common': (True, 299477, 113),
 'app.common.bzCompress': (False, 169204, 692),
 'app.common.commonservice': (False, 929943, 6360),
 'app.common.configdatahandler': (False, 1934900, 5655),
 'app.common.customexception': (False, 1208360, 1607),

the modules which not in the outPYZ1.pyz is exactly the .py file which
i need to use load_source()  on the fly. so this is a dynamic import
right?

and i get the " no module name " error when i call load_source() when
my applicaton is running. if it can not be implemented, i can also
change my way to import the .py files when i build the project, but i
don't know how to find the module in my source code.

please help me to fix the issuse, thank you very much!

      Bye


On Mar 21, 9:58 pm, Hartmut Goebel <h.goe...@goebel-consult.de> wrote:
> Am 21.03.2012 03:20, schrieb David Lai:
>
> > but, how can Pyinstaller treat the imp.load_source()?
> > how to set up the .spec file so that Pyinstaller can find the
> > source .py file?
>
> Please use the current development version. It supports an argument
> `hiddenimports` to be passed toe Analysis().
>
> PS: Saying "Hello" and "Bye" makes you mail much more friendly and
> readers much more willed to answer.
>
> --
> Schönen Gruß - Regards
> Hartmut Goebel
> Dipl.-Informatiker (univ.), CISSP, CSSLP
>
> Goebel Consult
> Spezialist für IT-Sicherheit in komplexen 
> Umgebungenhttp://www.goebel-consult.de
>
> Monatliche Kolumne:http://www.cissp-gefluester.de/
> Goebel Consult ist Mitglied beihttp://www.7-it.de
>
>  smime.p7s
> 8KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to pyinstaller@googlegroups.com.
To unsubscribe from this group, send email to 
pyinstaller+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to