arcsikex / cascadeur_bridge

This Blender addon is aimed to help you integrate Cascadeur into your workflow.
GNU General Public License v3.0
275 stars 12 forks source link

Issue with getting the addon to run on a mac #18

Open Apxuenuckona opened 1 year ago

Apxuenuckona commented 1 year ago

Hey, after following your instructions to the dot : extracting the addon zip folder to copy the externals folder and paste it into cascadeur's scripts/python/commands to get the cascadeur executable path to be /Applications/Cascadeur.app/Contents/MacOS/resources/scripts/python/commands/externals/temp_exporter.py

but even after multiple reinstalls of both the cascadeur app (2023.1.1), the cascadeur addon for blender (0.7) and of blender itself (3.5) i still get the same error message Python: Traceback (most recent call last): File "/Users//Library/Application Support/Blender/3.5/scripts/addons/cascadeur_bridge/operators/csc_ops.py", line 39, in execute commands_path = os.path.join(ch.commands_path, "externals") File "/Users//Library/Application Support/Blender/3.5/scripts/addons/cascadeur_bridge/utils/csc_handling.py", line 41, in commands_path with open(commands_config, "r") as f: FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Cascadeur.app/Contents/MacOS/resources/scripts/python/commands/externals/resources/settings.ini'

Edit : I even found the "settings.ini" file which is originally in /Applications/Cascadeur.app/Contents/MacOS/resources/settings.ini so i tried with that executable path as well as copying it in /Applications/Cascadeur.app/Contents/MacOS/resources/scripts/python/commands/externals/resources/settings.ini , to no avail ... i still get the same error message

I always launch blender as admin through terminal and am really unsure what i'm doing wrong. The context menu of the addon does appear as soon as install the addon (even before inputing the executable path

Capture d’écran 2023-07-04 à 08 25 41

but i get an error whatever i chose :

Python: Traceback (most recent call last): File "/Users//Library/Application Support/Blender/3.5/scripts/addons/cascadeur_bridge/operators/csc_ops.py", line 21, in execute CascadeurHandler().start_cascadeur() File "/Users///Library/Application Support/Blender/3.5/scripts/addons/cascadeur_bridge/utils/csc_handling.py", line 55, in start_cascadeur subprocess.Popen([csc_path]) File "/Applications/3.5.app/Contents/Resources/3.5/python/lib/python3.10/subprocess.py", line 971, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/Applications/3.5.app/Contents/Resources/3.5/python/lib/python3.10/subprocess.py", line 1847, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: '/Applications/Cascadeur.app/Contents/MacOS/resources/scripts/python/commands/externals/temp_exporter.py'

And i double checked having admin rights on the user as well as launching the app as admin through terminal (i.e. sudo /Applications/3.5.app/Contents/MacOS/Blender)

*Edit : Upon restarting Cascadeur i got an error message stating the app was corrupted and prompting me to delete it. So i did and the only way to have the correct folder in the installation directory (i.e. /Applications/Cascadeur.app/Contents/MacOS/resources/scripts/python/commands/externals/temp_exporter.py ) without crashing Cascadeur, was to install it, launch it, copy the folder and then restart Cascadeur. ( now i see the external commands drop-down menu in Cascadeur, but i get another error )

Capture d’écran 2023-07-04 à 09 03 49

[Nothing has changed on Blender's side]

Hope you can help and thanks in advance !

arcsikex commented 11 months ago

Hi Sorry for the late response.

  1. The addon shouldn't look for the ini file at 😢 '/Applications/Cascadeur.app/Contents/MacOS/resources/scripts/python/commands/externals/resources/settings.ini' Did you set the executable path to /Applications/Cascadeur.app?
  2. I'm not sure about the Permission error. Do you have execution rights in the subfolders of Cascadeur.app?
  3. Did the last issue occur when trying to start the commands from Cascadeur?
borsaro commented 10 months ago

I am facing a permission denied too, Errno 13, issue on every button I press in the add-on Mac also the Start command: https://app.screencast.com/ymjIzaFsu8qHD executable path is to /Applications/Cascadeur.app thanks