DLR-RM / BlenderProc

A procedural Blender pipeline for photorealistic training image generation
GNU General Public License v3.0
2.73k stars 444 forks source link

RuntimeError: The given run script does not exist: quickstart.py #927

Closed EvdoTheo closed 1 year ago

EvdoTheo commented 1 year ago

Describe the issue

I'm trying to run the debug command as the tutorial suggests blenderproc debug quickstart.py, but I'm getting this error message Warning: Changed install path from /home_local/evdokimos... to /home/evdokimos..., there is no /home_local/ on this machine. Using blender in /home/evdokimos/blender/blender-3.3.1-linux-x64 Traceback (most recent call last): File "/home/evdokimos/.local/bin/blenderproc", line 11, in <module> load_entry_point('blenderproc', 'console_scripts', 'blenderproc')() File "/home/evdokimos/Desktop/OPTIMAI/3D_pose_estimation/BlenderProc/blenderproc/command_line.py", line 165, in cli SetupUtility.check_if_setup_utilities_are_at_the_top(path_src_run) File "/home/evdokimos/Desktop/OPTIMAI/3D_pose_estimation/BlenderProc/blenderproc/python/utility/SetupUtility.py", line 413, in check_if_setup_utilities_are_at_the_top raise RuntimeError(f"The given run script does not exist: {path_to_run_file}") RuntimeError: The given run script does not exist: quickstart.py

Do you know how I can solve this issue? I really appreciate any help you can provide.

Minimal code example

No response

Files required to run the code

No response

Expected behavior

Screenshot 2023-06-14 18:31:55

BlenderProc version

blenderproc 2.5.0

E-Mans-Application commented 1 year ago

I have the same problem...

Replacing path_src_run = args.file with path_src_run = os.path.join(repo_root_directory, "blenderproc", "scripts", args.file) in "command_line.py" seems to be a temporary fix.

but then, I have the error "The given script does not have a blenderproc import at the top!", because the script has a header comment before the import.

EvdoTheo commented 1 year ago

Something is wrong with the paths, therefore, I just got into the folder that contains the quickstart.py file and ran it. it worked fine

cornerfarmer commented 1 year ago

If you run blenderproc debug quickstart.py then the quickstart.py script of course needs to exist. So just create a file in your working directory and paste in the code from the main README.