qtVCP not working for RPI 2.8 image

More
6 years 6 days ago #187317 by persei8
If you start linuxcnc from a terminal, it should print out some startup info and any error messages. That way you may get a clue what the problem is.

Please Log in or Create an account to join the conversation.

More
6 years 6 days ago #187319 by mgmatteo
Sorry, I had to do it in the first post...
I attached the log,
but I think this is the point:

[QTvcp.QTVCP.QT_MAKEGUI][CRITICAL] module 'qtdragon_handler' skipped - import error: (qt_makegui.py:280)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/qtvcp/qt_makegui.py", line 278, in _load_handlers
mod = __import__(basename)
File "/home/pi/linuxcnc/configs/qtdragon/qtdragon_handler.py", line 17, in <module>
from vtk_backplot import VTKBackPlot
File "/home/pi/linuxcnc/configs/qtdragon/vtk_backplot.py", line 13, in <module>
import vtk.qt
ImportError: No module named qt
Shutting down and cleaning up LinuxCNC...
task: 1552 cycles, min=0.000164, max=0.011806, avg=0.009890, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Note: Using POSIX realtime

Sorry I'm not a linux guy..

Please Log in or Create an account to join the conversation.

More
6 years 6 days ago #187332 by persei8

ImportError: No module named qt

Is QT installed?
If you type:
Code:
sudo dpkg --list | grep vtk
You should see libvtk7.1-qt along with a bunch of other stuff.
Also, not sure about double clicking on a deb package. To install it, you need to :
Code:
sudo dpkg -i package_name.deb

Please Log in or Create an account to join the conversation.

More
6 years 6 days ago #187338 by mgmatteo
ok, this is what I get:
Code:
pi@linuxcnc:~ $ sudo dpkg --list | grep vtk ii libvtk6.3 6.3.0+dfsg2-2+b6 armhf VTK libraries ii libvtk6.3-qt 6.3.0+dfsg2-2+b6 armhf VTK libraries, Qt files ii python-vtk6 6.3.0+dfsg2-2+b6 armhf Python bindings for VTK ii vtk 7.1.1-qt5py2-1 armhf vtk pi@linuxcnc:~ $
I see 7.1.1-qt5py2-1 so looks like it's installed as far as I can tell.
I also tried to reinstall the package but no luck.
Just for curiosity I noticed there are more python version installed (2.6, 2.7, 3 and 3.7) maybe that's normal but I don't know where to look at...
thank you

Please Log in or Create an account to join the conversation.

More
6 years 6 days ago #187353 by persei8
It does appear that VTK is installed, but is PyQt5 installed?
In a terminal, start a python interactive session:
Code:
$ python >>> import PyQt5
If no error, then PyQt5 is installed.
Code:
>>> import qt
If no error, then vtk.qt is installed.
I believe that debian distros come with both python2.7 and python3 already installed. The libraries for PyQt5 are in /usr/lib/python2.7/dist-packages and the vtk libraries are in /usr/local/lib/python2.7/site-packages

Please Log in or Create an account to join the conversation.

More
6 years 5 days ago #187418 by mgmatteo
I run the commands and vtk.qt is installed..
So I wanted to restart from a fresh image, something changed but still not working.
This are ALL, and the only steps I did:

- flashed the linuxcnc-2.8.0-pi4 image
- did NOT performed any "update" nor "upgrade"
- did NOT install python-vtk6 as per my previous image
- open linuxcnc and load a sim (so I created the config folder)
- copied your files in "configs" (in a subfolder called "qtdragon")
- installed your package
Code:
sudo dpkg -i vtk_7.1.1-qt5py2-1_armhf.deb
- added
Code:
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/vtk:$PYTHONPATH
and
Code:
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/python2.7/site-packages/vtk:$LD_LIBRARY_PATH
to .bashrc as suggested by Scott


I then performed all your check with succes:
Code:
pi@linuxcnc:~ $ sudo dpkg --list | grep vtk ii libvtk6.3 6.3.0+dfsg2-2+b6 armhf VTK libraries ii vtk 7.1.1-qt5py2-1 armhf vtk
and
Code:
$ python >>> import PyQt5 >>> import qt
with no error

at this point I ran linuxcnc and choose "qtdragon_xyz"
It crashed but I didn't find the reason. I attach the log1.
Run a second time and It crashed again (but shorter output) attached in log2. (I think the first one also created some default files/configs)
If I remove the two lines added in .bashrc I have an error regarding vtk not found.

Hope this make sense to you...

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.067 seconds
Powered by Kunena Forum