Latest update broke something

More
11 Mar 2021 21:16 #201868 by cmorley
Jim did you move the INI etc into /home/jim/linuxcnc/configs/qtdragon_hd/qtdragon ?

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

More
11 Mar 2021 22:40 #201895 by cmorley
I have to got to work soon again..

Your debug statements seem to indicate that your INI/HAL files are still mixed in with the QTVCP handler and .ui code:

Machine configuration directory is '/home/jim/linuxcnc/configs/qtdragon_hd/qtdragon'


I would have expected that to be:'/home/jim/linuxcnc/configs/qtdragon_hd'

This indicates the same thing:

[QTvcp][INFO] Logging to "/home/jim/linuxcnc/configs/qtdragon_hd/qtdragon/qtdragon.log" (logger.py:100)


So the INI/HAL files should be separated from the handler/.ui etc files by a config folder the same basename as the screen.

Can you confirm my understanding of your config is right?

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

More
12 Mar 2021 00:01 #201910 by persei8
The file I sent is the result of moving everything into the qtdragon folder. What I was asking is which files are supposed to move and which stay in the config directory. So far I have gathered that I should move the handler and ui file. The ini and hal files stay. What about the images folder, qss, tool table, prefs, var, mdi_history, other widget libraries, etc.? I guess I could move them one at a time until it works. I also have the .git structure to deal with. I don't even know what happens to that.

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

More
12 Mar 2021 00:06 #201911 by cmorley
Just screen related code.. images qss qrs .ui handler, abd code you have for custom widgets.

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

More
12 Mar 2021 00:36 #201914 by persei8
OK, I have determined that the images, handler, ui and default_setup have to move to the qtdragon folder and everything else stays where it was. Moving the qss files results in an error. That's 4 of the 30+ items from the original folder. I don't see how this tidies anything up so I'll just keep things the way they were.

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

More
12 Mar 2021 03:23 #201921 by cmorley
To keep things the way they were will require you to revert back to before the change was made. (Easy to do if using compiled version harder if using buildbot) or hand edit the pstat.py file

I'll look into the qss file problem. Thanks.

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

More
14 Mar 2021 03:02 #202185 by tommieh
Similar or same issue here after upgrading to 2.9.0-pre0-3676-g843a3b57f

I moved the ui, _handler, resources, qrc, qss into a subdirectory.
These 5 files are now in /home/tommie/linuxcnc/configs/qtdragon/qtdragon/

That gets the UI screen to start.
But I can only get the style sheet (qss) to load without error if it is in /usr/share/qtvcp/screens/qtdragon/

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

More
14 Mar 2021 06:03 #202190 by cmorley
Thanks fior the report.
I havent looked into qss problem yet.
I'm working long hours night shift for a 15day shutdown..

My window of opportunity is small. Sorry for the inconvenience.

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

More
19 Mar 2021 07:55 #202808 by tommieh
Maybe something else is broken?
I just noticed that when I start designer, it has no linuxcnc widgets anymore.
Just in case I ran install again: /usr/lib/python2.7/dist-packages/qtvcp/designer/install_script
But everything was reported as newest version and installed already.

When I start designer with:
$designer -qt=5
It shows:

('Qtvcp python plugin found:', '/home/cnc/.designer/plugins/python/qtvcp_plugin.pyc')
[QtDesigner][INFO] Logging to "/home/cnc/qtdesigner.log" (logger.py:100)
tool_mmap_user(): file open fail: No such file or directory
tool_mmap_user(): no mmap file,continuing
mmap tool data not available, continuing emc/usr_intf/axis/extensions/emcmodule.cc
Traceback (most recent call last):
File "/home/cnc/.designer/plugins/python/qtvcp_plugin.py", line 42, in <module>
from qtvcp.plugins.screenoptions_plugin import LcncScreenOptionsPlugin
File "/usr/lib/python2.7/dist-packages/qtvcp/plugins/screenoptions_plugin.py", line 8, in <module>
from qtvcp.widgets.screen_options import ScreenOptions
File "/usr/lib/python2.7/dist-packages/qtvcp/widgets/screen_options.py", line 46, in <module>
PATH = Path()
File "/usr/lib/python2.7/dist-packages/qtvcp/qt_pstat.py", line 43, in __init__
self.BASEDIR = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
AttributeError: 'module' object has no attribute 'argv'

Can someone help please?

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

More
19 Mar 2021 09:09 #202811 by phillc54

Maybe something else is broken?
I just noticed that when I start designer, it has no linuxcnc widgets anymore.

File "/usr/lib/python2.7/dist-packages/qtvcp/qt_pstat.py", line 43, in __init__
self.BASEDIR = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), ".."))
AttributeError: 'module' object has no attribute 'argv'


This should have been fixed 3 days ago, have you updated LinuxCNC since then?
github.com/LinuxCNC/linuxcnc/commit/5320...ea77bb4634a44d72bd0c

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

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