These are chat archives for jacobsenmd/opengcs

6th
Nov 2015
Tim
@qfather
Nov 06 2015 01:02
I can't run your latest code btw
python2.7: siplib.c:11993: sipEnumType_alloc: Assertion `(((currentType)->td_flags & 0x0007) == 0x0003)' failed.
Mark Jacobsen
@jacobsenmd
Nov 06 2015 01:03
Hmm. Do you have a traceback for where it’s failing?
Tim
@qfather
Nov 06 2015 01:03
it doesn't find the module pyqtgraph
although I installed it, but probably not correctly
Mark Jacobsen
@jacobsenmd
Nov 06 2015 01:03
OK, that’s a new dependency… have you installed it?
Tim
@qfather
Nov 06 2015 01:04
I got it from here http://www.pyqtgraph.org/
Mark Jacobsen
@jacobsenmd
Nov 06 2015 01:05
OK, I know Scott had a little trouble as well. If you need a temp fix, delete the plot widget from your local fork and it should work
Tim
@qfather
Nov 06 2015 01:10
Did he fix it or just removed the widget?
Scott Slaughter
@sslaughter
Nov 06 2015 01:13
Installing that visual c compiler from that link above fixed the install and everything worked.
Mark Jacobsen
@jacobsenmd
Nov 06 2015 01:13
You can scroll up in this thread to see his issue, but it’s windows specific.
pyqtgraph is an amazing library, but if it doesn’t play well on Windows or Linux, it’d to be good to identify that now
Tim
@qfather
Nov 06 2015 01:14
I'll have a gander
Scott Slaughter
@sslaughter
Nov 06 2015 01:16
I used pip install into my anaconda environment btw, i didnt download from the website. It initially wouldnt let me install at all though.
Mark Jacobsen
@jacobsenmd
Nov 06 2015 01:19
ok, good to know. If you get it working, please try to document the steps. I think I installed pyqtgraph from the website on Mac OS and it worked fine. I’ve used pip for various other Anaconda packages.
We can fallback to matplotlib if necessary, but pyqtgraph is much nicer
Tim
@qfather
Nov 06 2015 01:39
I find the installation documentation severely lacking
tried the deb, tried pip and tried compiling from source
none of them work
Mark Jacobsen
@jacobsenmd
Nov 06 2015 03:00
@qfather For what it’s worth, I just tried running opengcs on Ubuntu. “pip install pyqtgraph” worked fine and I didn’t have the error you did (although there are some other issues—the menu is screwed up, and the “Add Widgets” dialog isn’t finding any widgets)
So perhaps it’s something related to your Linux distro. Check to ensure you have the latest ‘sip’ package, as pyqtgraph uses that
I have sip 4.16.5 installed
Tim
@qfather
Nov 06 2015 08:33
I have SIP 4.16.6 installed
and the layout is broken like you said. Is that not the case on your Mac?
Tim
@qfather
Nov 06 2015 10:28
what a royal pain in the neck
does anyone know how to compile a specific module? I seem to be missing QtSvg even though the compiler says it's going to build it
Tim
@qfather
Nov 06 2015 11:10
Finally! I had to install libqt5svg5 manually before QtSvg could be created
Then I had to recompile PyQt and now it works
Mark Jacobsen
@jacobsenmd
Nov 06 2015 13:37
Yikes. Sounds like a pain. The menu looks fine on Mac OS, but I had the same problem testing on Windows
Mark Jacobsen
@jacobsenmd
Nov 06 2015 15:01
I spent some time trying to troubleshoot the UI weirdness on Ubuntu, but can’t figure it out. I’m getting the same menu/toolbar problem with a very simple test application. I tried using both Anaconda, and the system installation of Python, with the same results. I found some articles about how Qt can use different graphics systems (raster, gtk, etc.) but trying different options didn’t fix it.