qtVCP not working for RPI 2.8 image
In a terminal, start a python interactive session:
$ python
>>> import PyQt5
>>> import qt
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.
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
sudo dpkg -i vtk_7.1.1-qt5py2-1_armhf.deb
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/vtk:$PYTHONPATH
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/python2.7/site-packages/vtk:$LD_LIBRARY_PATH
I then performed all your check with succes:
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
$ python
>>> import PyQt5
>>> import qt
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.
install notification daemon, i just tried to run it without notify running and i get the same errors
and perhaps try to get qtvcp working before the vtk stuff
Please Log in or Create an account to join the conversation.
Make sure you have a .qrc file in your config directory. There's one on the qtdragon github. User pi cannot write to /usr without root privilege. You should not change the permissions - the resources.py file should be written to the config directory.Unable to open /usr/share/qtvcp/screens/qtdragon/resources.py for writing\
There's no tool table. You can copy one from one of the other example configs.[QtDesigner.QTVCP.QT_TSTAT][DEBUG] Toolfile does not exist' tool.tbl (qt_tstat.py:113)\
There's fewer errors in the second log because it wrote missing parameters to the pref file on the first run. Not to say these are the root causes, but fixing these will get you a step closer.
Please Log in or Create an account to join the conversation.
Have a suggestion?
@persei8 I did what you suggested.
- Copied tool.tbl and the qtdragon.qrc found in QtDragon-master
- Modified qtdragon.qrc
<qresource prefix="/home/jim/linuxcnc/configs/qtdragon/">
- also created /home/pi/linuxcnc/configs/qtdragon/images and copied the images in it
now if i run it I have a different result (I also see for a second the UI in the xyz example, not the other ones) but still crashes.
I attach the log
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
probably have to configure it or something, I have to run mine every time before qtvcp, heres my errors with and without notify, a lot can get through but not notify, even if its turned off in prefs . also, here is my no graphics version of qtdragon i use for testing
Please Log in or Create an account to join the conversation.
Chris
Please Log in or Create an account to join the conversation.
Meanwhile I had some success!
Turnkey was to have the notification-daemon running in the background! thank you @cakeslob
In my opinion this should be a Critical output not a Warning as it mislead to think it's something.. well not critical
So I was able to start qtdragon_xyz even if there are still some warnings in the background.
It would be nice to sort them out just to have a base configuration clean.
I then tried qtdragon_xyzy (that's my machine) and it breaks. Attached the log.
It said something about a missing file (qtdragon_xyz ) so I decided to do this:
- downloaded QtDragon-master, Probe-main and unzipped in /configs/qtdragon
- downloaded vtk-master and unzipped in the same folder (overwriting some of the previous files).
Now if I launch the example configuration qtdragon_xyzy it brakes in a different position
AttributeError: 'VersaProbe' object has no attribute 'input_xy_clearance'
Sorry for my English... I hope that what I just wrote doesn't need to be debugged :-D
Please Log in or Create an account to join the conversation.
This one is because your config dir is called qtderagon, not qtdragon[QTvcp.QTVCP.QT_MAKEPINS][WARNING] Preference instance error: Cannot find directory: /home/pi/linuxcnc/configs/qtdragon for preference file. (qt_makepins.py:55)
This one is likely because the xyzy.ini doesn't have a [PROBE] section. Copy it over from the xyz one. Valid entries are USE_PROBE = versaprobe or USE_PROBE = basicprobe. If you don't want the probe routines, leave it out.[QTvcp.QTDRAGON_HANDLER][INFO] No valid probe widget specified (qtdragon_handler.py:270)
It looks like it's going to work. Chris just pushed some updates to master so some adjustments will need to be made if you update and upgrade. In the meantime, I will try to fine tune everything. Keep in mind, qtdragon with vtk on an rpi4 is NOT a finished product. It needs a proper graphics display widget. If you know OpenGL ES, this could be a project for you.
Jim
Please Log in or Create an account to join the conversation.