Hi all,

I just found pyinstaller today and started using it.
I am trying to package GNUmed - a GNU small medical clinic software. It's 
written in python and wxpython and makes use of a bunch of modules such as 
PIL, mx, psycopg2, pypgsql

Packaging works fine so far with some warnings but app does not run correctly.
Problem seems to be import of a submodule og GNUmed

GNUmed when properly installed uses some modules 
in /usr/lib/python/site-packages/Gnumed
such as:

numobile:/usr/lib/python/site-packages/Gnumed # dir
insgesamt 12
-rw-r--r-- 1 basti users    1 2005-09-17 18:11 __init__.py
-rw-r--r-- 1 root  root   131 2005-09-19 22:41 __init__.pyc
lrwxrwxrwx 1 root  root    59 2006-09-06 12:57 
business -> /home/basti/sources/gnumed-02/gnumed/gnumed/client/business
lrwxrwxrwx 1 root  root    60 2006-09-06 12:57 
exporters -> /home/basti/sources/gnumed-02/gnumed/gnumed/client/exporters
lrwxrwxrwx 1 root  root    60 2006-09-06 12:56 
importers -> /home/basti/sources/gnumed-02/gnumed/gnumed/client/importers
wxpython -> /home/basti/sources/gnumed-02/gnumed/gnumed/client/wxpython

|-- business
|   |-- CVS
|   |   |-- Entries
|   |   |-- Repository
|   |   `-- Root
|   |-- README
|   |-- __init__.py
|   |-- __init__.pyc
|   |-- gmAllergy.py
|   |-- gmAllergy.pyc
|   |-- gmClinItem.py
|   |-- gmClinItem.pyc
|   |-- gmClinNarrative.py
|   |-- gmClinNarrative.pyc
|   |-- gmClinicalRecord.py
|   |-- gmClinicalRecord.pyc
|   |-- gmDemographicRecord.py
|   |-- gmDemographicRecord.pyc
|   |-- gmEMRStructItems.py
|   |-- gmEMRStructItems.pyc
|   |-- gmForms.py
|   |-- gmKVK.py
|   |-- gmKVK.pyc
|   |-- gmMedDoc.py
|   |-- gmMedDoc.pyc
|   |-- gmOrganization.py
|   |-- gmPathLab.py
|   |-- gmPathLab.pyc
|   |-- gmPerson.py
|   |-- gmPerson.pyc
|   |-- gmProviderInbox.py
|   |-- gmProviderInbox.pyc
|   |-- gmSOAPimporter.py
|   |-- gmSOAPimporter.pyc
|   |-- gmVaccination.py
|   |-- gmVaccination.pyc
|   |-- gmXdtMappings.py
|   |-- gmXdtMappings.pyc
|   |-- gmXdtObjects.py
|   |-- gmXdtObjects.pyc
|   `-- gmXmlDocDesc.py



---------------------------------------------------------------------------------------------------------------

They are detected just fine but GNUmed won't run when they are not on the 
target system.

So I  run makespecfile.sh like this:

#!/bin/sh
ln -vfsn /home/basti/sources/gnumed-02/gnumed/gnumed/client Gnumed
python ../Makespec.py ./Gnumed/wxpython/gnumed.py 
--paths=./Gnumed:./Gnumed/wxpython/gui

and subsequently build.sh:
#!/bin/sh
python ../Build.py gnumed.spec
 
_________________________________________________________________
This actually 'compiles' and I can start GNUmed. The login dialog appears and 
I can connect to my postgres database to I assume all modules for that like 
pypgsql , wxpython are picked up correctly.

Then GNUmed dies and this is what is interesting in the GNUmed logfile (import 
stuff) Seems like a submodule/subdirectory wasn't picked up.

directory structure goes like this

site-packages/Gnumed/wxpython
site-packages/Gnumed/wxpython/gui
site-packages/Gnumed/wxpython/patient

_________________________________________________________________

GNUmed log says:

2006-09-06 15:09:21 [WARN]  
(/home/basti/sources/pyinstaller_1.2/gnumed/buildgnumed/out1.pyz/Gnumed.wxpython.gmPlugin:[EMAIL
 PROTECTED]): 
exception value: No module named Gnumed.wxpython.gui
2006-09-06 15:09:21 [DATA]  
(/home/basti/sources/pyinstaller_1.2/gnumed/buildgnumed/out1.pyz/Gnumed.wxpython.gmPlugin:[EMAIL
 PROTECTED]): 
Traceback (most recent call last):<#10-0x0A-lf>
2006-09-06 15:09:21 [DATA]  
(/home/basti/sources/pyinstaller_1.2/gnumed/buildgnumed/out1.pyz/Gnumed.wxpython.gmPlugin:[EMAIL
 PROTECTED]):   
File 
"/home/basti/sources/pyinstaller_1.2/gnumed/buildgnumed/out1.pyz/Gnumed.wxpython.gmPlugin",
 
line 297, in __gm_import<#10-0x0A-lf>
2006-09-06 15:09:21 [DATA] 

___________________________________________________________________

How can I check if the Gnumed.wxpython.gui exists in the package ?

Thanks for any help. It really looks promising.
                      
-- 
Sebastian Hilbert 
Leipzig / Germany
[www.gnumed.de]  -> PGP welcome, HTML ->/dev/null
_______________________________________________
PyInstaller mailing list
[email protected]
http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller

Reply via email to