PyQtGraph examples under python(x,y)

362 προβολές
Παράβλεψη και μετάβαση στο πρώτο μη αναγνωσμένο μήνυμα

pb

μη αναγνωσμένη,
23 Φεβ 2015, 3:21:03 μ.μ.23/2/15
ως pyqt...@googlegroups.com
Dears,

I've just installed PyQtGraph. I have full Python(x,y) distribution 2.7.9. 

I just want to run examples of PyQtGraph as

import pyqtgraph.examples

and in IPython console I got:



import pyqtgraph.examples

---------------------------------------------------------------------------
UnsupportedOperation                      Traceback (most recent call last)
<ipython-input-1-abb779932323> in <module>()
----> 1 import pyqtgraph.examples

C:\Python27\lib\site-packages\pyqtgraph\examples\__init__.py in <module>()
----> 1 from .__main__ import run

C:\Python27\lib\site-packages\pyqtgraph\examples\__main__.py in <module>()
      7     __package__ = "examples"
      8 
----> 9 from . import initExample
     10 from pyqtgraph.Qt import QtCore, QtGui, USE_PYSIDE
     11 import pyqtgraph as pg

C:\Python27\lib\site-packages\pyqtgraph\examples\initExample.py in <module>()
     38 try:
     39     import faulthandler
---> 40     faulthandler.enable()
     41 except ImportError:
     42     pass

C:\Python27\lib\site-packages\IPython\kernel\zmq\iostream.pyc in fileno(self)
    192 
    193     def fileno(self):
--> 194         raise UnsupportedOperation("IOStream has no fileno.")
    195 
    196     def write(self, string):

UnsupportedOperation: IOStream has no fileno.


Any idea what I am missing or what's going wrong.

Thanks,
BR,
PB

Luke Campagnola

μη αναγνωσμένη,
1 Μαρ 2015, 5:26:43 μ.μ.1/3/15
ως pyqt...@googlegroups.com
Looks like some kind of bad interaction between faulthandler and ipython. Probably the ipython folks would know more. For now, you can just comment out the faulthandler import in pyqtgraph\examples\initExample.py; it is not necessary.

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/9ee726fe-8428-42b5-9835-411423e2d7e5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Απάντηση σε όλους
Απάντηση στον συντάκτη
Προώθηση
0 νέα μηνύματα