Hi all,
I'm fairly new to Python and new to Turbogears (1.9.7a4) using Python
2.5 on Win XP.  I have set up a virtual environment (virtualenv c:
\tg2env --no-site-packages) and can successfully get the demo page to
come up (paster serve --reload development.ini).  When I try to init
the database per the tutorial (python initializeDB.py) I get:

(tg2env) C:\tg2env\Wiki-20>initializeDB.py
Traceback (most recent call last):
  File "C:\tg2env\Wiki-20\initializeDB.py", line 1, in <module>
    from wiki20.model import DBSession, Page, metadata
  File "C:\tg2env\Wiki-20\wiki20\model\__init__.py", line 2, in
<module>
    from zope.sqlalchemy import ZopeTransactionExtension
ImportError: No module named zope.sqlalchemy

If I swap the zope.sqlalchemy import statement with the next statement
in __init__.py (sqlalchemy.orm import) it throws the same No module
error.  I used the python interpreter to check the path:

>>> import sys
>>> sys.prefix
'c:\\tg2env'
>>> import pprint
>>> pprint.pprint(sys.path)
['',
 'c:\\tg2env\\lib\\site-packages\\setuptools-0.6c8-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\simplejson-1.9.2-py2.5-win32.egg',
 'c:\\tg2env\\lib\\site-packages\\tg.devtools-1.9.7a4-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\paste-1.7.1-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\wsgiref-0.1.2-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\turbojson-1.2-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\tg.ext.repoze.who-0.1dev_r26-
py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\dbsprockets-0.5dev_r411-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\tw.forms-0.9.1-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\toscawidgets-0.9.2-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\sqlalchemy_migrate-0.4.4-py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\peak_rules-0.5a1.dev_r2562-
py2.5.egg',
 'c:\\tg2env\\lib\\site-packages\\zope.sqlalchemy-0.3-py2.5.egg',
...

and it appears the files are all where they are supposed to be.  At
this point I am stuck, how do I get past this error?

Thanks,
Eric

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to