Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19128
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!feeder2.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andrea.crotti.0@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '"""': 0.07; 'attribute': 0.07; 'wrapper': 0.07; 'conf': 0.09; 'disable': 0.09; 'similar?': 0.09; 'skip:" 60': 0.09; 'error:': 0.10; 'def': 0.13; 'received:74.125.82.44': 0.15; 'received:mail-ww0-f44.google.com': 0.15; 'this:': 0.15; '"""run': 0.16; '39,': 0.16; 'egg': 0.16; 'filename,': 0.16; 'it..': 0.16; 'subject:auto': 0.16; 'subject:import': 0.16; 'linux': 0.17; '(most': 0.21; 'header:In- Reply-To:1': 0.22; 'traceback': 0.24; 'loaded': 0.25; 'tests': 0.25; 'windows': 0.26; 'import': 0.27; 'problem': 0.29; 'quite': 0.31; 'skip:- 70': 0.31; "i've": 0.31; 'anyone': 0.31; 'actually': 0.32; 'thanks': 0.32; 'message-id:@gmail.com': 0.33; 'header:User- Agent:1': 0.33; 'instead': 0.33; 'to:addr:python-list': 0.33; 'object': 0.33; 'last):': 0.34; 'received:74.125.82': 0.34; 'something': 0.35; 'file': 0.35; 'but': 0.37; 'received:74.125': 0.37; 'received:google.com': 0.37; 'using': 0.37; 'should': 0.38; 'correctly': 0.38; 'doing': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'ever': 0.64; 'saw': 0.66; 'failure:': 0.84; 'plugins': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=tK0tgD9nIyoqDRWT0CVFzakqezJKfW0tnyp7JnjUB9U=; b=tqCD6AjtmlSuKc2zuW7Y2e63dux2BjR9K56h1e+KRYw1MVld5iyp1wmTbJafBGll4E 40OpgLrLFsiDIeY9GT0Qy+LT4xitjtGnCOd0fGYI2NJ/WODiPuj7td2n8YhqBBVGGQBf aDLE+Tj4kxU/1DloO7ifYeXoRhXQWIDQQ/tg8= |
| Date | Thu, 19 Jan 2012 13:32:18 +0000 |
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: multiversion flag and auto requiring import hook |
| References | <4F1816B6.4060708@gmail.com> |
| In-Reply-To | <4F1816B6.4060708@gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4863.1326979962.27778.python-list@python.org> (permalink) |
| Lines | 55 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1326979962 news.xs4all.nl 6913 [2001:888:2000:d::a6]:46677 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:19128 |
Show key headers only | View raw
...
Actually the main problem which I've been banging my head quite a few
days alreays is this:
--8<---------------cut here---------------start------------->8---
ERROR: Failure: AttributeError ('module' object has no attribute 'walk')
----------------------------------------------------------------------
Traceback (most recent call last):
File
"c:\python25\lib\site-packages\nose-0.10.3n1-py2.5-win32.egg\nose\loader.
py", line 364, in loadTestsFromName
addr.filename, addr.module)
File
"c:\python25\lib\site-packages\nose-0.10.3n1-py2.5-win32.egg\nose\importe
r.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File
"c:\python25\lib\site-packages\nose-0.10.3n1-py2.5-win32.egg\nose\importe
r.py", line 85, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "h:\git_projs\Psi\psi.devsonly\psi\devsonly\test\test_walk.py",
line 3, i
n <module>
import psi.devsonly.walk as w
AttributeError: 'module' object has no attribute 'walk'
--8<---------------cut here---------------end--------------->8---
On Windows using nosetests works perfectly, but using a very simple
wrapper of nose as the following:
--8<---------------cut here---------------start------------->8---
def egg_runner(self, eggpath):
"""Run all the tests in the given egg
"""
conf = Config()
conf.verbosity = 3
ep = EclipseFriendlyPlugin()
# how do I make sure the plugin is actually loaded and doing
something?
plugins = [ep]
# and with this the verbosity should be set correctly
# should use addplugins instead if they are not "default" plugins
TestProgram(argv=argv[:1], config=conf, defaultTest=eggpath,
plugins=plugins)
--8<---------------cut here---------------end--------------->8---
Gives the above output, while on Linux they both work perfectly.
I thought this was related to the AutoRequire hook, but I get the same
problem even if I disable it..
Anyone ever saw something similar?
Thanks
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: multiversion flag and auto requiring import hook Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-19 13:32 +0000
csiph-web