Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAC OS Post-Processing Permission Denied #8010

Open
3 tasks done
EnjiMD opened this issue Jan 11, 2025 · 4 comments
Open
3 tasks done

MAC OS Post-Processing Permission Denied #8010

EnjiMD opened this issue Jan 11, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@EnjiMD
Copy link

EnjiMD commented Jan 11, 2025

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.2.0

Operating System (OS)

macOS

OS Version

Ventura 13.7.1

Additional system information

Processor: 3.4 GHz Quad-Core Intel Core i5
Graphics: Radeon Pro 570 4GB
Memory: 64GB 2400 MHz DDR4

Printer

Custom Profile - Craftbot FLOW IDEX

How to reproduce

  1. Go to 'Others' tab
  2. Scroll down to 'Post-processing Scripts'
  3. Enter file path to Python script, i.e. /Applications/Python
    Script.py;
  4. Slice file
  5. Export to G-code
    mac-os-post-processing-woes-v0-yitdfkqa8lbe1
    mac-os-post-processing-woes-v0-grubu6qa8lbe1

Actual results

'Zsh:permission denied' dialog box with failure of G-code export

Expected results

Script-execution with export of G-code

Project file & Debug log uploads

[error] 2025-01-08 09:36:03.302871[Thread 0x00007ff856589940]:3dx drivers module loading error: dlopen(/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient, 0x0005): tried: '/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file), '/Library/Frameworks/3DconnexionClient.framework/3DconnexionClient' (no such file)
[error] 2025-01-08 09:36:03.928859[Thread 0x000070000473c000]:Unable to open the file/Users/cp/Desktop/XXXXXXXX.stl
[warning] 2025-01-08 09:36:05.693351[Thread 0x00007ff856589940]:get_version, get_version not supported,return 00.00.00.00!
[error] 2025-01-08 09:36:11.214530[Thread 0x00007000051d1000]:Invalid T command (T1).
[error] 2025-01-08 09:36:17.797844[Thread 0x00007000051d1000]:Post-processing script /Applications/Python/ on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/Python/
[error] 2025-01-08 09:36:17.798553[Thread 0x00007000051d1000]:call_process:got other exception
[warning] 2025-01-08 09:37:39.342127[Thread 0x00007ff856589940]:reslice: process_completed_with_error, return directly
[warning] 2025-01-08 09:37:53.312904[Thread 0x00007ff856589940]:reslice: process_completed_with_error, return directly
[error] 2025-01-08 09:37:57.853817[Thread 0x00007000051d1000]:Post-processing script /Applications/Python/ on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/Python/
[error] 2025-01-08 09:37:57.854576[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:41:54.112239[Thread 0x00007000051d1000]:Post-processing script /Applications/Python/ on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/Python/
[error] 2025-01-08 09:41:54.112954[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:44:33.215488[Thread 0x00007000051d1000]:Invalid T command (T1).
[error] 2025-01-08 09:44:37.831844[Thread 0x00007000051d1000]:Post-processing script /Applications/OrcaSlicer.app/Contents/ on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/OrcaSlicer.app/Contents/
[error] 2025-01-08 09:44:37.832499[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:44:51.831272[Thread 0x00007000051d1000]:Invalid T command (T1).
[error] 2025-01-08 09:44:57.525563[Thread 0x00007000051d1000]:Post-processing script /Applications/OrcaSlicer.app/Contents on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/OrcaSlicer.app/Contents
[error] 2025-01-08 09:44:57.526218[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:45:04.695372[Thread 0x00007000051d1000]:Invalid T command (T1).
[error] 2025-01-08 09:45:08.872221[Thread 0x00007000051d1000]:Post-processing script /Applications/OrcaSlicer.app/Contents\ on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 127
Output:
zsh:1: no such file or directory: /Applications/OrcaSlicer.app/Contents /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp
[error] 2025-01-08 09:45:08.872973[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:45:25.277327[Thread 0x00007000051d1000]:Invalid T command (T1).
[error] 2025-01-08 09:45:29.827223[Thread 0x00007000051d1000]:Post-processing script /Applications/OrcaSlicer.app/Contents on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/OrcaSlicer.app/Contents
[error] 2025-01-08 09:45:29.827919[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:46:46.962993[Thread 0x00007000051d1000]:Invalid T command (T1).
[error] 2025-01-08 09:46:52.358096[Thread 0x00007000051d1000]:Post-processing script /Applications/OrcaSlicer.app/Contents on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/OrcaSlicer.app/Contents
[error] 2025-01-08 09:46:52.358834[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:49:53.057822[Thread 0x00007000051d1000]:Post-processing script /Applications/OrcaSlicer.app/Contents on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/OrcaSlicer.app/Contents
[error] 2025-01-08 09:49:53.058552[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:50:29.626148[Thread 0x00007000051d1000]:Post-processing script /Applications/OrcaSlicer.app/Contents on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Applications/OrcaSlicer.app/Contents
[error] 2025-01-08 09:50:29.626965[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:56:13.064053[Thread 0x00007000051d1000]:Invalid T command (T1).
[error] 2025-01-08 09:56:17.491765[Thread 0x00007000051d1000]:Post-processing script /Users/cp on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.
Error code: 126
Output:
zsh:1: permission denied: /Users/cp
[error] 2025-01-08 09:56:17.492423[Thread 0x00007000051d1000]:call_process:got other exception
[error] 2025-01-08 09:58:05.530874[Thread 0x00007000051d1000]:Invalid T command (T1).
[error] 2025-01-08 09:58:09.991911[Thread 0x00007000051d1000]:Post-processing script /Users/cp on file /var/folders/d0/6nsdfl2511j1yv7d7ns2xmwm0000gn/T/orcaslicer_model/Wed_Jan_08/09_36_06#9483#57/Metadata/.9483.0.gcode.pp failed.

Checklist of files to include

  • Log file
  • Project file

Anything else?

See above uploads.

@EnjiMD EnjiMD added the bug Something isn't working label Jan 11, 2025
@buzzhuzz
Copy link
Contributor

Does your post processing script have an executable bit enabled?

@EnjiMD
Copy link
Author

EnjiMD commented Jan 12, 2025

Does your post processing script have an executable bit enabled?

I previously had a path set to open the Python Launcher .app. Since it's a Mac, it seems to handle the executables differently from Windows, i.e. the standard .exe. Ultimately, the .app path was a dead end since the Python Launcher is basically just an options menu but then the pathing for Mac is also less straight forward in general, so it could be a screw up in how I wrote the command to activate the script.

@buzzhuzz
Copy link
Contributor

buzzhuzz commented Jan 12, 2025

For Mac it works similar to the Linux one, rather than Windows.

OrcaSlicer runs post processing scripts using default shell interpreter. Shel interpreter reads first line of the script (shebang line) and tries to run interpreter for that script.

Your error may be either:

  1. Executable bit missing for the script
  2. Interpreter specified in shebang line either not found or cannot be executed, for example due to permissions reason.

You may find hints which might help you troubleshoot issue: https://discussions.apple.com/thread/254067051

@EnjiMD
Copy link
Author

EnjiMD commented Jan 12, 2025

For Mac it works similar to the Linux one, rather than Windows.

OrcaSlicer runs post processing scripts using default shell interpreter. Shel interpreter reads first line of the script (shebang line) and tries to run interpreter for that script.

Your error may be either:

1. Executable bit missing for the script

2. Interpreter specified in shebang line either not found or cannot be executed, for example due to permissions reason.

You may find hints which might help you troubleshoot issue: https://discussions.apple.com/thread/254067051

Yeah. I have previously chmod'd all folders in the path, gave OrcaSlicer admin permission and some other things. None of those worked. That link you posted is an excellent explanation. I'll give it a shot and report back with my findings. Thank you, @buzzhuzz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants