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

Problems running the depth demo #55

Open
Ramseyous0109 opened this issue Sep 5, 2024 · 1 comment
Open

Problems running the depth demo #55

Ramseyous0109 opened this issue Sep 5, 2024 · 1 comment

Comments

@Ramseyous0109
Copy link

Hi, thanks for this brilliant toolkit. I came across a problem running the demo on Blender 3.1.0, the logs are:

  File "D:\tools\blender-3.1.0-windows-x64\blender-3.1.0-windows-x64\3.1\python\lib\site-packages\bpycv\render_utils.py", line 123, in render_data
    render_result["exr"] = parser_exr(exr_path)
  File "D:\tools\blender-3.1.0-windows-x64\blender-3.1.0-windows-x64\3.1\python\lib\site-packages\bpycv\exr_image_parser.py", line 238, in parser_exr
    exr = ExrImage(exr_path)
  File "D:\tools\blender-3.1.0-windows-x64\blender-3.1.0-windows-x64\3.1\python\lib\site-packages\bpycv\exr_image_parser.py", line 99, in __init__
    self.reader = ExrReader(fp)
  File "D:\tools\blender-3.1.0-windows-x64\blender-3.1.0-windows-x64\3.1\python\lib\site-packages\minexr\reader.py", line 39, in __init__
    self._read_header()
  File "D:\tools\blender-3.1.0-windows-x64\blender-3.1.0-windows-x64\3.1\python\lib\site-packages\bpycv\exr_image_parser.py", line 87, in _read_header
    self.first_offset = self._read_first_offset(buf)
  File "D:\tools\blender-3.1.0-windows-x64\blender-3.1.0-windows-x64\3.1\python\lib\site-packages\minexr\reader.py", line 188, in _read_first_offset
    return struct.unpack('<Q', buf.read(8))[0]
AssertionError: Failed to read offset.

It seems there's something wrong with the method bpycv.render_data() or the minexr package. Looking forward to your reply!

@Ramseyous0109
Copy link
Author

The demo goes fine with Blender 3.0.0. So I think it's a blender version problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant