Giter Club home page Giter Club logo

Comments (7)

timbertson avatar timbertson commented on September 26, 2024

it looks a little like some other plugin might be messing with sys.stdout (unfortunaly quite a common thing with nose plugins)

can you please run this script, and paste the output here?

import nose
p = nose.plugins.DefaultPluginManager()
p.loadPlugins()
plugins = reversed(sorted(p, key=lambda pl:pl.score))
plugin_infos = [(pl.enabled, pl.score, str(pl)) for pl in plugins]
print "\n".join(map(str, plugin_infos))

from autonose.

jlmaccal avatar jlmaccal commented on September 26, 2024
(False, 2000, 'nose.plugins.xunit.Xunit object at 0x140e0d0')
(False, 1000, 'nose.plugins.multiprocess.MultiProcess object at 0x140e0b0')
(True, 1000, 'nose.plugins.skip.Skip object at 0x140e050')
(True, 1000, 'nose.plugins.deprecated.Deprecated object at 0x1405f50')
(False, 600, 'nose.plugins.failuredetail.FailureDetail object at 0x1405fd0')
(True, 500, 'nose.plugins.logcapture.LogCapture object at 0x1405eb0')
(True, 500, 'nose.plugins.capture.Capture object at 0x1405e90')
(False, 499, 'nosexml.plugin.NoseXML object at 0x1136550')
(False, 200, 'nose.plugins.cover.Coverage object at 0x1405ed0')
(False, 100, 'nose.plugins.collect.CollectOnly object at 0x140e110')
(False, 100, 'nose.plugins.allmodules.AllModules object at 0x140e0f0')
(False, 100, 'nose.plugins.testid.TestId object at 0x140e090')
(False, 100, 'nose.plugins.prof.Profile object at 0x1405ff0')
(False, 100, 'nose.plugins.doctests.Doctest object at 0x1405f70')
(False, 100, 'nose.plugins.attrib.AttributeSelector object at 0x1405dd0')
(False, 10, 'nose.plugins.isolate.IsolationPlugin object at 0x1405fb0')
(False, 5, 'nose.plugins.debug.Pdb object at 0x1405f10')

from autonose.

timbertson avatar timbertson commented on September 26, 2024

hmm, nothing suspicious there. I have reproduced the "broken pipe" error on linux with python 2.6 though - so it looks like it's a 2.6 thing rather than a mac thing. That should make it easier to debug :)

from autonose.

timbertson avatar timbertson commented on September 26, 2024

Actually, that may have been a red herring.

Tell me, what command are you using to run autonose? If you're running it explicitly with "python2.6" then you'll have the same issue as I just ran into.

Does which python give you python 2.6? If no, I suspect this could be your problem:
In autonose/ui/shared/launcher.py, there's a call to os.execlp with the first two arguments as "python". Replacing those with "python2.6" made it work on 2.6 for me. Is this the issue you're having?

Also, if that doesn't fix things, try running autonose -x--nocapture

from autonose.

jlmaccal avatar jlmaccal commented on September 26, 2024

Here are the contents:

Traceback (most recent call last):
  File "build/bdist.macosx-10.5-i386/egg/autonose/ui/shared/data.py", line 79, in _write_line
    self.stream.flush()
IOError: [Errno 32] Broken pipe

Note: this is the RUNNER pid (82353)
sys.stdout = 
sys.stderr = 
my (output) pipe = ', mode 'w' at 0x11629d0>
realstream = ', mode 'w' at 0x11629d0>
UI PID = 82365
PS output:
  PID TTY           TIME CMD
48425 ttys000    0:00.05 -bash
76735 ttys001    0:00.06 -bash
79188 ttys001   11:21.89 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python ./generate_assemblies.py
79323 ttys002    0:04.25 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python ./test_md_repack.py
81130 ttys002    3:42.56 mdrun -v -stepout 200 -s run -x run -o run -e run -g run -c current.pdb
90514 ttys002    0:00.05 -bash
32706 ttys003    0:00.14 -bash
34928 ttys004    0:00.11 -bash
44380 ttys005    0:00.02 -bash
71311 ttys006    0:00.07 -bash
82106 ttys007    0:00.03 -bash
82353 ttys007    0:01.38 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python /Users/jlmaccal/Scripts/autonose
82365 ttys007    0:00.00 (Python)

from autonose.

timbertson avatar timbertson commented on September 26, 2024

does this still happen on version 0.1.3+?

from autonose.

timbertson avatar timbertson commented on September 26, 2024

OSX UI no longer supported, closing.

from autonose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.