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

blenderproc run failed when use --custom-blender-path #1039

Closed
arc130 opened this issue Jan 6, 2024 · 1 comment
Closed

blenderproc run failed when use --custom-blender-path #1039

arc130 opened this issue Jan 6, 2024 · 1 comment
Labels
first answer provided question Question, not yet a bug ;)

Comments

@arc130
Copy link

arc130 commented Jan 6, 2024

Describe the issue

I had downloaded the blender on browser. However, I got error with blenderproc run ./quickstart.py --custom-blender-path D:/blender-3.3.1-windows-x64/

Traceback (most recent call last):
  File "D:\ProgramData\miniconda3\envs\blenderproc\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "D:\ProgramData\miniconda3\envs\blenderproc\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\ProgramData\miniconda3\envs\blenderproc\Scripts\blenderproc.exe\__main__.py", line 7, in <module>
  File "D:\ProgramData\miniconda3\envs\blenderproc\lib\site-packages\blenderproc\command_line.py", line 149, in cli
    blender_run_path, major_version = InstallUtility.make_sure_blender_is_installed(custom_blender_path,
  File "D:\ProgramData\miniconda3\envs\blenderproc\lib\site-packages\blenderproc\python\utility\InstallUtility.py", line 239, in make_sure_blender_is_installed
    blender_run_path = os.path.join(blender_install_path, blender_version, "blender")
UnboundLocalError: local variable 'blender_version' referenced before assignment

I found the blender_version was defined in condition if custom_blender_path is None: at line 96, which indicated there is something wrong at platform "win32"

OS:
Windows 10

Minimal code example

No response

Files required to run the code

No response

Expected behavior

Successful run script

BlenderProc version

v2.6.2

@arc130 arc130 added the question Question, not yet a bug ;) label Jan 6, 2024
@cornerfarmer
Copy link
Member

Hey @arc130,

thanks for the issue report. This should already be fixed by #972 and will be part of the next version.
Until then, you could use the current blenderproc state on the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
first answer provided question Question, not yet a bug ;)
Projects
None yet
Development

No branches or pull requests

2 participants