Setting up Blender Python on Ubuntu - No such file or directory for Blender executable
I used Victor's awesome youtube video "5 Steps to setup VSCode for Blender Python (on Linux)" to setup Blender Python on my Ubuntu (Pop!_OS) laptop. All was good until I got to verifying the VSCode command "Blender: Start" worked. No joy, I get "No such file or directory" for my Blender executable. Me and my AI Buddy spent hours on this problem with no joy. He suggests... 1. Completely reinstall VSCode # Did this twice already 2. Try a different Linux distribution # Not sure how I can do this easily 3. Report issue to the extension developers Has anyone here experienced this type of problem? Thanks for putting up with this long post; but here are some details that might be helpful. The solution probably is staring me in the face but I'm blind at this point. 8^) I ran my_blender_start.sh in an external to VSCode terminal and it worked, both with relative and absolute references. Blender started as expected. OK, so I can start Blender from a terminal! gr8 #!/bin/bash export PATH="/usr/bin:$PATH" /usr/bin/flatpak run --filesystem=host org.blender.Blender -d "$@" Also, In a terminal, I can successfully open blender like this: (base) omartinj@digital-arts:/usr/bin$ /usr/bin/flatpak run --filesystem=host org.blender.Blender -d Switching to fully guarded memory allocator. Blender 4.3.0 Build: 2024-11-19 10:50:58 Linux Release argv[0] = ./blender argv[1] = -d Saved session recovery to "/tmp/quit.blend" Blender quit (base) omartinj@digital-arts:/usr/bin$ When I run an absolute reference to my_blender_start.sh in VSCode Terminal it cannot find the Blender executable. 8^( sh-5.2$ /home/omartinj/Blender_Projects/my_blender_start.sh /home/omartinj/Blender_Projects/my_blender_start.sh: line 3: /usr/bin/flatpak: No such file or directory sh-5.2$ echo $PATH /usr/bin:/app/bin:/app/bin:/app/bin:/usr/bin:/home/omartinj/.var/app/com.visualstudio.code/data/node_modules/bin sh-5.2$ When I run "Blender: Start" in VSCode it fails with...