several scripts are put in /usr/bin and/or /usr/local/bin
you probably have a mismatch between them. I'm not sure where the
debian package puts things but here are the names of everything
install by setuptools.
this is one of the reasons we currently recommend using tg-setup,
because setuptools by default puts things in /usr/bin and upgrades or
new users will try the package and setuptools and end up messing their
system :) sadly the only way to clean it is manually.
bin files.
cheetah
cheetah-compile
easy_install
kid
kidc
paster
sqlobject-admin
tg-admin
here is the list of eggs that should be deleted from
/usr/lib/python2.4/site-packages
do NOT delete easy_install.pth if you have installed other things
manually with setuptools.
cElementTree-1.0.5_20051216-py2.4-linux-i686.egg
Cheetah-1.0-py2.4-linux-i686.egg
CherryPy-2.2.1-py2.4.egg
configobj-4.3.2-py2.4.egg
easy-install.pth
elementtree-1.2.6-py2.4.egg
FormEncode-0.6-py2.4.egg
Genshi-0.3.6-py2.4.egg
kid-0.9.3-py2.4.egg
Paste-0.9.7-py2.4.egg
Paste-1.1.1-py2.4.egg
PasteDeploy-0.9.6-py2.4.egg
PasteScript-0.9.7-py2.4.egg
PyProtocols-1.0a0-py2.4-linux-i686.egg
pysqlite-2.3.2-py2.4-linux-i686.egg
RuleDispatch-0.5a0.dev_r2115-py2.4-linux-i686.egg
RuleDispatch-0.5a0.dev_r2247-py2.4-linux-i686.egg
setuptools-0.6c5-py2.4.egg
setuptools.pth
simplejson-1.3-py2.4.egg
SQLObject-0.8.0b2-py2.4.egg
ToscaWidgets-0.1a2dev_r2453-py2.4.egg
TurboCheetah-0.9.5-py2.4.egg
TurboGears-1.0.1-py2.4.egg
TurboJson-1.0-py2.4.egg
TurboKid-0.9.8-py2.4.egg
twForms-0.1a1-py2.4.egg
On 2/9/07, xnadal <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I remove the debian package and install with tgsetup, now when I do tg-
> admin info it shows
>
> Traceback (most recent call last):
> File "/usr/local/bin/tg-admin", line 7, in ?
> sys.exit(
> File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 236,
> in load_en try_point
> return get_distribution(dist).load_entry_point(group, name)
> File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 2097,
> in load_e ntry_point
> return ep.load()
> File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1830,
> in load
> entry = __import__(self.module_name, globals(),globals(),
> ['__name__'])
> File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
> turbogears/_ _init__.py", line 6, in ?
> from turbogears.controllers import expose, flash, validate,
> redirect, \
> File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
> turbogears/c ontrollers.py", line 12, in ?
> from turbogears import view, database, errorhandling, config
> File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
> turbogears/v iew/__init__.py", line 1, in ?
> from turbogears.view.base import *
> File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
> turbogears/v iew/base.py", line 348, in ?
> load_engines()
> File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
> turbogears/v iew/base.py", line 332, in load_engines
> engine_options ={
> File "/usr/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/
> turbogears/c onfig.py", line 212, in get
> value = config.get(key, default_value, return_section, path)
> TypeError: get expected at most 2 arguments, got 4
>
> Thanks ;)
>
> On 9 feb, 20:24, "Mikkel Høgh" <[EMAIL PROTECTED]> wrote:
> > You seem to have conflicting versions of TurboGears installed - the
> > debian package does not install anything into /usr/local/bin/
> >
> > You should either clean out the version installed manually or remove
> > the debian package and install properly with either easy_install or
> > tgsetup.
> >
> > On Feb 9, 7:44 pm, "xnadal" <[EMAIL PROTECTED]> wrote:
> >
> > > Hi:
> >
> > > I'm installing tg in debian testing with
> > > $ aptitude install python-turbogears
> >
> > > The installation doesn't show errors, but after that when I do a
> > > $ tg-admin info
> >
> > > I get the following
> > > Traceback (most recent call last):
> > > File "/usr/local/bin/tg-admin", line 5, in ?
> > > from pkg_resources import load_entry_point
> > > File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 2482,
> > > in ?
> > > for dist in working_set.resolve(
> > > File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 483,
> > > in resolve raise DistributionNotFound(req) # XXX put more info
> > > here
> > > pkg_resources.DistributionNotFound: TurboGears==1.0.1
> >
> > > Can you help me?
> >
> > > Thanks ;)
> >
> > > --
> > > Ximo Nadal <[EMAIL PROTECTED]>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---