Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2527 (closed defect: migrated)

Opened 8 years ago

Last modified 7 years ago

Installation for the Impatient does not function properly

Reported by: basictheprogram Owned by:
Priority: normal Milestone: __unclassified__
Component: TurboGears Version: 2.1
Severity: normal Keywords: tests
Cc: mail@…

Description

This might be related to:

[TurboGears] #2509: Installation for the Impatient does not install all requirement eggs to function correctly, missing coverage http://trac.turbogears.org/ticket/2509

[TurboGears] #2510: nosetest fails http://trac.turbogears.org/ticket/2510

Mac OS X 10.6.5

$ python --version Python 2.6.1

$ virtualenv --no-site-packages -p python2.6 tg2env
$ cd tg2env/
$ source bin/activate
(tg2env)$ easy_install -i http://www.turbogears.org/2.1/downloads/current/index tg.devtools
(tg2env)$ paster quickstart example
(tg2env)$ cd example/
(tg2env)$ python setup.py develop
(tg2env)$ nosetests
Traceback (most recent call last):
  File "/Users/tanner/tmp/tg2env/bin/nosetests", line 8, in <module>
    load_entry_point('nose==0.11.4', 'console_scripts', 'nosetests')()
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/nose-0.11.4-py2.6.egg/nose/core.py", line 117, in __init__
    **extra_args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 816, in __init__
    self.parseArgs(argv)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/nose-0.11.4-py2.6.egg/nose/core.py", line 134, in parseArgs
    self.config.configure(argv, doc=self.usage())
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/nose-0.11.4-py2.6.egg/nose/config.py", line 324, in configure
    self.plugins.begin()
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/nose-0.11.4-py2.6.egg/nose/plugins/manager.py", line 93, in __call__
    return self.call(*arg, **kw)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/nose-0.11.4-py2.6.egg/nose/plugins/manager.py", line 161, in simple
    result = meth(*arg, **kw)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/Pylons-1.0-py2.6.egg/pylons/test.py", line 74, in begin
    relative_to=path)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 204, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 225, in loadobj
    return context.create()
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 625, in create
    return self.object_type.invoke(self)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 110, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/util/fixtypeerror.py", line 57, in fix_call
    val = callable(*args, **kw)
  File "/Users/tanner/tmp/tg2env/example/example/config/middleware.py", line 35, in make_app
    app = make_base_app(global_conf, full_stack=True, **app_conf)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/configuration.py", line 841, in make_base_app
    load_environment(global_conf, app_conf)
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/configuration.py", line 581, in load_environment
    setup()
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/configuration.py", line 392, in setup_genshi_renderer
    from tg.dottednames.genshi_lookup import GenshiTemplateLoader
  File "/Users/tanner/tmp/tg2env/lib/python2.6/site-packages/TurboGears2-2.1-py2.6.egg/tg/dottednames/genshi_lookup.py", line 6, in <module>
    from genshi.template import TemplateLoader
ImportError: No module named genshi.template

I do not see genshi installed?

(tg2env)tanner@frostmage:example$ pip freeze
Warning: cannot find svn location for repoze.who.plugins.sa==1.0rc2-r3742
Babel==0.9.4
Beaker==1.5.2
FormEncode==1.2.2
Mako==0.3.4
MarkupSafe==0.11
Paste==1.7.2
PasteDeploy==1.3.3
PasteScript==1.7.3
Pygments==1.1.1
Pylons==1.0
Routes==1.12.3
SQLAlchemy==0.6.5
Tempita==0.4
ToscaWidgets==0.9.10
TurboGears2==2.1
WebError==0.10.1
WebFlash==0.1a9
WebHelpers==1.2
WebOb==0.9.8
WebTest==1.2
decorator==3.0.0
example==0.1dev
nose==0.11.4
repoze.tm2==1.0a5
repoze.what==1.0.9
repoze.what-pylons==1.0
repoze.what-quickstart==1.0.8
repoze.what.plugins.sql==1.0
repoze.who==1.0.18
repoze.who-friendlyform==1.0.8
repoze.who-testutil==1.0.1
## FIXME: could not find svn URL in dependency_links for this package:
repoze.who.plugins.sa==1.0rc2-r3742
simplejson==2.0.9
sprox==0.6.10
tg.devtools==2.1
tgext.admin==0.3.10
tgext.crud==0.3.8
transaction==1.1.1
tw.forms==0.9.9
wsgiref==0.1.2
zope.interface==3.6.1
zope.sqlalchemy==0.6

Attempting a self-fix:

(tg2env)tanner@frostmage:example$ pip install genshi
Downloading/unpacking genshi
  Downloading Genshi-0.6.tar.gz (433Kb): 433Kb downloaded
<snip>
Successfully installed genshi
(tg2env)tanner@frostmage:example$ nosetests
<snip>
Ran 20 tests in 1.739s

OK

Change History

comment:1 Changed 8 years ago by nh2

I can confirm this. If you select Mako instead of Genshi, the tests fail.

comment:2 Changed 8 years ago by nh2

  • Cc mail@… added

comment:3 Changed 8 years ago by amram99

This happened to me too. I didn't select Mako explicitly so the impatient install must have that defined.

comment:4 Changed 7 years ago by pedersen

  • Status changed from new to closed
  • Resolution set to migrated
Note: See TracTickets for help on using tickets.