NativeCam on LinuxCNC 2.9.3

More
1 year 6 months ago #326214 by hermann1976
Thank you, Giovanni. Replacing pref_edit.py fixed the problem with saving preferences.
I've been playing around a bit.
I've now figured out how to start NativeCAM in standalone mode.
It works for me by running ncam.py  with  '/usr/share/linuxcnc/gladevcp/NativeCAM/ncam.py -i /home/cnc/linuxcnc/configs/sim.gmoccapy/gmoccapy.ini -c mill'.

 

Attachment not found

Please Log in to join the conversation.

More
1 year 6 months ago #326219 by Giovanni
You could run ncam from any folder by creating a link in a folder which by deffault have a command path.

To do that you could type:

sudo ln -s /usr/share/linuxcnc/gladevcp/NativeCAM/ncam.py /usr/bin/ncam

Then you can call ncam from the terminal like any other command and from any folder.

Regards
Giovanni

Please Log in to join the conversation.

More
1 year 6 months ago #326730 by Cynas
Replied by Cynas on topic NativeCam on LinuxCNC 2.9.3
Thank you all for your time for NativeCam, 

Does the configuration for the lathe work?

Milling machine and plasma work without any problems, unfortunately configuration but lathe does not start

Thank you for your help

Please Log in to join the conversation.

More
1 year 6 months ago #326752 by Giovanni
I've never tried the lathe option.

How do you run ncam (embedded, standalone...)?
Does it give errors?

Regards
Giovanni

Please Log in to join the conversation.

More
1 year 6 months ago #326769 by Cynas
Replied by Cynas on topic NativeCam on LinuxCNC 2.9.3
embedded - incomplete view and no proper operation

standalone - it doesn't start

.....................................
ncam --catalog=mill    - ok
ncam --catalog=plasma   - ok
ncam --catalog=lathe   - it doesn't start, error in the next post
 

Please Log in to join the conversation.

More
1 year 6 months ago #326770 by Cynas
Replied by Cynas on topic NativeCam on LinuxCNC 2.9.3
linuxcnc@linuxcnc:~/Desktop$ ncam --catalog=lathe

NativeCAM info:
   inifile = NA
  NCAM_DIR = /home/linuxcnc/nativecam
   SYS_DIR = /usr/share/linuxcnc/gladevcp/NativeCAM
   program = /usr/share/linuxcnc/gladevcp/NativeCAM/ncam.py


Using default lathe/menu.xml,  no lathe/menu-custom.xml found

Traceback (most recent call last):
  File "/usr/bin/ncam", line 4124, in get_selected_feature
    if self.actionDualView.get_active():
       ^^^^^^^^^^^^^^^^^^^
AttributeError: 'NCam' object has no attribute 'actionDualView'
/usr/bin/ncam:3660: DeprecationWarning: Gtk.ActionGroup.add_action is deprecated
  self.action_group.add_action(act)
/usr/bin/ncam:3658: DeprecationWarning: Gtk.ActionGroup.add_action_with_accel is deprecated
  self.action_group.add_action_with_accel(act, accel)
/usr/bin/ncam:3654: DeprecationWarning: Gtk.Action.set_icon_name is deprecated
  act.set_icon_name(stock_id)
/usr/bin/ncam:2803: DeprecationWarning: Gtk.UIManager.get_accel_group is deprecated
  self.accelGroup = self.uimanager.get_accel_group()
/usr/bin/ncam:3936: DeprecationWarning: Gtk.UIManager.get_action is deprecated
  self.actionSingleView = self.uimanager.get_action("/dummy/SingleView")
/usr/bin/ncam:2964: DeprecationWarning: Gtk.Action.create_menu_item is deprecated
  mi = _action.create_menu_item()

(ncam:1781): Gtk-CRITICAL **: 11:59:35.761: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
/usr/bin/ncam:2966: DeprecationWarning: Gtk.Action.create_icon is deprecated
  mi.set_image(_action.create_icon(menu_icon_size))
/usr/bin/ncam:2966: DeprecationWarning: Gtk.ImageMenuItem.set_image is deprecated
  mi.set_image(_action.create_icon(menu_icon_size))

(ncam:1781): Gtk-CRITICAL **: 11:59:35.762: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(ncam:1781): Gtk-CRITICAL **: 11:59:35.762: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(ncam:1781): Gtk-CRITICAL **: 11:59:35.763: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(ncam:1781): Gtk-CRITICAL **: 11:59:35.763: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(ncam:1781): Gtk-CRITICAL **: 11:59:35.763: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(ncam:1781): Gtk-CRITICAL **: 11:59:35.763: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(ncam:1781): Gtk-CRITICAL **: 11:59:35.766: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed

(ncam:1781): Gtk-CRITICAL **: 11:59:35.766: gtk_accel_label_set_accel_closure: assertion 'gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed
/usr/bin/ncam:2809: DeprecationWarning: Gtk.UIManager.get_widget is deprecated
  self.main_toolbar = self.uimanager.get_widget("/ToolBar")
/usr/bin/ncam:5095: DeprecationWarning: Gtk.ToggleAction.get_active is deprecated
  if self.actionDualView.get_active():
/usr/bin/ncam:5641: DeprecationWarning: Gtk.Action.set_sensitive is deprecated
  self.actionCollapse.set_sensitive(self.selected_feature is not None)
/usr/bin/ncam:5662: DeprecationWarning: Gtk.Action.set_visible is deprecated
  self.actionChngGrp.set_visible(
DEBUG actionDualView.get_active
Previous work not saved as current work
Traceback (most recent call last):
  File "/usr/bin/ncam", line 5923, in <module>
    ncam = NCam()
           ^^^^^^
  File "/usr/bin/ncam", line 2827, in __init__
    self.load_currentWork()
  File "/usr/bin/ncam", line 5068, in load_currentWork
    self.action_new_project()
  File "/usr/bin/ncam", line 5086, in action_new_project
    xml = self.update_features(xml)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/ncam", line 5524, in update_features
    recursive(xml_i, None)
  File "/usr/bin/ncam", line 5465, in recursive
    f_B = Feature(src=src_f)
          ^^^^^^^^^^^^^^^^^^
  File "/usr/bin/ncam", line 1784, in __init__
    self.from_src(src)
  File "/usr/bin/ncam", line 1848, in from_src
    src_config.read_string(str(f))
  File "/usr/lib/python3.11/configparser.py", line 739, in read_string
    self.read_file(sfile, source)
  File "/usr/lib/python3.11/configparser.py", line 734, in read_file
    self._read(f, source)
  File "/usr/lib/python3.11/configparser.py", line 1112, in _read
    raise DuplicateOptionError(sectname, optname,
configparser.DuplicateOptionError: While reading from '<string>' [line 90]: option 'header' in section 'PARAM_Z_RAP' already exists
 

Please Log in to join the conversation.

More
1 year 6 months ago #327217 by Cynas
Replied by Cynas on topic NativeCam on LinuxCNC 2.9.3
Has anyone checked if this works on another computer?

Please Log in to join the conversation.

More
1 year 6 months ago #327241 by cmorley
Replied by cmorley on topic NativeCam on LinuxCNC 2.9.3
I got this same error when working on the qt version (based on python2 stuff).
IIRC I removed the offending entry and didn't notice a problem (but I don't use it)
IIRC I tested a python2 original version and didn't get the error - so my guess is the parsing library is more picky by default now.
I don't know enough about the saving format to make a definitive decision.

Please Log in to join the conversation.

More
1 year 6 months ago #327311 by Giovanni
When I'll have some spare time I'll try to fix it.

Please Log in to join the conversation.

More
1 year 5 months ago #327488 by Krulli_Fräser
I installed it today using the guide and everything worked first try!!
After moving my subroutines to the new directory even that causes no problem. I have the day off so in the afternoon i will experiment with programming in NativeCam.

I am so thankful to you guys for figuring this out and I´m looking forward to using Nativecam for the vast majority of projects in the future.

Please Log in to join the conversation.

Time to create page: 0.140 seconds
Powered by Kunena Forum