On Mon, Sep 29, 2008 at 9:31 AM, Eric <[EMAIL PROTECTED]> wrote: > > > > On Sep 29, 8:06 am, "Jorge Vargas" <[EMAIL PROTECTED]> wrote: >> On Sun, Sep 28, 2008 at 11:50 PM, Eric <[EMAIL PROTECTED]> wrote: >> >> > 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: >> >> This certainly seems like an installation error. could you check the >> output of the "info" command to see exactly which packages you are >> running? or you could run python setup.py develop on your tg project >> as that will check all dependencies and be sure they are in place. > > Hi, > I ran setup.py develop and it installed the zope and toscawidgets > packages in my normal site-packages directory (they are already in my > virtualenv site-packages directory: > > (tg2env) C:\tg2env\Wiki-20>setup.py develop > running develop > running egg_info > writing requirements to Wiki_20.egg-info\requires.txt > writing Wiki_20.egg-info\PKG-INFO > writing top-level names to Wiki_20.egg-info\top_level.txt > writing dependency_links to Wiki_20.egg-info\dependency_links.txt > writing entry points to Wiki_20.egg-info\entry_points.txt > reading manifest file 'Wiki_20.egg-info\SOURCES.txt' > writing manifest file 'Wiki_20.egg-info\SOURCES.txt' > running build_ext > Creating c:\python25\lib\site-packages\Wiki-20.egg-link (link to .)
that isn't right, it should have gone to the virtualenv's site packages. > Adding Wiki-20 0.1dev to easy-install.pth file > > > (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 > File "c:\python25\lib\site-packages\zope.sqlalchemy-0.3-py2.5.egg > \zope\sqlalch > emy\__init__.py", line 17, in <module> > from datamanager import ZopeTransactionExtension, mark_changed > File "c:\python25\lib\site-packages\zope.sqlalchemy-0.3-py2.5.egg > \zope\sqlalch > emy\datamanager.py", line 15, in <module> > import transaction as zope_transaction > ImportError: No module named transaction > > I assume for the "info" command you mean paster tginfo? Here is the > output: > yes, could you try upgrading your TG2 to trunk? I remember a while ago there was an issue with zope.transaction but I'm a little busy right now to track that email down, it's somewhere in the turbogears-trunk mailing list. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

