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 #2510 (closed defect: worksforme)

Opened 9 years ago

Last modified 9 years ago

nosetest fails

Reported by: basictheprogram Owned by:
Priority: normal Milestone: 2.1rc1
Component: TurboGears Version: 2.1rc1
Severity: normal Keywords: tests
Cc:

Description

Followed instructions "Installation for the Impatient"

$ 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
Failure: TypeError (No object (name: request) has been registered for this thread) ... ERROR

======================================================================
ERROR: Failure: TypeError (No object (name: request) has been registered for this thread)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/tanner/projects/real-time/tg2env/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/loader.py", line 379, in loadTestsFromName
    addr.filename, addr.module)
  File "/Users/tanner/projects/real-time/tg2env/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/importer.py", line 39, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/Users/tanner/projects/real-time/tg2env/lib/python2.6/site-packages/nose-0.11.1-py2.6.egg/nose/importer.py", line 86, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/Users/tanner/projects/real-time/tg2env/example/example/controllers/root.py", line 19, in <module>
    class RootController(BaseController):
  File "/Users/tanner/projects/real-time/tg2env/example/example/controllers/root.py", line 78, in RootController
    def login(self, came_from=url('/')):
  File "/Users/tanner/projects/real-time/tg2env/lib/python2.6/site-packages/TurboGears2-2.1b2-py2.6.egg/tg/controllers/util.py", line 90, in url
    base_url = pylons.request.environ['SCRIPT_NAME'] + base_url
  File "/Users/tanner/projects/real-time/tg2env/lib/python2.6/site-packages/Paste-1.7.2-py2.6.egg/paste/registry.py", line 137, in __getattr__
    return getattr(self._current_obj(), attr)
  File "/Users/tanner/projects/real-time/tg2env/lib/python2.6/site-packages/Paste-1.7.2-py2.6.egg/paste/registry.py", line 194, in _current_obj
    'thread' % self.____name__)
TypeError: No object (name: request) has been registered for this thread
-------------------- >> begin captured logging << --------------------
pylons.configuration: DEBUG: Initializing configuration, package: 'example'
pylons.configuration: DEBUG: Pushing process configuration
pylons.configuration: DEBUG: Adding mako engine with alias None and {'myghty.data_dir': '/Users/tanner/projects/real-time/tg2env/example/data/templates', 'mako.directories': ['/Users/tanner/projects/real-time/tg2env/example/example/templates'], 'myghty.component_root': [{'templates': '/Users/tanner/projects/real-time/tg2env/example/example/templates'}], 'kid.encoding': 'utf-8', 'kid.assume_encoding': 'utf-8', 'mako.module_directory': '/Users/tanner/projects/real-time/tg2env/example/data/templates', 'myghty.allow_globals': ['c', 'config', 'g', 'h', 'render', 'request', 'session', 'translator', 'ungettext', '_', 'N_'], 'myghty.output_encoding': 'utf-8', 'myghty.raise_error': True, 'mako.output_encoding': 'utf-8', 'mako.filesystem_checks': True} options
pylons.configuration: DEBUG: Loaded mako template engine as the default template renderer
pylons.templating: DEBUG: Initialized Buffet object
pylons.templating: DEBUG: Adding mako template language for use with Buffet
routes.middleware: DEBUG: Initialized with method overriding = True, and path info altering = True
tw.core.resources: DEBUG: Registered static at /tw.forms/static
tw.core.resources: DEBUG: Registered static/calendar at /tw.forms/static/calendar
--------------------- >> end captured logging << ---------------------

