467,872 Members | 1,595 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,872 developers. It's quick & easy.

SQLAlchemy, py2exe and Python 2.5 problem?

I've just upgraded to Python 2.5, SQLAlchemy 0.3.3, and py2exe 0.6.5
(the py2.5 version, yes).

Simple:

---
import sqlalchemy
print 'Test'
---

works when interpreted by Python, but when running it from compiled
py2exe binary, it fails with this error:

Traceback (most recent call last):
File "main.py", line 1, in <module>
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\logging.pyc", line 30, in <module>
ImportError: No module named logging

Ofcourse, library.zip (in the dist directory) contains 'sqlalchemy
\logging.pyc'. After I copy logging.pyc to library.zips' root, I get
this error:

Traceback (most recent call last):
File "main.py", line 1, in <module>
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\logging.pyc", line 30, in <module>
File "sqlalchemy\logging.pyc", line 33, in <module>
AttributeError: 'module' object has no attribute 'getLogger'

Does anyone have a clue why this happens? And what is responsible for
this? SQLAlchemy, or py2exe?

Thanks in advance...

--
_______ Karlo Lozovina - Mosor
| | |.-----.-----. web: http://www.mosor.net || ICQ#: 10667163
| || _ | _ | Parce mihi domine quia Dalmata sum.
|__|_|__||_____|_____|
Dec 19 '06 #1
  • viewed: 1170
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by RJS | last post: by
2 posts views Thread by Stefan Behrens | last post: by
8 posts views Thread by Kathleen Kudzma | last post: by
5 posts views Thread by Rene Olsthoorn | last post: by
6 posts views Thread by Luc Saffre | last post: by
reply views Thread by David Vaughan | last post: by
20 posts views Thread by John Salerno | last post: by
1 post views Thread by Karlo Lozovina | last post: by
reply views Thread by Nathan Harmston | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.