Something Special said the following on 06.02.2007 18:07:
> How to py2exe it?
1. Install SQLAlchemy with --always-unzip
2. Rename sqlalchemy's logging.py to log.py
3. Search/replace "logging" with "log" in all sqlalchemy's sources
except log.py itself
--
Oleg
C:\temp\alchemy>dist\da.exe
Traceback (most recent call last):
File "da.py", line 1, in <module>
from sqlalchemy import *
File "sqlalchemy\__init__.pyc", line 10, in <module>
File "sqlalchemy\orm\__init__.pyc", line 12, in <module>
File "sqlalchemy\orm\mapper.pyc", line 7, in <module>
File "sqlalchemy\log.pyc", line 30, in <module>
ImportError: No module named logging
Something Special wrote:
> File "sqlalchemy\log.pyc", line 30, in <module>
> ImportError: No module named logging
Include logging explicitly in py2exe parameters, or just import
logging somewhere in your application's sources.
--
Oleg
they should put this help somewhere on main page, or fix it:)
I might be going insane, but I am successfully using Sqlalchemy
(0.3.4, Python2.5, py2exe 0.6.6) with py2exe without any problems.
I did (as suggested) an "easy_install --always-unzip" to prevent
having an egg, and then included 'packages': 'sqlalchemy' in the
options dict for py2exe.
e.g.
options = {
'py2exe' : {
'packages': 'encodings, sqlalchemy', etc.
I am waiting for it to explode...
Ali