qtplasmac error message

More
5 years 2 months ago #216712 by crowloy
After the latest update which changed over to python3, I had an interesting time updating and running qtplasma. I still have this error which doesn't appear to be very important as qtplasmac is running, but it would be nice to get rid of this as well.

Code:
hm2/hm2_7i92.0: registered [QTvcp][INFO]  Logging to "/home/colten/git/qtplasma/qtdragon.log" (logger.py:100) run_string(from interpreter import this):  Traceback (most recent call last):   File "<string>", line 1, in <module> ImportError: __import__ not found [QTvcp.QTVCP.QT_PSTAT][INFO]  Using DEFAULT handler file path: /home/colten/git/linuxcnc/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py (qt_pstat.py:97)

Please Log in to join the conversation.

More
5 years 2 months ago #216741 by robertspark
Replied by robertspark on topic qtplasmac error message
2.9.0-pre0-4365-g0e4582b09

Traceback (most recent call last):File "/usr/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py", line 1053, in file_loadedmsg, xMin, yMin, xMax, yMax = self.bounds_check('loaded', 0, 0)File "/usr/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py", line 1543, in bounds_checkif self.gcodeProps == 'in':TypeError: 'NoneType' object is not subscriptable

created a line in conversational, sent if to the main screen, and threw an error..... + shut down

thought I'd add it onto this thread as it may be python3 related.

Please Log in to join the conversation.

More
5 years 2 months ago #216754 by phillc54
Replied by phillc54 on topic qtplasmac error message
If you guys start linuxcnc from a terminal does it give any hints in the terminal output about missing modules?

Edit: It may be worth setting the default python to python2 on a system wide basis:
linuxconfig.org/how-to-change-from-defau...sion-on-debian-linux

then running the Qt install script:
linuxcnc.org/docs/devel/html/plasma/qtpl...c.html#qt-dependency

 

Please Log in to join the conversation.

More
5 years 2 months ago #216778 by phillc54
Replied by phillc54 on topic qtplasmac error message

2.9.0-pre0-4365-g0e4582b09

Traceback (most recent call last):File "/usr/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py", line 1053, in file_loadedmsg, xMin, yMin, xMax, yMax = self.bounds_check('loaded', 0, 0)File "/usr/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py", line 1543, in bounds_checkif self.gcodeProps == 'in':TypeError: 'NoneType' object is not subscriptable
created a line in conversational, sent if to the main screen, and threw an error..... + shut down

thought I'd add it onto this thread as it may be python3 related.


This issue is fixed.

Please Log in to join the conversation.

More
5 years 2 months ago #216779 by phillc54
Replied by phillc54 on topic qtplasmac error message

After the latest update which changed over to python3, I had an interesting time updating and running qtplasma. I still have this error which doesn't appear to be very important as qtplasmac is running, but it would be nice to get rid of this as well.


Code:
hm2/hm2_7i92.0: registered [QTvcp][INFO]  Logging to "/home/colten/git/qtplasma/qtdragon.log" (logger.py:100) run_string(from interpreter import this):  Traceback (most recent call last):   File "<string>", line 1, in <module> ImportError: __import__ not found [QTvcp.QTVCP.QT_PSTAT][INFO]  Using DEFAULT handler file path: /home/colten/git/linuxcnc/share/qtvcp/screens/qtplasmac/qtplasmac_handler.py (qt_pstat.py:97)

 

Could you post the config backup, the mention of qtdragon.log seems a bit odd.

linuxcnc.org/docs/devel/html/plasma/qtplasmac.html#qt_backup

Please Log in to join the conversation.

More
5 years 2 months ago #216849 by crowloy
Replied by crowloy on topic qtplasmac error message
here's the config files. I've been running qtplasmac for quite awhile just updating the git repo and running 

Please Log in to join the conversation.

More
5 years 2 months ago #216896 by phillc54
Replied by phillc54 on topic qtplasmac error message
OK, the qtdragon.log was leading me up the wrong path, I see you have that specified in the .ini file.
I set your config up as a sim and could not see the issue.
It would be worth trying it with the "LOG_FILE = qtdragon.log" line commented out.
Failing that it may be worthwhile for you to set the default python on your PC to python3.
linuxconfig.org/how-to-change-from-defau...ion-on-debian-linux/
Then after doing that run the qt install script:
Code:
/home/colten/git/linuxcnc/lib/python/designer/install_script
You won't need the designer part of the script.

Edit: If you update then you won't need to set the default pyhton version, I have pushed a change to the install script so it is python3 only.
 

Please Log in to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum