That has nothing to do with nose, it seems your environment is broken.
Try to clear the virtualenv and reinstall everything, I just tried with the
following steps:

 1657  virtualenv --no-site-packages cle
 1659  . cle/bin/activate
 1660  pip install tg.devtools
 1662  gearbox quickstart prova
 1663  cd prova
 1665  pip install -e .
 1668  pip install nose
 1669  nosetests -v
 1670  history

And the result seems to work correctly:

(cle)amol@LPulsar:/tmp/prova$ nosetests -v
Anonymous users are forced to login ... ok
Logouts must work correctly ... ok
Voluntary logins must work correctly ... ok
The data display demo works with HTML ... ok
The data display demo works with JSON ... ok
Displaying the wsgi environ works ... ok
The front page is working properly ... ok
Anonymous users must not access the secure controller ... ok
The editor cannot access the secure controller ... ok
The manager can access the secure controller ... ok
Model objects can be created ... ok
Model objects can be queried ... ok
Model objects can be created ... ok
Model objects can be queried ... ok
Model objects can be created ... ok
Users should be fetcheable by their email addresses ... ok
User objects should have no permission by default. ... ok
The obj constructor must set the email right ... ok
The obj constructor must set the user name right ... ok
Model objects can be queried ... ok

----------------------------------------------------------------------
Ran 20 tests in 0.885s

OK


On Tue, Oct 28, 2014 at 9:33 PM, Juparave <[email protected]> wrote:

> From a newly created environment, a new project can't run nosetests
>
> ...
> Using
> /Users/pablito/workspace/python/tg2.3.4env/lib/python2.7/site-packages
> Searching for Beaker==1.6.4
> Best match: Beaker 1.6.4
> Adding Beaker 1.6.4 to easy-install.pth file
>
> Using
> /Users/pablito/workspace/python/tg2.3.4env/lib/python2.7/site-packages
> Searching for crank==0.7.1
> Best match: crank 0.7.1
> Adding crank 0.7.1 to easy-install.pth file
>
> Using
> /Users/pablito/workspace/python/tg2.3.4env/lib/python2.7/site-packages
> Searching for PasteDeploy==1.5.2
> Best match: PasteDeploy 1.5.2
> Adding PasteDeploy 1.5.2 to easy-install.pth file
>
> Using
> /Users/pablito/workspace/python/tg2.3.4env/lib/python2.7/site-packages
> Finished processing dependencies for example2.3.4==0.1dev
> (*tg2.3.4env)Mac-Mini-20013:example2.3.4 pablito$* *nosetests*
> EEE
> ======================================================================
> ERROR: Failure: ImportError (No module named sqlalchemy)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/loader.py",
> line 414, in loadTestsFromName
>     addr.filename, addr.module)
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/importer.py",
> line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/importer.py",
> line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File
> "/Users/pablito/workspace/python/example2.3.4/example234/model/__init__.py",
> line 4, in <module>
>     from zope.sqlalchemy import ZopeTransactionExtension
> ImportError: No module named sqlalchemy
>
> ======================================================================
> ERROR: Failure: ImportError (No module named tg.configuration)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/loader.py",
> line 414, in loadTestsFromName
>     addr.filename, addr.module)
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/importer.py",
> line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/importer.py",
> line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File
> "/Users/pablito/workspace/python/example2.3.4/example234/websetup/__init__.py",
> line 6, in <module>
>     from example234.config.environment import load_environment
>   File
> "/Users/pablito/workspace/python/example2.3.4/example234/config/environment.py",
> line 4, in <module>
>     from example234.config.app_cfg import base_config
>   File
> "/Users/pablito/workspace/python/example2.3.4/example234/config/app_cfg.py",
> line 9, in <module>
>     from tg.configuration import AppConfig
> ImportError: No module named tg.configuration
>
> ======================================================================
> ERROR: Failure: ImportError (No module named paste.deploy)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/loader.py",
> line 414, in loadTestsFromName
>     addr.filename, addr.module)
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/importer.py",
> line 47, in importFromPath
>     return self.importFromDir(dir_path, fqname)
>   File
> "/Library/Python/2.7/site-packages/nose-1.3.4-py2.7.egg/nose/importer.py",
> line 94, in importFromDir
>     mod = load_module(part_fqname, fh, filename, desc)
>   File
> "/Users/pablito/workspace/python/example2.3.4/example234/tests/__init__.py",
> line 6, in <module>
>     from paste.deploy import loadapp
> ImportError: No module named paste.deploy
>
> ----------------------------------------------------------------------
> Ran 3 tests in 0.020s
>
> FAILED (errors=3)
> *(tg2.3.4env)Mac-Mini-20013:example2.3.4 pablito$*
>
> I tried removing zope.sqlalchemy and reinstalling it with 'pip' in case of
> the namespace issue with easy_install with no luck.
>
> Should I switch to py.test?
>
> Cheers
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/turbogears.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to