OK to get around it:

1. Upgrade to: easy_install nose==dev # I think this actually
optional, but it helped me track down the error by giving a more
detailed error report
2. copy dev.cfg to test.cfg. Change the db if you want
3. Comment out all the handlers=[..] lines (it seems no handlers get
loaded and inside config, the error when trying to improt
turbogears.config is: handler suchAndSuch doesn't exist.

Regards
Matthew Sherborne
Flexinet Systems Ltd.

On Dec 18 2007, 6:27 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi, there
>
> I need some help to solve a problem with nose. There is this
> TurboGears project which was fronzen for a while. When it was full
> active,
> every tests used to run ok, but now, something I couldn't figure out
> happend and I get this message when I try to runnosetests:
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.5/site-packages/nose-0.9.3-py2.5.egg/nose/
> suite.py", line 51, in run
>     self.setUp()
>   File "/usr/lib/python2.5/site-packages/nose-0.9.3-py2.5.egg/nose/
> suite.py", line 200, in setUp
>     self.module = _import(self.moduleName, [self.path], self.conf)
>   File "/usr/lib/python2.5/site-packages/nose-0.9.3-py2.5.egg/nose/
> importer.py", line 101, in _import
>     mod = load_module(fqname, fh, filename, desc)
>   File "/home/andref/projetos/republicaos/republicaos/tests/
> test_model/
> test_republica.py", line 4, in <module>
>     from republicaos.model.businessimport*
>   File "/home/andref/projetos/republicaos/republicaos/model/
> __init__.py", line 1, in <module>
>     from businessimport*
>   File "/home/andref/projetos/republicaos/republicaos/model/
> business.py", line 12, in <module>
>     from pronus_utilsimportfloat_equal, pretty_decimal
>   File "/home/andref/projetos/republicaos/pronus_utils.py", line 4, in
> <module>
>     from turbogearsimportvalidators
>   File "/usr/lib/python2.5/site-packages/TurboGears-1.0.4b3-py2.5.egg/
> turbogears/__init__.py", line 5, in <module>
>     from turbogearsimportconfig
> ImportError: cannotimportname config
>
> This problem doesn't happen when application is normally launched via
> start-republicaos.py and the correct version of TurboGears is in
> PYTHONPATH.
>
> I already tried to use an earlier version of nose, to register the
> application with 'python setup.py develop' etc. Nothing worked.
>
> Any suggestions will be greatly appreciated!
>
> Thanks,
>
> André

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to