Your message dated Sun, 23 May 2010 11:06:52 +0100
with message-id <[email protected]>
and subject line 
has caused the Debian Bug report #547685,
regarding python-turbogears: Invoking 'nosetests' inside a freshly created 
(tg-admin quickstart) fails.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
547685: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547685
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-turbogears
Version: 1.0.4.4-1
Severity: normal

When setting up a new project with 'tg-admin quickstart' a few tests
should be set up automatically, which can be run from the project
directory with the 'nosetests' command. These should run without error.

After a first time installation of turbogears on my system (Lenny,
continuously upgraded since Woody) these tests are failing when executed
inside a vanilla project created with quickstart.

======================================================================
ERROR: Failure: ImportError (No module named config)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/nose/loader.py", line 364, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/var/lib/python-support/python2.5/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/var/lib/python-support/python2.5/nose/importer.py", line 84, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/jochen/tg/hello/hello/tests/test_controllers.py", line 3, in 
<module>
    from turbogears import testutil
  File "/var/lib/python-support/python2.5/turbogears/testutil.py", line 46, in 
<module>
    modulename=modulename)
  File "/var/lib/python-support/python2.5/turbogears/config.py", line 206, in 
update_config
    configdict = config_obj(configfile, modulename).dict()
  File "/var/lib/python-support/python2.5/turbogears/config.py", line 169, in 
config_obj
    modname + ".cfg")
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 840, in 
resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 160, in 
get_provider
    __import__(moduleOrReq)
ImportError: No module named config

======================================================================
ERROR: Failure: ImportError (No module named config)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/nose/loader.py", line 364, in 
loadTestsFromName
    addr.filename, addr.module)
  File "/var/lib/python-support/python2.5/nose/importer.py", line 39, in 
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/var/lib/python-support/python2.5/nose/importer.py", line 84, in 
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/jochen/tg/hello/hello/tests/test_model.py", line 7, in <module>
    from turbogears import testutil, database
  File "/var/lib/python-support/python2.5/turbogears/testutil.py", line 46, in 
<module>
    modulename=modulename)
  File "/var/lib/python-support/python2.5/turbogears/config.py", line 206, in 
update_config
    configdict = config_obj(configfile, modulename).dict()
  File "/var/lib/python-support/python2.5/turbogears/config.py", line 169, in 
config_obj
    modname + ".cfg")
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 840, in 
resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 160, in 
get_provider
    __import__(moduleOrReq)
ImportError: No module named config

----------------------------------------------------------------------
Ran 2 tests in 0.018s

FAILED (errors=2)

===========================

I found a discussion regarding this problem and it might be that other
python modules are the problem. That person installed turbogears locally
into the users home directory as a fix. Last message of the discussion
thread is at:

http://www.mail-archive.com/[email protected]/msg35552.html

The bug isn't critical since Turbogears as such seems to be working. But
I don't know yet how far the whole testing functionality is affected.

thnx

-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-recluse-20090917
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-turbogears depends on:
ii  python                2.5.2-3            An interactive high-level object-o
ii  python-cheetah        2.0.1-2            text-based template engine and Pyt
ii  python-cherrypy       2.3.0-1            Python web development framework
ii  python-configobj      4.5.2-1            a simple but powerful config file 
ii  python-decoratortools 1.7-1              version-agnostic decorators suppor
ii  python-dispatch       0.5a.svn20080510-1 Rule-based Dispatching and Generic
ii  python-formencode     1.0.1-1            validation and form generation Pyt
ii  python-kid            0.9.6-1            simple Pythonic template language 
ii  python-nose           0.10.3-1           test discovery and running for Pyt
ii  python-paste          1.7.1-1            Tools for using a Web Server Gatew
ii  python-pastedeploy    1.3.2-1            Load, configure, and compose WSGI 
ii  python-pastescript    1.6.3-1            serving web applications, creating
ii  python-pkg-resources  0.6c8-4            Package Discovery and Resource Acc
ii  python-simplejson     1.9.2-1            Simple, fast, extensible JSON enco
ii  python-sqlalchemy     0.4.7p1-2          SQL toolkit and Object Relational 
ii  python-sqlobject      0.10.2-3           Python module for SQLObject
ii  python-support        0.8.4lenny1        automated rebuilding support for P
ii  python-turbojson      1.1.2-1            TurboGears template plugin that su
ii  python-turbokid       1.0.4-2            TurboGears template plugin that su

Versions of packages python-turbogears recommends:
ii  python-elixir                 0.6.0-1    Declarative Mapper for SQLAlchemy
ii  python-pysqlite2              2.4.1-1    Python interface to SQLite 3

Versions of packages python-turbogears suggests:
pn  python-genshi                 <none>     (no description available)

-- no debconf information



--- End Message ---
--- Begin Message ---
The bugs has been fixed by the upstream. The current version in Debian
Testing and Unstable is 1.1.1-1 and it's not affected.

-- 
Federico

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to