Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Unable to Generate Robot Programs on Mac

#11
(07-14-2024, 10:09 PM)Albert Wrote: Great, thank you for letting us know!

I updated my macOS, and today a similar issue popped up.
I installed the recent version of RoboDK and downloaded and reinstalled Python.

Error code:

Failed to generate program "Sheet1" using the Post Processor "Fanuc_R30i"
Post processor path:/Users/ric/RoboDK/RoboDK.app/Contents/Posts/Fanuc_R30i.py
2024-09-24 11:29:28.864 Python[49606:517037] +[IMKClient subclass]: chose IMKClient_Legacy

Process output:
Using Python version: sys.version_info(major=3, minor=11, micro=9, releaselevel='final', serial=0)
RoboDK Post Processor: /Users/ric/RoboDK/RoboDK.app/Contents/Posts
Total instructions: 296
Done instruction: 50
Done instruction: 100
Done instruction: 150
Done instruction: 200
Done instruction: 250

Python Post Processor process exit code: 0


Attached Files Thumbnail(s)
Screenshot 2024-09-24 at 11.33.45 AM.png   
#12
The issue appeared first after I updated to macOS Sequoia. Everything worked under macOS Sonoma

What does the error code mean?
#13
I believe this issue is related to the preinstalled and default version of Python that comes with MacOS. I recommend you to change your Python interpreter here:
  1. Select RoboDK-Preferences (on MacOS), or Tools-Options (on Windows)
  2. Select the Python tab
  3. Choose the Python path of the Python version you installed
#14
(09-25-2024, 08:16 AM)Albert Wrote: I believe this issue is related to the preinstalled and default version of Python that comes with MacOS. I recommend you to change your Python interpreter here:
  1. Select RoboDK-Preferences (on MacOS), or Tools-Options (on Windows)
  2. Select the Python tab
  3. Choose the Python path of the Python version you installed

That doesn't make any difference, HOWEVER...

I just accidentaly clicked on: 'Generate Robot Program’ insted of what I usually do click: 'Generate Robot Program as…’ to select my USB drive to directly copy the programs there.

It generates the program and saves it to the desktop with the 'Generate Robot Program' option. Why does Python only displays the error when I want to select the specific path to save it to? Ideas?


Attached Files Thumbnail(s)
Screenshot 2024-09-24 at 2.24.33 PM.png   
#15
It is likely that this error is actually a warning output via the standard error channel and this is why RoboDK thinks there were errors generating the program. They may be harmless if the program was successfully generated.

In any case, you can ignore this window by changing this setting:
  1. Select Preferences-Options (on MacOS)
  2. Click on the Python tab
  3. Set Show Python output: Never
#16
(09-27-2024, 11:46 AM)Albert Wrote: It is likely that this error is actually a warning output via the standard error channel and this is why RoboDK thinks there were errors generating the program. They may be harmless if the program was successfully generated.

In any case, you can ignore this window by changing this setting:
  1. Select Preferences-Options (on MacOS)
  2. Click on the Python tab
  3. Set Show Python output: Never

Yes, the program is generated without issues when using the 'Generate Robot Program' option.
So nothing major, I'm able to generate and work with RoboDK.

Switching Python tab to 'Never show' didn't change the error.
#17
OK thank you for your feedback.

One way to know the full path to the Python interpreter is to start Python and then execute this code:
Code:
import sys
print(sys.executable)
# Example output: 'C:\\RoboDK\\Python37\\python.exe'
You can then enter the path to the Python interpreter in the Python tab in Tools-Options or Preferences-Options (MacOS).
#18
(09-28-2024, 04:29 PM)Albert Wrote: Hi Albert,
I've just installed RoboDK on a new MacBook Pro (Sequoia 15.5) and I get the same error message again when trying to generate a program:
"Python has not been configured properly. Set the path to the Python interpreter in Tools-Options-Python."

I've manually installed Python 3.11 and entered the exact same direction in the Python tab, but can't get it to work.
I've noticed when I click on the small file icon on the right of the path it gives an error message:

"The Application Can't be opened" (see screenshot)

On my old machine however clicking the folder icon does nothing.



 
OK thank you for your feedback.
One way to know the full path to the Python interpreter is to start Python and then execute this code:
Code:
import sys
print(sys.executable)
# Example output: 'C:\\RoboDK\\Python37\\python.exe'
You can then enter the path to the Python interpreter in the Python tab in Tools-Options or Preferences-Options (MacOS).


Attached Files Thumbnail(s)
Error application open.png   
#19
Can you try to install Python separately (the latest version should work), and make sure to check the option to have Python available in the Path? (if you see this option)

You can then simply enter python or python3 as the Python interpreter.
#20
(05-25-2025, 09:38 PM)Albert Wrote: Can you try to install Python separately (the latest version should work), and make sure to check the option to have Python available in the Path? (if you see this option)

You can then simply enter python or python3 as the Python interpreter.

Installed the latest version of Python and tried all different paths for the interpreter:

Still the same error.
  




Users browsing this thread:
1 Guest(s)