On Jul 5, 2006, at 10:53 PM, Arthur Clune wrote:

>
>
> I have a working Turbogears app, based on SQLObject. I wanted to play
> with SQLAlchemy (outside of TG) so I did
>
> $ easy_install SQLAlchemy
>
> Now when running my app and visiting the homepage I get this:
>
> Page handler: <bound method Root.index of <honeymine.controllers.Root
> object at 0x20c1d10>>
> Traceback (most recent call last):
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
> _cphttptools.py", line 105, in _run
>      self.main()
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/
> _cphttptools.py", line 254, in main
>      body = page_handler(*virtual_path, **self.params)
>    File "<string>", line 3, in index
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/TurboGears-0.9a6-py2.4.egg/turbogears/
> controllers.py", line 273, in expose
>      output = database.run_with_transaction(
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
> lib/python2.4/site-packages/TurboGears-0.9a6-py2.4.egg/turbogears/
> database.py", line 220, in run_with_transaction
>      sqlalchemy.objectstore.clear()
> AttributeError: 'module' object has no attribute 'objectstore'
>
> This is with changing *no* code in my app at all. All of my model
> looks like
>
> class Location(SQLObject):
>
> etc
>
> This seems, well, unexpected, to me.
>
> Arthur
>
> kremer:Desktop $ tg-admin info
> TurboGears Complete Version Information
>
> TurboGears requires:
>
> * TurboGears 0.9a6
> * nose 0.9.0a2
> * ConfigObj 4.3.1
> * RuleDispatch 0.5a0.dev-r2115
> * setuptools 0.6a11
> * FormEncode 0.5.1
> * cElementTree 1.0.5-20051216
> * PasteScript 0.5.1
> * elementtree 1.2.6-20050316
> * simplejson 1.3
> * SQLObject 0.7.1dev-r1675
> * CherryPy 2.2.1
> * TurboKid 0.9.5
> * TurboCheetah 0.9.5
> * TurboJson 0.9.2
> * PyProtocols 1.0a0dev-r2082
> * Cheetah 1.0
> * PasteDeploy 0.5
> * Paste 0.9.1
> * FormEncode 0.5.1
> * kid 0.9.1
> * Cheetah 1.0
> * elementtree 1.2.6-20050316
>
> Identity Providers
>
> * sqlobject (TurboGears 0.9a6)
> * sqlalchemy (TurboGears 0.9a6)
>
> tg-admin Commands
>
> * info (TurboGears 0.9a6)
> * shell (TurboGears 0.9a6)
> * quickstart (TurboGears 0.9a6)
> * update (TurboGears 0.9a6)
> * sql (TurboGears 0.9a6)
> * i18n (TurboGears 0.9a6)
> * toolbox (TurboGears 0.9a6)
>
> Visit Managers
>
> * sqlobject (TurboGears 0.9a6)
> * sqlalchemy (TurboGears 0.9a6)
>
> Template Engines
>
> * kid (TurboKid 0.9.5)
> * cheetah (TurboCheetah 0.9.5)
> * json (TurboJson 0.9.2)
>
> Widget Packages
>
>
> TurboGears Extensions
>
> * visit (TurboGears 0.9a6)
> * identity (TurboGears 0.9a6)


I've got both SA and SO projects in the same dev. enviroment with no  
problems whatsoever. IIRC TG checks in database.py if the config file  
has a "sqlalchemy.dburi" defined, if not, it'll use SO instead.

Are you sure that  dburi is not defined?

Alberto

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to