Re: [sqlalchemy] Issue with dynamically loaded modules and SQLAlchemy

2015-07-17 Thread Jeffrey McLarty
Thanks for the pointers; that was all I needed. Plunking around SQLA's PluginLoader and dialect.__init__.py with pdb...allowed me to figure out the problem. __import__ doesn't reload packages if they are already loaded, but the check to determine "already loaded", obviously can't include a compar

Re: [sqlalchemy] Issue with dynamically loaded modules and SQLAlchemy

2015-07-17 Thread Mike Bayer
On 7/17/15 1:39 PM, Mike Bayer wrote: On 7/17/15 1:21 PM, Jeffrey McLarty wrote: Hello, I've got a very peculiar situation, where SQLA fails to create an engine, because it can't find the installed module, only when I do some relatively straightforward package discovery & import logic us

Re: [sqlalchemy] Issue with dynamically loaded modules and SQLAlchemy

2015-07-17 Thread Mike Bayer
On 7/17/15 1:21 PM, Jeffrey McLarty wrote: Hello, I've got a very peculiar situation, where SQLA fails to create an engine, because it can't find the installed module, only when I do some relatively straightforward package discovery & import logic using imp.find_module and imp.load_module.

[sqlalchemy] Issue with dynamically loaded modules and SQLAlchemy

2015-07-17 Thread Jeffrey McLarty
Hello, I've got a very peculiar situation, where SQLA fails to create an engine, because it can't find the installed module, only when I do some relatively straightforward package discovery & import logic using imp.find_module and imp.load_module. I'm wondering if SQLAlchemy does some magic wh