Dear Folks, I have got the examples working OK in Debian stretch......
Cheers. MF PS I will carry on trying to get things working in Gentoo as well. Any general tips on making 3D surface plots and using Qt4 designer with pyqtgraph effectively for a newcomer are most welcome. On Sunday, 19 November 2017 17:22:04 UTC, [email protected] wrote: > > Dear PyQtgraph folks, > > I am emailing to request a little orientation on running pyqtgraph under > gentoo. > > I posted some comments on my current efforts with this here: > > https://forums.gentoo.org/viewtopic-t-1072262.html > > I have compiled matplotlib, pyqtgraph and qtdesigner packages successfully: > > see here: > > djt /home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples # ls > > Arrow.py GradientWidget.py py2exe > BarGraphItem.py GraphicsLayout.py __pycache__ > beeswarm.py GraphicsScene.py relativity > CLIexample.py GraphItem.py > relativity_demo.py > ColorButton.py hdf5.py > RemoteGraphicsView.py > ConsoleWidget.py HistogramLUT.py > RemoteSpeedTest.py > contextMenu.py histogram.py > ROIExamples.py > crosshair.py imageAnalysis.py ROItypes.py > customGraphicsItem.py ImageItem.py ScaleBar.py > CustomGraphItem.py ImageView.py > ScatterPlot.py > customPlot.py infiniteline_performance.py > ScatterPlotSpeedTest.py > cx_freeze InfiniteLine.py > ScatterPlotSpeedTestTemplate_pyqt.py > DataSlicing.py initExample.py > ScatterPlotSpeedTestTemplate_pyside.py > DataTreeWidget.py __init__.py > ScatterPlotSpeedTestTemplate.ui > designerExample.py isocurve.py > ScatterPlotWidget.py > designerExample.ui JoystickButton.py > scrollingPlots.py > dockarea.py Legend.py SimplePlot.py > Draw.py linkedViews.py SpinBox.py > ErrorBarItem.py logAxis.py Symbols.py > exampleLoaderTemplate_pyqt5.py LogPlotTest.py > TableWidget.py > exampleLoaderTemplate_pyqt.py __main__.py template.py > exampleLoaderTemplate_pyside.py MouseSelection.py > test_examples.py > exampleLoaderTemplate.ui MultiplePlotAxes.py text.py > FillBetweenItem.py multiplePlotSpeedTest.py TreeWidget.py > FlowchartCustomNode.py MultiPlotSpeedTest.py utils.py > Flowchart.py MultiPlotWidget.py verlet_chain > GLBarGraphItem.py multiprocess.py > verlet_chain_demo.py > GLImageItem.py optics > VideoSpeedTest.py > GLIsosurface.py optics_demos.py > VideoTemplate_pyqt5.py > GLLinePlotItem.py PanningPlot.py > VideoTemplate_pyqt.py > GLMeshItem.py parallelize.py > VideoTemplate_pyside.py > GLScatterPlotItem.py parametertree.py > VideoTemplate.ui > GLshaders.py PlotAutoRange.py > ViewBoxFeatures.py > GLSurfacePlot.py PlotSpeedTest.py ViewBox.py > GLViewWidget.py Plotting.py ViewLimits.py > GLVolumeItem.py PlotWidget.py > GradientEditor.py ProgressDialog.py > > > > jt /home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples # !486 > python > /home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples/Plotting.py > Traceback (most recent call last): > File > "/home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples/Plotting.py", > line 8, in <module> > import initExample ## Add path to library (just for examples; you do > not need this) > File > "/home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples/initExample.py", > line 30, in <module> > from pyqtgraph.Qt import QtGui > File "/usr/lib64/python3.4/site-packages/pyqtgraph/__init__.py", line > 13, in <module> > from .Qt import QtGui > File "/usr/lib64/python3.4/site-packages/pyqtgraph/Qt.py", line 153, in > <module> > from PyQt5 import QtGui, QtCore, QtWidgets, uic > ImportError: cannot import name 'QtWidgets' > > So I did this: > > djt /home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples # python > Python 3.4.5 (default, Sep 17 2017, 11:21:18) > [GCC 5.4.0] on linux > Type "help", "copyright", "credits" or "license" for more information. > >>> import sys > >>> print(sys.path) > ['', '/usr/lib64/python34.zip', '/usr/lib64/python3.4', > '/usr/lib64/python3.4/plat-linux', '/usr/lib64/python3.4/lib-dynload', > '/usr/lib64/python3.4/site-packages'] > >>> import sys > >>> sys.path.insert(0, > "/home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples") > >>> import sys > >>> print(sys.path) > ['/home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples', '', > '/usr/lib64/python34.zip', '/usr/lib64/python3.4', > '/usr/lib64/python3.4/plat-linux', '/usr/lib64/python3.4/lib-dynload', > '/usr/lib64/python3.4/site-packages'] > >>> > KeyboardInterrupt > >>> print(sys.path) > ['/home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples', '', > '/usr/lib64/python34.zip', '/usr/lib64/python3.4', > '/usr/lib64/python3.4/plat-linux', '/usr/lib64/python3.4/lib-dynload', > '/usr/lib64/python3.4/site-packages'] > >>> > > > Then I closed the file with ctrl D (please correct me if I am getting it > wrong here). > > It still doesn't cure the problem. > > > djt /home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples # python > /home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples/Plotting.py > Traceback (most recent call last): > File > "/home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples/Plotting.py", > line 8, in <module> > import initExample ## Add path to library (just for examples; you do > not need this) > File > "/home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples/initExample.py", > line 30, in <module> > from pyqtgraph.Qt import QtGui > File "/usr/lib64/python3.4/site-packages/pyqtgraph/__init__.py", line > 13, in <module> > from .Qt import QtGui > File "/usr/lib64/python3.4/site-packages/pyqtgraph/Qt.py", line 153, in > <module> > from PyQt5 import QtGui, QtCore, QtWidgets, uic > ImportError: cannot import name 'QtWidgets' > djt /home/mikef/pyqtgraph-examples/pyqtgraph-develop/examples # > > A chap seemed to be doing something similar to this on his Mac notebook or > laptop device and it seemed to work: > > > https://www.youtube.com/watch?v=vSbyDoXqAJI > > Please excuse my ineptness here..... > > What am I doing wrong here? > > Cheers > > Michael Fothergill > > > > > > <https://www.youtube.com/watch?v=vSbyDoXqAJI> > > > > > > > > > > > > > > > > > > > > > > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/74902436-27be-42b8-b7d3-1c0eeee3f671%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
