|
Post by irowe on May 10, 2017 15:13:51 GMT -7
We had to replace the motherboard on one of our ground station computers. As a result, we had to reinstall all the software. When I tried to run the antenna tracker python code in spyder, none of the modules loaded at first. I installed them via pip and anaconda. Now that it has all the requisite modules, I am getting a type error when running the code. The error is as follows
File "C:/Users/GS/Desktop/Antenna_Tracker/antenna_dualtracker_GUI_v4.1.py", line 254, in __init__
layout.addWidget(self.canvas)
TypeError: 'PySide.QtGui.QBoxLayout.addWidget' called with wrong argument types:
PySide.QtGui.QBoxLayout.addWidget(FigureCanvasQTAgg)
Supported signatures:
PySide.QtGui.QBoxLayout.addWidget(PySide.QtGui.QWidget, int = 0, PySide.QtCore.Qt.Alignment = 0) The code works fine on all our other ground station laptops. What gives?
Thank you so much for your help.
|
|
|
Post by irowe on May 11, 2017 7:18:37 GMT -7
I recently updated the code via GitHub for another computer in order to use the new Iridium server. In doing so, I encountered the same problem again.
|
|
|
Post by leviw on May 11, 2017 8:57:45 GMT -7
File "C:/Users/GS/Desktop/Antenna_Tracker/antenna_dualtracker_GUI_v4.1.py", line 254, in __init__
It looks like you tried to use the older version 4 code, make sure you go into the V6 folder first.
|
|
|
Post by irowe on May 11, 2017 10:08:33 GMT -7
I actually got it to work by changing the preferences for QtGUI in Spyder from "default" to "PySide." Is that an okay solution?
|
|
|
Post by leviw on May 11, 2017 15:26:46 GMT -7
hmmm maybe? The version 4 code is before my time, maybe David or someone with more experience with it can chime in about that.
I suggest using the latest version because there are probably useful improvements or bug fixes. I'm not sure why the v4 code is even included, it should probably be removed entirely so that everyone uses V6.
|
|
|
Post by David MSGC on May 18, 2017 13:09:11 GMT -7
We will be getting rid of the two versions v4 and v6, for now use v6.
|
|
|
Post by Gaurav on Jun 1, 2017 13:20:20 GMT -7
Yes, that is what I did as well. I used the V6 version, but had to go into the tools --> preferences --> Console --> External modules and change the qt-python binding libraries selection to pyside.
|
|