Hello everyone,

just trying to install TG on mac, followed the instructions and went to
do the easy install by:

sudo python ez_setup.py -f
http://www.turbogears.org/download/index.html --script-dir
/usr/local/bin TurboGears

 install seemed to make itall the way through, but i got a few error
messages, which are below and am unsure which needs to be addressed
first.  when trying to run turbogears-admin.py  i get importing
problems. not exactly sure what to do from here.. has anyone run into
this? here's what i get:


Ron-pastores-Computer:~ ronpastore$ /usr/local/bin/turbogears-admin.py

Traceback (most recent call last):
  File "/usr/local/bin/turbogears-admin.py", line 3, in ?
    import pkg_resources
ImportError: No module named pkg_resources


And the original install went as follows:

Downloading
http://cheeseshop.python.org/packages/2.3/s/setuptools/setuptools-0.6a1-py2.3.egg
Reading http://www.turbogears.org/download/index.html
Searching for TurboGears
Best match: TurboGears 0.5.1
Downloading
http://www.turbogears.org/download/eggs/TurboGears-0.5.1.tar.gz
Processing TurboGears-0.5.1.tar.gz
Running TurboGears-0.5.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-wBVD06/TurboGears-0.5.1/egg-dist-tmp-Lckmu7
Searching for TestGears>=0.2
Reading http://www.python.org/pypi/TestGears/
Reading http://www.turbogears.org/testgears/
Best match: TestGears 0.2
Downloading
http://www.turbogears.org/download/eggs/TestGears-0.2.tar.gz
Processing TestGears-0.2.tar.gz
Running TestGears-0.2/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-wBVD06/TurboGears-0.5.1/temp/easy_install-VRb9qI/TestGears-0.2/egg-dist-tmp-uHBTTR

Installed
/private/tmp/easy_install-wBVD06/TurboGears-0.5.1/TestGears-0.2-py2.3.egg

Because this distribution was installed --multi-version or
--install-dir,
before you can import modules from this package in an application, you
will need to 'import pkg_resources' and then use a 'require()' call
similar to one of these examples, in order to select the desired
version:

    pkg_resources.require("TestGears")  # latest installed version
    pkg_resources.require("TestGears==0.2")  # this exact version
    pkg_resources.require("TestGears>=0.2")  # this version or higher

  File
"build/bdist.darwin-7.9.0-Power_Macintosh/egg/turbogears/tests/test_controllers.py",
line 9
    @turbogears.expose(html="turbogears.tests.simple")
    ^
SyntaxError: invalid syntax
  File
"/Library/Python/2.3/TurboGears-0.5.1-py2.3.egg/turbogears/tests/test_controllers.py",
line 9
    @turbogears.expose(html="turbogears.tests.simple")
    ^
SyntaxError: invalid syntax
Adding TurboGears 0.5.1 to easy-install.pth file
Installing turbogears-admin.py script to /usr/local/bin

Installed /Library/Python/2.3/TurboGears-0.5.1-py2.3.egg
Processing dependencies for TurboGears
Searching for kid>=0.7a
Reading http://www.python.org/pypi/kid/
Reading http://lesscode.org/projects/kid/
No local packages or download links found for kid>=0.7a
error: Could not find distribution for Requirement.parse('kid>=0.7a')

Reply via email to