Closed gav-sturm closed 10 months ago
Hi folks, I was able to reproduce it and found that it seems to be that opencv's latest release 4.8.0.76 is incompatible with our version of numpy, so I have patched the requirements.txt to specify opencv-python<=4.8.0.74 which fixed the issue on the machine I was able to replicate this.
Sorry for the issue, I will look into more tightly constraining the versions so this doesn't happen in future. Let me know if the issue persists.
That seemed to remove the error... I am now left with the followup error which I am not is related to the previous issue. Again, running on WSL-Ubuntu.
(base) gavsturm@DESKTOP-0M27Q9T:~/infinigen/worldgen$ $Blender -noaudio --background --python generate.py -- --seed 0 --task render -g desert.gin simple.gin --input_folder outputs/helloworld/fine --output_folder outputs
Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35)
Read prefs: /home/gavsturm/.config/blender/3.3/config/userpref.blend
/run/user/1000/gvfs/ non-existent directory
[14:47:00.578] [root] [INFO] | Converted args.seed='0' to scene_seed=0, parsed as hexadecimal
[14:47:00.593] [root] [INFO] | infinigen version 1.0.3
[14:47:00.593] [root] [INFO] | CUDA_VISIBLE_DEVICES=None
[14:47:00.593] [times] [INFO] | [MAIN TOTAL]
[14:47:00.593] [times] [INFO] | [Reading input blendfile]
Error: Cannot read file '/home/gavsturm/infinigen/worldgen/outputs/helloworld/fine/scene.blend': No such file or directory
Error: Cannot read file '/home/gavsturm/infinigen/worldgen/outputs/helloworld/fine/scene.blend': No such file or directory
[14:47:00.593] [times] [INFO] | [Reading input blendfile] failed with <class 'RuntimeError'>
[14:47:00.593] [times] [INFO] | [MAIN TOTAL] failed with <class 'RuntimeError'>
Error: Python: Traceback (most recent call last):
File "/home/gavsturm/infinigen/worldgen/generate.py", line 441, in
In call to configurable 'execute_tasks' (<function execute_tasks at 0x7f428d066710>)
Blender quit
Are you able to check if that path it mentions exists? it may not have been successfully outputted by the previous command so check that one succeeded fully and printed that it saved the blend file
ah, missed that... running into some file path permission error.
(base) gavsturm@DESKTOP-0M27Q9T:~/infinigen/worldgen$ $Blender -noaudio --background --python generate.py -- --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs2/helloworld/coarse
Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35)
Read prefs: /home/gavsturm/.config/blender/3.3/config/userpref.blend
/run/user/1000/gvfs/ non-existent directory
[15:03:50.613] [root] [INFO] | Converted args.seed='0' to scene_seed=0, parsed as hexadecimal
[15:03:50.627] [root] [INFO] | infinigen version 1.0.3
[15:03:50.627] [root] [INFO] | CUDA_VISIBLE_DEVICES=None
[15:03:50.627] [times] [INFO] | [MAIN TOTAL]
[15:03:50.627] [root] [INFO] | Processing frames 1 through 1 inclusive
[15:03:50.664] [root] [WARNING] | Could not load addon "flip_fluids_addon"
[15:03:50.665] [times] [INFO] | [terrain]
[15:03:50.665] [times] [INFO] | [Create terrain]
[15:03:50.665] [root] [INFO] | Terrain using only on the fly on_the_fly_asset_folder=PosixPath('/home/gavsturm/infinigen/worldgen/outputs2/helloworld/coarse/assets')
[15:05:12.378] [times] [INFO] | [Create terrain] failed with <class 'OSError'>
[15:05:12.379] [times] [INFO] | [terrain] failed with <class 'OSError'>
[15:05:12.379] [times] [INFO] | [MAIN TOTAL] failed with <class 'OSError'>
Error: Python: Traceback (most recent call last):
File "/home/gavsturm/infinigen/worldgen/generate.py", line 441, in
Blender quit
If I use the default outputs folder i get a similar error...
(base) gavsturm@DESKTOP-0M27Q9T:~/infinigen/worldgen$ $Blender -noaudio --background --python generate.py -- --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/helloworld/coarse Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35) Read prefs: /home/gavsturm/.config/blender/3.3/config/userpref.blend /run/user/1000/gvfs/ non-existent directory [15:06:38.933] [root] [INFO] | Converted args.seed='0' to scene_seed=0, parsed as hexadecimal [15:06:38.947] [root] [INFO] | infinigen version 1.0.3 [15:06:38.947] [root] [INFO] | CUDA_VISIBLE_DEVICES=None Error: Python: Traceback (most recent call last): File "/home/gavsturm/infinigen/blender/3.3/python/lib/python3.10/pathlib.py", line 1173, in mkdir self._accessor.mkdir(self, mode) FileNotFoundError: [Errno 2] No such file or directory: '/home/gavsturm/infinigen/worldgen/outputs/helloworld/coarse'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/gavsturm/infinigen/worldgen/generate.py", line 441, in
Blender quit
Note: there are heightmap.exr tile_size.txt in the filepath: "infinigen/worldgen/outputs2/helloworld/coarse/assets/Mountain/0"
This almost certainly seems like some kind of OS setup / permissions error. are you able to touch
the path it mentions and create a file there? Also run ls -l <filepath>
on it to check it's permissions (must include write permission), and maybe sudo chmod -R u+rwx <filepath>
.
If the problem persists, please make a new github issue.
xarray's latest release 2023.10.0
is aslo incompatible with numpy.
To fix it, add xarray==2023.9.0
to requirements.txt
.
Describe the bug Terrain cv2 not subscriptable error when running first HelloWorld command. Using docker container on WSL Ubuntu
Steps to Reproduce
What version of the code were you using? Tell us the output of
git log -n 1
''' $ git 2023-08-13 ... '''What command did you run?
What are your output logs?
(If this is your first time running Infinigen) What are the full output logs of
install.sh
?Platform
Additional context Add any other context about the problem here.