NativeCAM 2.0b — Python 3 & GTK3 port for LinuxCNC 2.9 / Debian 13 Trixie

More
6 months 2 weeks ago #345703 by axemas
Hi,

The fix is now released in version 2.0b-1:

github.com/cnc-proton/nativecam-py3-gtk3/releases/tag/v2.0b-1

Download the new .deb and install it:

sudo apt remove nativecam

sudo apt install ./nativecam_2.0b-1_all.deb

This should resolve the python/python3 issue on Debian 12.

Please let me know if you run into any other problems.

Best,

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

More
6 months 2 weeks ago #345704 by axemas
Hi Surmetall,

Thanks for the link to Talla83's Discord — I actually know Peter's
videos, really good content. I will join the Discord, sounds like
a great place for quick technical feedback.

And I completely agree about keeping both channels alive. Forum for
long-term knowledge base where people can find solutions years later,
Discord for quick "I am at the machine, something does not work"
situations. Different tools for different needs.

Sorry to hear about your Beckhoff struggles. That is exactly the
kind of retrofit work where LinuxCNC really shines — replacing
expensive proprietary controllers. If I can help with anything
regarding the driver side, let me know.

Regarding the lathe polyline — still polishing a few things, then
I will push to GitHub. I will post here and ping on Discord when
it is ready for testing.

Best,
CNC Proton
The following user(s) said Thank You: COFHAL

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

More
6 months 2 weeks ago #345707 by COFHAL
Thanks>
now it looks like this error: ornocnc@tornocnc:~/linuxcnc/configs/MILLING MACHINE$ ncam -i MILLING MACHINE.ini -c mill -t
Error modifying ini file
a bytes-like object is required, not 'str'
/usr/bin/ncam:346: PyGTKDeprecationWarning: The keyword(s) "type, message_format" have been deprecated in favor of "message_type, text" respectively. See: wiki.gnome.org/PyGObject/InitializerDeprecations
dlg = gtk.MessageDialog(parent = None,
/usr/bin/ncam:346: PyGTKDeprecationWarning: The "flags" argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: wiki.gnome.org/PyGObject/InitializerDeprecations
dlg = gtk.MessageDialog(parent = None,
The following user(s) said Thank You: axemas

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

More
6 months 1 week ago #345718 by axemas
Hi,

Thank you for testing! Found another Python 3 compatibility bug.
The function that modifies the ini file was still using old Python 2
API (io.BytesIO with str argument).

This will be fixed in the next release (2.0b-2) which I will push
to GitHub shortly.

By the way, there's a separate issue — your config folder has a
space in the name ("MILLING MACHINE"). LinuxCNC works with it, but
it can cause problems with some tools. Consider renaming to
"MILLING_MACHINE" for safety.

github.com/cnc-proton/nativecam-py3-gtk3/releases

Best,
Axemas
The following user(s) said Thank You: tommylight, COFHAL

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

More
6 months 1 week ago #345775 by COFHAL
Now all these errors appear indicating that some strings are already in the ini file:
Error modifying ini file
While reading from '<string>' [line 24]: option 'position_feedback' in section 'DISPLAY' already exists
error modifying ini file
While reading from '<string>' [line 24]: option 'position_feedback' in section 'DISPLAY' already exists
Error modifying ini file
While reading from '<string>' [line 37]: option 'program_extension' in section 'FILTER' already exists
Error modifying ini file
While reading from '<string>' [line 71]: option 'halfile' in section 'HAL' already exists
Error modifying ini file
While reading from '<string>' [line 94]: option 'tool_table' in section 'EMCIO' already exists
Error modifying ini file
Source contains parsing errors: '<string>'
[line 291]: '= \n'
/usr/bin/ncam:346: PyGTKDeprecationWarning: The keyword(s) "type, message_format" have been deprecated in favor of "message_type, text" respectively. See: wiki.gnome.org/PyGObject/InitializerDeprecations
dlg = gtk.MessageDialog(parent = None,
/usr/bin/ncam:346: PyGTKDeprecationWarning: The "flags" argument for dialog construction is deprecated. Please use initializer keywords: modal=True and/or destroy_with_parent=True. See: wiki.gnome.org/PyGObject/InitializerDeprecations

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

More
6 months 1 week ago #345785 by axemas
"Hi everyone,

Thank you all for testing the port and providing feedback! I've just pushed a few fixes to the repository (including the INI parsing errors and GTK deprecation warnings). github.com/cnc-proton/nativecam-py3-gtk3...vecam_2.0b-4_all.deb

Regarding Bug Reports:
As more people start using this port, it becomes harder to track individual errors and logs across forum pages. If you encounter a bug, a crash, or a specific error message, please report it via GitHub Issues here: github.com/cnc-proton/nativecam-py3-gtk3/issues

The forum is still the perfect place for general discussions, sharing ideas (like the Lathe Polyline!), and showing off your work. But keeping the technical bug reports on GitHub allows me to solve them much faster and keep the project organized.

Thanks for understanding and for your continued support!"
The following user(s) said Thank You: tommylight, besriworld, COFHAL, Surmetall, jjdege, Unlogic

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

Time to create page: 0.465 seconds
Powered by Kunena Forum