Hi
I've just setup a new windows machine with Python 2.5 and TG 1.09 using
virtualenv.
I installed Python and then installed easy_install.
I created my virtualevn with --no-site-packages I activated my virtualenv I
installed tg and other necessary components using easy_install where available
I have an existing TG app so I switched to that directory and ran "tg-admin
shell" - it worked fine I then tried to start my app and get the following:
C:\>\ve\tg1\scripts\activate.bat
(tg1) C:\>cd\pywork\motion
(tg1) C:\PyWork\motion>start-motion.py
Traceback (most recent call last):
File "C:\PyWork\motion\start-motion.py", line 3, in <module>
pkg_resources.require("TurboGears")
File
"C:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.
py", line 666, in require
File
"C:\Python25\lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.
py", line 565, in resolve
pkg_resources.DistributionNotFound: TurboGears
(tg1) C:\PyWork\motion>
Turbogears is installed in my virtualenv, but it seems as though it is looking
for it outside of my virtualenv.
Here is a listing of what is in c:\python25\lib\site-packages:
(tg1) C:\Python25\Lib\site-packages>dir
Volume in drive C has no label.
Volume Serial Number is C092-C023
Directory of C:\Python25\Lib\site-packages
10/23/2009 03:40 PM <DIR> .
10/23/2009 03:40 PM <DIR> ..
10/23/2009 03:36 PM 244 easy-install.pth
10/23/2009 03:40 PM <DIR> MySQLdb
10/23/2009 03:40 PM <DIR> MySQL_python-1.2.2-py2.5.egg-info
10/28/2005 07:07 PM 121 README.txt
10/23/2009 03:35 PM 333,390 setuptools-0.6c11-py2.5.egg
10/23/2009 03:35 PM 31 setuptools.pth
10/23/2009 03:36 PM <DIR> virtualenv-1.3.4-py2.5.egg
10/23/2009 03:45 PM 1,507,328 _mysql.pyd
10/23/2009 03:45 PM 2,306 _mysql_exceptions.py
10/23/2009 03:45 PM 4,151 _mysql_exceptions.pyc
10/23/2009 03:45 PM 4,151 _mysql_exceptions.pyo
8 File(s) 1,851,722 bytes
5 Dir(s) 145,546,678,272 bytes free
...and here is a listing of what is in my virtualenv site-packages:
(tg1) C:\ve\tg1\Lib\site-packages>dir
Volume in drive C has no label.
Volume Serial Number is C092-C023
Directory of C:\ve\tg1\Lib\site-packages
10/23/2009 03:57 PM <DIR> .
10/23/2009 03:57 PM <DIR> ..
10/23/2009 03:54 PM <DIR> cheetah-2.2.2-py2.5.egg
10/23/2009 03:53 PM <DIR> cherrypy-2.3.0-py2.5.egg
10/23/2009 03:53 PM 67,924 configobj-4.6.0-py2.5.egg
10/23/2009 03:57 PM <DIR> dateutil
10/23/2009 03:53 PM 28,062 DecoratorTools-1.7-py2.5.egg
10/23/2009 03:57 PM 879 easy-install.pth
10/23/2009 03:54 PM 4,425 extremes-1.1.1-py2.5.egg
10/23/2009 03:53 PM <DIR> formencode-1.2.2-py2.5.egg
10/23/2009 03:54 PM <DIR> kid-0.9.6-py2.5.egg
10/23/2009 03:54 PM 128,056 Markdown-2.0.3-py2.5-win32.egg
01/28/2008 10:52 AM 832,125 MySQL_python-1.2.2-py2.5-win32.egg
10/23/2009 03:54 PM <DIR> paste-1.7.2-py2.5.egg
10/23/2009 03:54 PM <DIR> pastedeploy-1.3.3-py2.5.egg
10/23/2009 03:53 PM <DIR> pastescript-1.7.3-py2.5.egg
10/23/2009 03:50 PM <DIR> PIL-1.1.7b1-py2.5-win32.egg
10/23/2009 03:43 PM 34,159 pyodbc-2.1.6-py2.5-win32.egg
10/23/2009 03:54 PM 138,427 PyProtocols-1.0a0-py2.5-win32.egg
10/23/2009 03:56 PM 414 python_dateutil-1.3-py2.5.egg-info
10/23/2009 03:53 PM 190,457
RuleDispatch-0.5a1.dev_r2506-py2.5-win32.
egg
10/23/2009 03:36 PM 328,025 setuptools-0.6c9-py2.5.egg
10/23/2009 03:39 PM 30 setuptools.pth
10/23/2009 03:52 PM 67,323 simplejson-2.0.9-py2.5-win32.egg
10/23/2009 03:57 PM <DIR> SQLObject-0.12.0-py2.5.egg
10/23/2009 03:52 PM <DIR> TurboCheetah-1.0-py2.5.egg
10/23/2009 03:52 PM <DIR> TurboGears-1.0.9-py2.5.egg
10/23/2009 03:52 PM <DIR> TurboJson-1.1.4-py2.5.egg
10/23/2009 03:52 PM <DIR> TurboKid-1.0.4-py2.5.egg
13 File(s) 1,820,306 bytes
16 Dir(s) 145,546,661,888 bytes free
Any ideas what I got wrong? The TG app was created on a system without
virtualenv installed.
-Jim
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---