Name                                      Stmts   Miss  Cover   Missing
-----------------------------------------------------------------------
anydbm                                       27     27     0%   45-83
beaker                                        0      0   100%   
beaker.cache                                170    170     0%   11-459
beaker.container                            388    388     0%   2-633
beaker.converters                            20     20     0%   3-26
beaker.crypto                                24     24     0%   2-39
beaker.crypto.pbkdf2                        156    156     0%   67-340
beaker.crypto.util                           15     15     0%   1-30
beaker.exceptions                            11     11     0%   3-24
beaker.ext                                    0      0   100%   
beaker.ext.database                          99     99     0%   1-165
beaker.ext.google                            84     84     0%   1-121
beaker.ext.memcached                         58     58     0%   1-82
beaker.ext.sqla                              83     83     0%   1-129
beaker.middleware                            74     74     0%   1-165
beaker.session                              362    362     0%   1-618
beaker.synchronization                      232    232     0%   9-381
beaker.util                                 174    174     0%   3-302
commands                                     32     32     0%   22-90
dumbdbm                                     119    119     0%   24-250
email                                        30     30     0%   5-123
email._parseaddr                            298    298     0%   4-480
email.base64mime                             55     55     0%   5-183
email.base64mime                             55     55     0%   5-183
email.charset                               110    110     0%   5-391
email.charset                               110    110     0%   5-391
email.encoders                               40     40     0%   5-87
email.encoders                               40     40     0%   5-87
email.errors                                 16     16     0%   5-56
email.errors                                 16     16     0%   5-56
email.feedparser                            304    304     0%   5-480
email.generator                             157    157     0%   5-348
email.header                                228    228     0%   5-503
email.iterators                              32     32     0%   5-73
email.iterators                              32     32     0%   5-73
email.message                               344    344     0%   5-790
email.message                               344    344     0%   5-790
email.mime                                    0      0   100%   
email.mime.audio                             24     24     0%   5-73
email.mime.base                               9      9     0%   5-26
email.mime.base                               9      9     0%   5-26
email.mime.image                             14     14     0%   5-46
email.mime.message                           11     11     0%   5-34
email.mime.multipart                         12     12     0%   5-47
email.mime.multipart                         12     12     0%   5-47
email.mime.nonmultipart                       9      9     0%   5-26
email.mime.nonmultipart                       9      9     0%   5-26
email.mime.text                               8      8     0%   5-30
email.mime.text                               8      8     0%   5-30
email.parser                                 44     44     0%   5-91
email.quoprimime                            138    138     0%   5-336
email.quoprimime                            138    138     0%   5-336
email.utils                                 158    158     0%   5-322
email.utils                                 158    158     0%   5-322
encodings.utf_8                              15     15     0%   9-34
example                                       1      0   100%   
example.config                                0      0   100%   
example.config.app_cfg                       24      0   100%   
example.config.environment                    4      0   100%   
example.config.middleware                     8      0   100%   
example.controllers                           1      0   100%   
example.controllers.error                     9      4    56%   24-30
example.controllers.secure                   13      3    77%   25-26, 31
example.controllers.template                  7      1    86%   36
example.lib                                   0      0   100%   
example.lib.app_globals                       5      0   100%   
example.lib.base                             13      3    77%   30-32
example.lib.helpers                           2      0   100%   
example.model                                11      0   100%   
example.model.auth                           77     30    61%   17-18, 83, 86, 123, 127, 134-137, 142, 147, 152-163, 167, 186-190, 219, 222
example.templates                             1      0   100%   
example.websetup                             11      3    73%   17-19
example.websetup.bootstrap                   38     32    16%   15-54
example.websetup.schema                       9      4    56%   13-21
ez_setup                                    104     92    12%   53-62, 80-104, 117-151, 156-190, 197-222, 226-229
genshi.builder                               91     91     0%   14-359
genshi.filters                                5      5     0%   14-20
genshi.filters.html                         195    195     0%   14-397
genshi.filters.i18n                         259    259     0%   14-554
genshi.filters.transform                    441    441     0%   14-1309
httplib                                     680    680     0%   69-1291
json                                         37     37     0%   100-318
json.decoder                                203    203     0%   4-339
json.encoder                                215    215     0%   4-384
json.scanner                                 51     51     0%   5-69
paste.auth                                    1      1     0%   3
paste.auth.auth_tkt                         140    140     0%   26-351
paste.cascade                                81     81     0%   4-133
paste.errordocument                         150    150     0%   4-372
paste.fileapp                               215    215     0%   6-348
paste.httpheaders                           403    403     0%   7-1097
paste.recursive                             170    170     0%   3-401
paste.urlparser                             345    345     0%   3-647
paste.util.converters                        20     20     0%   3-26
paste.util.mimeparse                         73     73     0%   18-178
pygments                                     29     29     0%   2-90
pygments.console                             42     42     0%   2-74
pygments.filter                              24     24     0%   2-74
pygments.filters                            129    129     0%   2-286
pygments.formatter                           27     27     0%   2-92
pygments.formatters                          43     43     0%   2-68
pygments.formatters._mapping                 47     47     0%   2-92
pygments.formatters.bbcode                   56     56     0%   2-109
pygments.formatters.html                    284    284     0%   2-705
pygments.formatters.img                     217    217     0%   2-517
pygments.formatters.latex                   109    109     0%   2-298
pygments.formatters.other                    68     68     0%   2-117
pygments.formatters.rtf                      65     65     0%   2-136
pygments.formatters.svg                      70     70     0%   2-154
pygments.formatters.terminal                 35     35     0%   2-109
pygments.formatters.terminal256             132    132     0%   2-219
pygments.lexer                              358    358     0%   2-654
pygments.lexers                             136    136     0%   2-231
pygments.lexers._mapping                     27     27     0%   2-218
pygments.lexers.agile                       272    272     0%   2-1422
pygments.lexers.functional                  171    171     0%   2-759
pygments.lexers.special                      57     57     0%   2-100
pygments.plugin                              29     29     0%   2-74
pygments.style                               75     75     0%   2-117
pygments.styles                              27     27     0%   2-67
pygments.styles.default                       7      7     0%   2-25
pygments.token                               60     60     0%   2-122
pygments.unistring                           68     68     0%   2-130
pygments.util                               113    113     0%   2-222
pylons.error                                 24     24     0%   7-44
pylons.middleware                            75     75     0%   2-234
pylons.wsgiapp                              167    167     0%   9-341
quopri                                      162    162     0%   3-237
repoze.tm                                    80     80     0%   2-103
repoze.what.adapters                        120    120     0%   18-631
repoze.what.middleware                       53     53     0%   18-218
repoze.what.plugins.pylonshq                  4      4     0%   16-31
repoze.what.plugins.pylonshq.protectors      53     53     0%   16-188
repoze.what.plugins.pylonshq.utils           12     12     0%   16-85
repoze.what.plugins.quickstart               84     84     0%   18-308
repoze.what.plugins.quickstart.config        84     84     0%   15-218
repoze.what.plugins.sql                       3      3     0%   16-22
repoze.what.plugins.sql.adapters            124    124     0%   16-452
repoze.what.predicates                      146    146     0%   18-655
repoze.who.classifiers                       37     37     0%   1-71
repoze.who.config                           104    104     0%   3-152
repoze.who.interfaces                        17     17     0%   1-190
repoze.who.middleware                       255    255     0%   1-459
repoze.who.plugins.auth_tkt                 129    129     0%   1-221
repoze.who.plugins.friendlyform             120    120     0%   16-297
repoze.who.plugins.sa                        61     61     0%   16-303
repoze.who.utils                              3      3     0%   1-5
routes.base                                   3      3     0%   2-4
routes.middleware                            91     91     0%   2-145
smtplib                                     371    371     0%   3-827
sprox                                         0      0   100%   
sprox.configbase                             78     78     0%   1-140
sprox.dojo                                    0      0   100%   
sprox.dummyentity                             1      1     0%   1
sprox.fillerbase                            104    104     0%   11-265
sprox.formbase                              152    152     0%   10-502
sprox.iprovider                              33     33     0%   12-95
sprox.metadata                               52     52     0%   12-93
sprox.providerselector                       73     73     0%   10-135
sprox.saormprovider                         337    337     0%   21-450
sprox.tablebase                              45     45     0%   1-252
sprox.validators                             11     11     0%   8-22
sprox.validatorselector                      52     52     0%   24-107
sprox.viewbase                              126    126     0%   1-199
sprox.widgets                                 1      1     0%   1
sprox.widgets.widgets                        90     90     0%   1-113
sprox.widgetselector                         48     48     0%   24-104
sqlalchemy.ext                                0      0   100%   
sqlalchemy.ext.declarative                  183    183     0%   409-767
sqlalchemy.orm                               79     79     0%   7-969
sqlalchemy.orm.attributes                   852    852     0%   6-1660
sqlalchemy.orm.collections                  636    636     0%   99-1419
sqlalchemy.orm.dependency                   330    330     0%   7-557
sqlalchemy.orm.evaluator                     77     77     0%   1-98
sqlalchemy.orm.exc                           48     48     0%   7-98
sqlalchemy.orm.identity                     160    160     0%   7-223
sqlalchemy.orm.interfaces                   332    332     0%   7-977
sqlalchemy.orm.mapper                      1018   1018     0%   7-1883
sqlalchemy.orm.properties                   695    695     0%   7-1201
sqlalchemy.orm.query                       1039   1039     0%   7-2229
sqlalchemy.orm.scoping                      119    119     0%   7-208
sqlalchemy.orm.session                      665    665     0%   7-1610
sqlalchemy.orm.state                        253    253     0%   1-455
sqlalchemy.orm.strategies                   481    481     0%   7-860
sqlalchemy.orm.sync                          50     50     0%   7-73
sqlalchemy.orm.unitofwork                   390    390     0%   7-789
sqlalchemy.orm.util                         336    336     0%   7-638
tarfile                                    1446   1446     0%   30-2531
tg                                           10     10     0%   55-69
tg.configuration                            312    312     0%   2-890
tg.controllers                                7      7     0%   1-9
tg.controllers.decoratedcontroller          178    178     0%   2-400
tg.controllers.dispatcher                   258    258     0%   18-508
tg.controllers.restcontroller               173    173     0%   7-239
tg.controllers.tgcontroller                   3      3     0%   4-7
tg.controllers.util                          68     68     0%   2-140
tg.controllers.wsgiappcontroller             24     24     0%   2-50
tg.decorators                               237    237     0%   2-627
tg.dottednames                                0      0   100%   
tg.dottednames.genshi_lookup                  9      9     0%   3-27
tg.error                                     18     18     0%   1-103
tg.exceptions                                 1      1     0%   5
tg.flash                                     19     19     0%   4-45
tg.i18n                                      41     41     0%   1-84
tg.jsonify                                   54     54     0%   3-78
tg.paginate                                  19     19     0%   1-50
tg.release                                    8      8     0%   2-31
tg.render                                    66     66     0%   1-201
tg.util                                     133    133     0%   2-238
tg.wsgiapp                                   25     25     0%   1-45
tgext.admin                                   2      2     0%   1-2
tgext.admin.config                           98     98     0%   1-134
tgext.admin.controller                       67     67     0%   2-89
tgext.admin.tgadminconfig                   172    172     0%   1-221
tgext.crud                                    1      1     0%   1
tgext.crud.controller                        96     96     0%   3-191
tgext.crud.decorators                        42     42     0%   3-98
transaction                                  12     12     0%   14-30
transaction._manager                         77     77     0%   14-155
transaction._transaction                    329    329     0%   14-679
transaction.interfaces                       55     55     0%   14-487
transaction.weakset                          19     19     0%   15-81
tw.api                                        1      1     0%   1
tw.forms                                     10     10     0%   8-20
tw.forms.calendars                           45     45     0%   1-91
tw.forms.core                               267    267     0%   1-478
tw.forms.datagrid                            86     86     0%   7-158
tw.forms.fields                             336    336     0%   1-688
tw.forms.validators                          99     99     0%   1-152
tw.mods.wsgi                                  3      3     0%   1-6
urllib2                                     760    760     0%   90-1368
uu                                          113    113     0%   27-186
weberror                                      0      0   100%   
weberror.collector                          209    209     0%   18-541
weberror.errormiddleware                    238    238     0%   4-490
weberror.evalcontext                         41     41     0%   1-66
weberror.evalexception                      441    441     0%   25-807
weberror.formatter                          479    479     0%   4-677
weberror.reporter                            99     99     0%   4-139
weberror.util                                 0      0   100%   
weberror.util.escaping                       93     93     0%   9-232
weberror.util.serial_number_generator        47     47     0%   4-122
weberror.util.source_encoding                27     27     0%   2-52
webflash                                     86     86     0%   1-214
webhelpers.date                              83     83     0%   3-204
webhelpers.feedgenerator                    163    163     0%   31-317
webhelpers.misc                              31     31     0%   4-128
webhelpers.number                            88     88     0%   3-345
webhelpers.paginate                         147    147     0%   94-710
webhelpers.text                              95     95     0%   6-225
webtest                                     734    734     0%   3-1389
webtest.lint                                181    181     0%   5-436
zipfile                                     851    851     0%   4-1385
zope.interface                               18     18     0%   14-80
zope.interface.advice                        68     68     0%   14-191
zope.interface.declarations                 294    294     0%   12-1385
zope.interface.exceptions                    21     21     0%   14-64
zope.interface.interface                    355    355     0%   14-811
zope.interface.interfaces                    70     70     0%   14-737
zope.interface.ro                            25     25     0%   14-71
zope.interface.verify                        47     47     0%   14-112
zope.sqlalchemy                               3      3     0%   15-18
zope.sqlalchemy.datamanager                 125    125     0%   15-235
-----------------------------------------------------------------------
TOTAL                                     34291  34125     1%   
----------------------------------------------------------------------
Ran 1 test in 0.224s

FAILED (errors=1)

Change History

comment:1 Changed 9 years ago by chrisz

  • Keywords tests added
  • Milestone changed from __unclassified__ to 2.1

This could be the same as #2515.

comment:2 Changed 9 years ago by percious

  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from 2.1 to 2.1rc1
Note: See TracTickets for help on using tickets.