Config Directory
- phillc54
- Topic Author
- Away
- Platinum Member
- Posts: 5698
- Thank you received: 2082
I inadvertently came across this when I tried to run QtDragon from where it was downloaded.
[QtDesigner][INFO] Logging to "/home/phill/imac/Downloads/qtdragon/qtdragon.log" (logger.py:88)
[QtDesigner.QTVCP.QT_ISTAT][WARNING] INI Parsing Error, No MAX_SPINDLE_SPEED Entry in DISPLAY, Using: 2500 (qt_istat.py:262)
[QTvcp][INFO] Logging to "/home/phill/imac/Downloads/qtdragon/qtdragon.log" (logger.py:88)
[QTvcp][INFO] Base log level set to 20 (logger.py:52)
[QTvcp][INFO] Using specified handler file path: /home/phill/imac/Downloads/qtdragon/qtdragon_handler.py (qtvcp:99)
[QTvcp][INFO] Using specified ui file from /home/phill/imac/Downloads/qtdragon/qtdragon.ui (qtvcp:123)
[QTvcp][INFO] Using specified qss file from /home/phill/imac/Downloads/qtdragon/qtdragon.qss (qtvcp:163)
[QTvcp][INFO] Building A Linuxcnc Main Screen (qtvcp:241)
[QTvcp][INFO] No handler file specified on command line (qtvcp:259)
[QTvcp][INFO] No HAL component base name specified on command line using: qtdragon (qtvcp:290)
preference file does not exist -makeing file - ()
[QTvcp.QTVCP.QT_MAKEPINS][WARNING] Preference instance error: [Errno 2] No such file or directory: u'/home/phill/linuxcnc/configs/qtdragon/qtdragon.pref' (qt_makepins.py:53)
Shutting down and cleaning up LinuxCNC...
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
- Posts: 7762
- Thank you received: 2055
Chris
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
- Posts: 7762
- Thank you received: 2055
Did it make qtvcp fail to load? i can't immediately see why - it should just not have saving capability - but i have not tested this recently.
The question then is how do we facilitate Jim's intent (preference file in the config folder) while still being moveable.
maybe a magic filepath word ie. CONFIGFOLDER/.qtdragon_preference
meaning it saves in whatever config folder it was run from...
Chris
Please Log in or Create an account to join the conversation.
- phillc54
- Topic Author
- Away
- Platinum Member
- Posts: 5698
- Thank you received: 2082
OK, that makes sense.So looking into this a bit - it is caused by the original integrator setting the preference file inside his config folder. Of course you don't have that folder on your system so it fails (qtvcp will make the file but not the folders)
Yes, it doesn't load the gui and gives the messages in the terminal I posted earlier plus a popup error messageDid it make qtvcp fail to load? i can't immediately see why - it should just not have saving capability - but i have not tested this recently.
Yes, I think the prefs file should always be where the ini file is.The question then is how do we facilitate Jim's intent (preference file in the config folder) while still being moveable.
maybe a magic filepath word ie. CONFIGFOLDER/.qtdragon_preference
meaning it saves in whatever config folder it was run from...
I guess 99.9% of people won't do what I did and they will put it in ~/linuxcnc/configs where it belongs...
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
- Posts: 7762
- Thank you received: 2055
I tested somewhat the error of specifying a location that was not possible but didn't get an error dialog.
could you run it again and see if the dialog said anything different - pressing cancel on the dialog should print the error in the terminal.
Chris
Please Log in or Create an account to join the conversation.
- phillc54
- Topic Author
- Away
- Platinum Member
- Posts: 5698
- Thank you received: 2082
Traceback (most recent call last):
File "/usr/bin/qtvcp", line 492, in <module>
APP = QTVCP()
File "/usr/bin/qtvcp", line 349, in __init__
window.handler_instance.initialized__()
File "/home/phill/imac/Downloads/qtdragon/qtdragon_handler.py", line 68, in initialized__
self.PROBE.get_prefs()
File "/home/phill/imac/Downloads/qtdragon/probe.py", line 54, in get_prefs
self.w.lineEdit_probe_tool.setText(str(self.w.PREFS_.getpref('Probe tool', 0, int, 'PROBE OPTIONS')))
AttributeError: 'NoneType' object has no attribute 'getpref'
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
- Posts: 7762
- Thank you received: 2055
Thank you.
Chris
Please Log in or Create an account to join the conversation.
- persei8
- Offline
- Platinum Member
- Posts: 386
- Thank you received: 121
Please Log in or Create an account to join the conversation.