[storm] py2exe problems
James Henstridge
james at jamesh.id.au
Wed Apr 9 08:47:20 BST 2008
On 09/04/2008, Jorgen Bodde <jorgen.maillist at gmail.com> wrote:
> Hi everybody,
>
> I would like to distribute my wxPython app using Storm as executable.
> I use py2exe for that, but the following error (after creating the
> exe) puzzles me:
>
> D:\personal\src\airs\dist>airs.exe
> Traceback (most recent call last):
> File "airs.py", line 22, in ?
> File "wx\_core.pyc", line 7836, in __init__
> File "wx\_core.pyc", line 7433, in _BootstrapApp
> File "gui\airsApp.pyc", line 21, in OnInit
> File "gui\AirsFrame.pyc", line 47, in __init__
> File "data\viewmgr.pyc", line 38, in app_init
> File "data\db.pyc", line 35, in init
> File "storm\database.pyc", line 406, in create_database
> ImportError: No module named databases.sqlite
> 09:03:17: Debug: ..\..\include\wx/msw/private.h(697): 'UnregisterClass' failed w
> ith error 0x00000584 (class still has open windows.).
>
> Anyway, the error is "ImportError: No module named databases.sqlite".
> I haven't been able to google for an answer. I tried copying the
> dabases folder from the storm python egg in my application dir to no
> avail, also add sqlite3.dll did not work. What should I do to make my
> app run stand alone with Storm?
>
> this is my setup.py in case something might be missing:
>
> setup( console = [ { "script": "airs.py" } ]
> ,data_files=["setup\\dll\\msvcp71.dll"],
> )
The database backends are loaded dynamically with __import__(). You
might be able to fix this by putting the following line in your
program where py2exe can see it:
import storm.databases.sqlite
It should then be able to track your program's dependencies better.
James.
More information about the storm
mailing list