Installing pyqtgraph on Raspberry PI

3,768 views
Skip to first unread message

moffa11

unread,
Nov 5, 2013, 6:49:21 AM11/5/13
to pyqt...@googlegroups.com
Hi,
 
I've tried to install pyqtgraph on a raspberry pi which runs raspbian (2013-09-10) without success.
 
When I tried to install pyqtgraph 0.9.7 it with apt-get and dkpg I experienced some compilation error which I think is linked to a python version error. Maybe that the installer wants to install a 2.6 version with a 2.7 installer but I'm not sure.
Anyway I downloaded the archive (pyqtgraph-0.9.7.tar.gz) , extracted it and ran setup.py to avoid the compilation. Then it was installed but when I try to import the package Python restarts. Is it possible to run pyqtgraph on the Raspberry at all or are there any other ways for installing?
 
 
/Christoffer

Guillaume Poulin

unread,
Nov 5, 2013, 6:59:53 AM11/5/13
to pyqt...@googlegroups.com
Hi,

First, what do you mean by compilation? There isn't anything to
compile in PyQtGraph.

Can you give more information about your system? Which OS? Which
python version? Where do you get your "debian" package from?

Also can you send the error message that you got when trying to
install PyQtGraph?

2013/11/5 moffa11 <christof...@gmail.com>:
> --
> -- [ You are subscribed to pyqt...@googlegroups.com. To unsubscribe, send
> email to pyqtgraph+...@googlegroups.com ]
> ---
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.

moffa11

unread,
Nov 5, 2013, 8:42:11 AM11/5/13
to pyqt...@googlegroups.com
Hi,


I downloaded the package from http://pyqtgraph.org I use the Raspbian Image Wheezy 2013-09-10 and I use Python 2.7.3

When I try to install PyQTGraph I get this message

pi@raspberrypi ~/New $ sudo dpkg -i python-pyqtgraph_0.9.7-1_all.deb Selecting previously unselected package python-pyqtgraph.
(Reading database ... 73333 files and directories currently installed.)
Unpacking python-pyqtgraph (from python-pyqtgraph_0.9.7-1_all.deb) ...
Setting up python-pyqtgraph (0.9.7-1) ...
Processing triggers for python-support ...
Compiling /usr/lib/pymodules/python2.6/pyqtgraph/multiprocess/parallelizer.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/pyqtgraph/multiprocess/parallelizer.py', 132, 44, '        self.progress = {ch.childPid: [] for ch in self.childs}\n'))

Compiling /usr/lib/pymodules/python2.6/pyqtgraph/multiprocess/remoteproxy.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/pyqtgraph/multiprocess/remoteproxy.py', 806, 46, '        return {k: self._getProxyOption(k) for k in self._proxyOptions}\n'))

Arun Patel

unread,
Nov 5, 2013, 9:26:13 AM11/5/13
to pyqt...@googlegroups.com
Hi,

Maybe this will help?

I tried the excellent PyQTGraph on the RPI running the latest stable raspbian for August some time ago (I don't have the versions/details to hand).

As the architecture of the RPI is not x86, I used pyqtgraph-0.9.7.tar.gz not the deb and this worked fine for my basic plotting using OpenGL features. However, the OpenGL is software not hardware accelerated on the RPI so rather slow, and I didn't have the time to try porting PyQTGraph funtions to OpenGL ES. Shame, as it would be great!

Luke Campagnola

unread,
Nov 5, 2013, 6:41:46 PM11/5/13
to pyqt...@googlegroups.com
On Tue, Nov 5, 2013 at 8:42 AM, moffa11 <christof...@gmail.com> wrote:
I downloaded the package from http://pyqtgraph.org I use the Raspbian Image Wheezy 2013-09-10 and I use Python 2.7.3

When I try to install PyQTGraph I get this message

pi@raspberrypi ~/New $ sudo dpkg -i python-pyqtgraph_0.9.7-1_all.deb Selecting previously unselected package python-pyqtgraph.
(Reading database ... 73333 files and directories currently installed.)
Unpacking python-pyqtgraph (from python-pyqtgraph_0.9.7-1_all.deb) ...
Setting up python-pyqtgraph (0.9.7-1) ...
Processing triggers for python-support ...
Compiling /usr/lib/pymodules/python2.6/pyqtgraph/multiprocess/parallelizer.py ...
SyntaxError: ('invalid syntax', ('/usr/lib/pymodules/python2.6/pyqtgraph/multiprocess/parallelizer.py', 132, 44, '        self.progress = {ch.childPid: [] for ch in self.childs}\n'))


Hello,
This error message occurs because python-support is trying to read pyqtgraph with Python 2.6. Since you are planning to use Python 2.7, you should be able to download the source file as Arun suggested and install that way. If you want to use Python 2.6, try the latest code from the github repository as it has already corrected this issue.
 
Luke

Luke Campagnola

unread,
Nov 5, 2013, 6:44:00 PM11/5/13
to pyqt...@googlegroups.com
On Tue, Nov 5, 2013 at 9:26 AM, Arun Patel <arun...@gmail.com> wrote:
As the architecture of the RPI is not x86, I used pyqtgraph-0.9.7.tar.gz not the deb and this worked fine for my basic plotting using OpenGL features. However, the OpenGL is software not hardware accelerated on the RPI so rather slow, and I didn't have the time to try porting PyQTGraph funtions to OpenGL ES. Shame, as it would be great!


Thanks, Arun!
Keep your eye on vispy.org; when this has developed sufficiently the plan is to incorporate it into pyqtgraph to allow OpenGL ES-based visualization. 

moffa11

unread,
Nov 6, 2013, 4:17:40 AM11/6/13
to pyqt...@googlegroups.com
Hi,
 
Thanks for the help!
 
The first time I imported the wrong files from pyqtgraph-0.9.7.tar.gz but this time I copied pyqtgraph-0.9.7/build/lib.linux-armv6l-2.7/pyqtgraph to my python2.7/dist-packages/ catalogue and now it works.
But it runs pretty slow even though I only use a simple plotwidget which I replot every 1/10s. It is however working better than doing the same with matplotlib.
 
/Christoffer

Arun Patel

unread,
Nov 6, 2013, 6:29:14 AM11/6/13
to pyqt...@googlegroups.com
Luke, thanks for sharing PyQTGraph and being incredibly helpful.

vispy will be something I'm really looking forward to. I imagine HD displays of "embedded PyQTGraph" as live real-time metrics targets. :-)


--
-- [ You are subscribed to pyqt...@googlegroups.com. To unsubscribe, send email to pyqtgraph+...@googlegroups.com ]
---
You received this message because you are subscribed to a topic in the Google Groups "pyqtgraph" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyqtgraph/Yk07o-xGLvo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyqtgraph+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages