Skip to content

Post Processing Fails to Post (Machine Argument Not Defined) #20

Description

@SaazyTheGoat
  • OS: Linux, EndeavourOS
  • Desktop Environment: KDE
  • FreeCAD Version: AppImage, v1.1.0dev, 2025/05/23
  • Architecture: x86_64

Error during post. Argument Required: --machine. The other post processing files work fine. Generic Marlin exports correctly and generates a gcode file with commands.

2freecad: error: the following arguments are required: --machine
22:22:43  Running the Python command 'CAM_Post' failed:
Traceback (most recent call last):
  File "/tmp/.mount_FreeCAaDlNCK/usr/Mod/CAM/Path/Post/Command.py", line 216, in Activated
    post_data = postprocessor.export()
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_FreeCAaDlNCK/usr/Mod/CAM/Path/Post/scripts/snapmaker_post.py", line 836, in export
    (flag, args) = self.snapmaker_process_arguments()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_FreeCAaDlNCK/usr/Mod/CAM/Path/Post/scripts/snapmaker_post.py", line 482, in snapmaker_process_arguments
    (flag, args) = Path.Post.UtilsArguments.process_shared_arguments(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_FreeCAaDlNCK/usr/Mod/CAM/Path/Post/UtilsArguments.py", line 688, in process_shared_arguments
    args = parser.parse_args(shlex.split(argstring))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_FreeCAaDlNCK/usr/lib/python3.11/argparse.py", line 1874, in parse_args
    args, argv = self.parse_known_args(args, namespace)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_FreeCAaDlNCK/usr/lib/python3.11/argparse.py", line 1907, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/.mount_FreeCAaDlNCK/usr/lib/python3.11/argparse.py", line 2156, in _parse_known_args
    self.error(_('the following arguments are required: %s') %
  File "/tmp/.mount_FreeCAaDlNCK/usr/lib/python3.11/argparse.py", line 2640, in error
    self.exit(2, _('%(prog)s: error: %(message)s\n') % args)
  File "/tmp/.mount_FreeCAaDlNCK/usr/lib/python3.11/argparse.py", line 2627, in exit
    _sys.exit(status)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions