durusmail: quixote-users: enable_ptl/easy_install problem
enable_ptl/easy_install problem
2007-04-30
2007-04-30
2007-04-30
2007-04-30
2007-05-01
2007-05-01
2007-05-01
2007-05-01
Re: enable_ptl/easy_install problem
2007-05-01
2007-05-01
2007-05-01
2007-05-01
Re: enable_ptl/easy_install problem - WORKING!
2007-05-02
enable_ptl/easy_install problem
Roger E. Masse
2007-04-30
Eddie --

Could this be the old PTL vs SQLObject import problem?  See:

  http://mail.mems-exchange.org/durusmail/quixote-users/3639/

I believe changing the import order and/or delaying the call to
enable_ptl is a workaround.

   -Roger

Eddie Corns writes:
 > Thanks for the reply but that doesn't help.  I will need to read more about
 > the pkg_resources stuff tomorrow but I suspect that's not where the problem
 > lies.  I didn't include a stack trace before because I thought I was being
 > smart with the minimal demo and plus it doesn't always happen at quite the
 > same place but here is one sample:
 >
 > >>> import pkg_resources
 > >>> pkg_resources.require('Quixote')
 > [Quixote 2.5b1 (/home/eddie/sys/lib/python2.5/site-packages)]
 > >>> from quixote import enable_ptl
 > >>> enable_ptl()
 > >>> from defs import *
 > Traceback (most recent call last):
 >   File "", line 1, in 
 >   File
 > "/home/eddie/sys/lib/python2.5/site-packages/quixote/ptl/ptl_import.py", line
 > 116, in find_import_module
 >     return self.loader.load_module(fullname, stuff)
 >   File
 > "/home/eddie/sys/lib/python2.5/site-packages/quixote/ptl/ptl_import.py", line
 > 100, in load_module
 >     return ihooks.ModuleLoader.load_module(self, name, stuff)
 >   File "/home/eddie/sys/lib/python2.5/ihooks.py", line 270, in load_module
 >     m = self.hooks.load_source(name, filename, file)
 >   File "/home/eddie/sys/lib/python2.5/ihooks.py", line 168, in load_source
 >     return imp.load_source(name, filename, file)
 >   File "/home/eddie/dev/netjobs/defs.py", line 32, in 
 >     connection = connectionForURI(constr)
 >   File
 > "/home/eddie/sys/lib/python2.5/site-
packages/SQLObject-0.8.2-py2.5.egg/sqlobject/dbconnection.py",
 > line 1051, in connectionForURI

reply