Probe basic setting new machine

More
27 Aug 2020 20:36 #179737 by Mara2000
Hi,

just installed Probe basic ( quick install ) no development vrsion.

After installation, I see few sample configurations in the config folder, but only the sim versions. Does this mean that for a real machine I just have to edit the ini and hal configuration files in the ,,sim,, folder?

Thank you.

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

More
29 Aug 2020 00:59 #179896 by KCJ
Replied by KCJ on topic Probe basic setting new machine
If you have a working machine config already, all you need to do is change the [DISPLAY] DISPLAY option in your INI to probe_basic.
[DISPLAY]
DISPLAY = probe_basic

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

More
29 Aug 2020 05:49 #179913 by Mara2000
Thank you, I thought it was necessary to adapt the sample halls and ini from probe basic due to the specific functions that are designed specifically for probe basic.

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

More
30 Aug 2020 02:22 #179999 by KCJ
Replied by KCJ on topic Probe basic setting new machine
If you don't have them in a standard location you will need to copy over the ProbeBasic specific sub routines, and you may need to tweak a few other things to your liking, but in general its best to start with a know working config and add what's needed for ProbeBasic, rather than try to adapt one of the probe basic sim configs.

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

More
17 Sep 2020 19:36 - 17 Sep 2020 19:37 #182565 by Mara2000
Hi,

after clean install Linux CNC 2.8 and Probe basic, when i start Probe basic sim then this error appear:

Traceback (most recent call last):
File "/home/cnc/.local/bin/probe_basic", line 11, in <module>
load_entry_point('probe-basic', 'gui_scripts', 'probe_basic')()
File "/home/cnc/qtpyvcp/pyqt5designer/Qt5.7.1-64bit/probe_basic/probe_basic/__init__.py", line 20, in main
qtpyvcp.run_vcp(opts, VCP_CONFIG_FILE)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/__init__.py", line 142, in run_vcp
launch_application(opts, config)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/vcp_launcher.py", line 78, in launch_application
loadWindows(config)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/vcp_launcher.py", line 211, in loadWindows
window = _initialize_object_from_dict(window_dict)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/vcp_launcher.py", line 205, in _initialize_object_from_dict
return obj(*args, **kwargs)
File "/home/cnc/qtpyvcp/pyqt5designer/Qt5.7.1-64bit/probe_basic/probe_basic/probe_basic.py", line 23, in __init__
super(ProbeBasic, self).__init__(*args, **kwargs)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 43, in __init__
self.loadUi(ui_file)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 102, in loadUi
uic.loadUi(ui_file, self)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/__init__.py", line 226, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/Loader/loader.py", line 72, in loadUi
return self.parse(filename, resource_suffix, basedir)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 1021, in parse
actor(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 828, in createUserInterface
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 264, in createWidget
self.stack.push(self.setupObject(widget_class, parent, elem))
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 228, in setupObject
obj = self.factory.createQObject(clsname, name, args, is_attribute)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/objcreator.py", line 118, in createQObject
return self._cpolicy.instantiate(factory, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/Loader/qobjectcreator.py", line 137, in instantiate
return clsObject(*ctor_args)
File "/home/cnc/qtpyvcp/pyqt5designer/Qt5.7.1-64bit/probe_basic/widgets/atc_widget/atc.py", line 47, in __init__
self.pocket_slots = int(INIFILE.find("ATC", "POCKETS")) or 12
TypeError: int() argument must be a string or a number, not 'NoneType'




Thank you for help! :-)
Last edit: 17 Sep 2020 19:37 by Mara2000.

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

More
17 Sep 2020 20:38 #182573 by Mara2000
It seems something wrong with graphic driver ....... but axis gui and gmoccapy works ok with this VGA
Attachments:

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

More
18 Sep 2020 00:45 #182596 by TurBoss
oops thats a bug

if you want to workarround it while i fix
add
[ATC]
POCKETS=12
to your ini

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

More
18 Sep 2020 00:47 #182597 by TurBoss
try
pip install --upgrade vtk

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

More
18 Sep 2020 19:03 #182672 by Mara2000
Hi,

just updated with:

pip install --upgrade vtk

...added to INI:

[ATC]
POCKETS=12


.... and still error apeared:



Traceback (most recent call last):
File "/home/cnc/.local/bin/probe_basic", line 11, in <module>
load_entry_point('probe-basic', 'gui_scripts', 'probe_basic')()
File "/home/cnc/qtpyvcp/pyqt5designer/Qt5.7.1-64bit/probe_basic/probe_basic/__init__.py", line 20, in main
qtpyvcp.run_vcp(opts, VCP_CONFIG_FILE)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/__init__.py", line 142, in run_vcp
launch_application(opts, config)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/vcp_launcher.py", line 78, in launch_application
loadWindows(config)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/vcp_launcher.py", line 211, in loadWindows
window = _initialize_object_from_dict(window_dict)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/vcp_launcher.py", line 205, in _initialize_object_from_dict
return obj(*args, **kwargs)
File "/home/cnc/qtpyvcp/pyqt5designer/Qt5.7.1-64bit/probe_basic/probe_basic/probe_basic.py", line 23, in __init__
super(ProbeBasic, self).__init__(*args, **kwargs)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 43, in __init__
self.loadUi(ui_file)
File "/home/cnc/.local/lib/python2.7/site-packages/qtpyvcp/widgets/form_widgets/main_window.py", line 102, in loadUi
uic.loadUi(ui_file, self)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/__init__.py", line 226, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/Loader/loader.py", line 72, in loadUi
return self.parse(filename, resource_suffix, basedir)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 1021, in parse
actor(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 828, in createUserInterface
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 264, in createWidget
self.stack.push(self.setupObject(widget_class, parent, elem))
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/uiparser.py", line 228, in setupObject
obj = self.factory.createQObject(clsname, name, args, is_attribute)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/objcreator.py", line 100, in createQObject
factory = self.findQObjectType(classname)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/objcreator.py", line 125, in findQObjectType
w = module.search(classname)
File "/usr/lib/python2.7/dist-packages/PyQt5/uic/Loader/qobjectcreator.py", line 113, in search
module = __import__(mname, {}, {}, (cls,))
ImportError: No module named dro_label




Thank you :-)

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

More
26 Sep 2020 19:35 #183873 by TurBoss
Hello,


did you ran the script located at "pyqt5designer/Qt5.7.1-64bit"
github.com/kcjengr/qtpyvcp/tree/master/p...signer/Qt5.7.1-64bit


Installing Designer Libs

These libraries have been tested to work in Debian 9 (stretch) Mint 19.1 and Ubuntu 18.04. They will likely work on other systems as well.

To install simply run:

sudo ./install.sh
The following user(s) said Thank You: Mara2000

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

Moderators: KCJLcvette
Time to create page: 0.136 seconds
Powered by Kunena Forum