On 4/9/13 2:41 PM, Michael Bayer wrote:
and this used to work? if you're using 0.7, it uses a fairly primitive system based on __import__(). you'd want to make sure py2exe is putting every .py file under dialects/ into the final package.
Thanks, I'll look into that. Yes, I'm using 0.7.9; should I upgrade to 0.8.0?


On Apr 9, 2013, at 3:35 PM, Don Dwiggins <ddwigg...@advpubtech.com <mailto:ddwigg...@advpubtech.com>> wrote:

I have an applicationusing SA that I distributein "compiled" form, using py2exe. This has been working well, but I recently ran into a problem. I do a create_engine with the string "mssql+pyodbc://%(UserName)s:%(Password)s@%(DSN)s <mssql+pyodbc://%%28UserName%29s:%%28Password%29s@%%28DSN%29s>" (the parameters are filled in using a "%" operator).

This works without a problem when I run the source code. However, when I freeze it, I get "ArgumentError: Could not determine dialect for 'mssql+pyodbc'." (Running on the same machine, with the same environment.)

In case it might be relevant: I've recently moved my development from a Windows XP machine to a Windows 7 environment on a 64-bit machine. However, I'm using 32-bit Python, and generating 32-bit executables.

--
Don Dwiggins
Advanced Publishing Technology

--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com <mailto:sqlalchemy+unsubscr...@googlegroups.com>. To post to this group, send email to sqlalchemy@googlegroups.com <mailto:sqlalchemy@googlegroups.com>.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to