PROBLEM SOLVED Thank you very much! Peter.
On 5/30/07, Expo <[EMAIL PROTECTED]> wrote: > > > > > On 29 Mag, 18:07, pdamoc <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I've tried packing an app I've made with py2exe and run into > > trouble... > > first it was an EGG issue, I've fixed that installing everything as a > > directory > > next came the sqlite issue... I simply cannot get it to work > > > > after I build the .exe I keep getting: > > > > Traceback (most recent call last): > > File "patch.py", line 53, in <module> > > File "model.pyc", line 87, in __init__ > > File "model.pyc", line 56, in createDB > > File "sqlalchemy\schema.pyc", line 1190, in __init__ > > File "sqlalchemy\schema.pyc", line 1095, in __init__ > > File "sqlalchemy\schema.pyc", line 1114, in connect > > File "sqlalchemy\engine\__init__.pyc", line 154, in create_engine > > File "sqlalchemy\engine\strategies.pyc", line 44, in create > > File "sqlalchemy\engine\url.pyc", line 92, in get_dialect > > ImportError: unknown database 'sqlite' > > > > The app works fine when I start it as a script. > > > > any idea is welcomed! > > > Tell py2exe to load sqlite database from sqlalchemy. This setup.py > show how: > > #!/usr/bin/env python > > from distutils.core import setup > import glob > import py2exe > > > def main(): > setup( > windows=[dict( > script='myapp.py', > icon_resources=[(1, "myicon.ico")] > )], > options=dict( > py2exe=dict( > compressed=1, > optimize=2, > packages=['sqlalchemy.databases.sqlite', 'other > package'] > ) > ) > ) > > if __name__ == '__main__': > main() > > > > > -- There is NO FATE, we are the creators. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---