[sqlalchemy] py2exe sqlalchemy

109 views
Skip to first unread message

Something Special

unread,
Feb 6, 2007, 11:07:14 AM2/6/07
to sqlal...@googlegroups.com
How to py2exe it?

Oleg Deribas

unread,
Feb 6, 2007, 1:05:35 PM2/6/07
to sqlal...@googlegroups.com
Hello,

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

Something Special

unread,
Feb 7, 2007, 10:06:36 AM2/7/07
to sqlal...@googlegroups.com
Thanks, but:

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

Oleg Deribas

unread,
Feb 7, 2007, 11:18:19 AM2/7/07
to sqlalchemy
Hi,

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

Something Special

unread,
Feb 8, 2007, 6:22:44 AM2/8/07
to sqlal...@googlegroups.com
Thanks, Oleg!

they should put this help somewhere on main page, or fix it:)

Oleg Deribas

unread,
Feb 8, 2007, 8:59:14 AM2/8/07
to sqlal...@googlegroups.com
Hello,

Something Special said the following on 08.02.2007 13:22:

> they should put this help somewhere on main page, or fix it:)

Michael, would you accept such patch?

--
Oleg

sqlalchemy-py2exe.patch.bz2

Michael Bayer

unread,
Feb 9, 2007, 11:12:45 AM2/9/07
to sqlal...@googlegroups.com
add an entry to the FAQ page on the wiki. possibly with a new FAQ
category "integrating with external tools".

Ali

unread,
Feb 17, 2007, 11:58:10 AM2/17/07
to sqlalchemy
Hi,

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

Michael Bayer

unread,
Feb 17, 2007, 12:16:24 PM2/17/07
to sqlal...@googlegroups.com
if you didnt have to change SA's "logging" module, its possibly
because py2.5 has better support for absolute module imports (or
maybe py2exe does).

Ali

unread,
Feb 17, 2007, 4:38:24 PM2/17/07
to sqlalchemy
Yes, I imagined something like that. I only posted to avert users from
norcebo effect that they might encounter reading this thread.

Something Special

unread,
Feb 20, 2007, 8:55:06 AM2/20/07
to sqlal...@googlegroups.com
I personally use latest python
Reply all
Reply to author
Forward
0 new messages