Have you tried "python setup.py develop" from the trunk ? it generate and setup you tg-admin
Le 3 nov. 05 à 22:51, Sean Cazzell a écrit :


Jeremy,

I ran into the same issue - there may be an easier way to fix it, but I
edited my tg-admin script and commented out the

__requires__ = 'TurboGears==0.8a4'

line and changed the load_entry_point call to:

load_entry_point('TurboGears', 'console_scripts', 'tg-admin')()

It worked for me! Does anyone know how to generate the tg-admin script
from a SVN tree?  I tried "python setup.py install_scripts" but I get
the following error:

error: cannot copy tree 'build/scripts-2.4': not a directory


Kind Regards,

Sean Cazzell


On Thu, 2005-11-03 at 13:35 -0800, Jeremy wrote:
Ok.. So I tried to upgrade to the svn version of turbogears...

I installed svn.

Then I downloaded the turbogears latest version by running:
svn co http://www.turbogears.org/svn/turbogears/trunk turbogears

Then I ran:
easy_install RuleDispatch

After that:
python setup.py develop

Now, whenever I run tg-admin, I get:
asimov:~/turbogears jeremy$ tg-admin
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/setuptools-0.6a7-py2.4.egg/pkg_resources.py:1943:
UserWarning: Module paste was already imported from
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/PasteDeploy-0.3-py2.4.egg/paste/__init__.pyc,
but
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/Paste-0.3-py2.4.egg
is being added to sys.path
  warn(
Traceback (most recent call last):
  File "/usr/local/bin/tg-admin", line 7, in ?
    sys.exit(
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/setuptools-0.6a7-py2.4.egg/pkg_resources.py",
line 236, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/setuptools-0.6a7-py2.4.egg/pkg_resources.py",
line 229, in get_distribution
    if isinstance(dist,Requirement): dist = get_provider(dist)
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/setuptools-0.6a7-py2.4.egg/pkg_resources.py",
line 115, in get_provider
    return working_set.find(moduleOrReq) or
require(str(moduleOrReq))[0]
  File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ site-packages/setuptools-0.6a7-py2.4.egg/pkg_resources.py",
line 382, in find
    raise VersionConflict(dist,req)     # XXX add more info
pkg_resources.VersionConflict: (TurboGears 0.9a0dev-r136
(/Users/jeremy/turbogears), Requirement.parse('TurboGears==0.8a3'))


Aparently, there is a version conflict, but I do not know how to
resolve this.

Thanks!

Jeremy



Reply via email to