princeton-vl / infinigen

Infinite Photorealistic Worlds using Procedural Generation
https://infinigen.org
BSD 3-Clause "New" or "Revised" License
5.33k stars 460 forks source link

error when run command $BLENDER --noaudio --background --python generate.py ... #29

Open jh369973 opened 1 year ago

jh369973 commented 1 year ago

Describe the bug when I run the command $BLENDER -noaudio --background --python generate.py -- --seed 0 --task coarse -g desert simple --output_folder outputs/helloworld/coarse python raise an error

Blender quit Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35) Read prefs: /home/kim/.config/blender/3.3/config/userpref.blend Error: Python: Traceback (most recent call last): File "/home/kim/infinigen/worldgen/generate.py", line 22, in from tqdm import tqdm ModuleNotFoundError: No module named 'tqdm'

Blender quit Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35) Read prefs: /home/kim/.config/blender/3.3/config/userpref.blend Error: Python: Traceback (most recent call last): File "/home/kim/infinigen/worldgen/generate.py", line 22, in from tqdm import tqdm ModuleNotFoundError: No module named 'tqdm'

Blender quit Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35) Read prefs: /home/kim/.config/blender/3.3/config/userpref.blend Error: Python: Traceback (most recent call last): File "/home/kim/infinigen/worldgen/generate.py", line 22, in from tqdm import tqdm ModuleNotFoundError: No module named 'tqdm'

Blender quit



I find that the python version of conda is 3.10.11, while blender use python3.10.2 to run the file. I don't know if it is the reason, I followed every step in the readme strictly.

**Platform**
- OS & OS Version: Ubuntu 22.04.2 LTS
tms-gvd commented 1 year ago

Did you try to install tqdm ?

pvl-bot commented 1 year ago

Please retry installation and post the full install.sh logs

cswiger commented 1 year ago

I am having same issue - here is my full install.sh log
https://gist.github.com/cswiger/68ff98d9c339bdda246fa65737cb853e

checked after first build and found source/cpu/soil_machine/layermap.h:37:10: fatal error: glm/glm.hpp: No such file or directory

so did $ sudo apt install libglm-dev

but still getting File "/home/chuck/src/infinigen/worldgen/generate.py", line 22, in from tqdm import tqdm ModuleNotFoundError: No module named 'tqdm'

I used some workarounds at the bottom of the gist to get the worldgen running - just not using GPU perhaps due to during build: WARNING: You are using pip version 21.2.4; however, version 23.1.2 is available. You should consider upgrading via the '/home/chuck/src/infinigen/blender/3.3/python/bin/python3.10 -m pip install --upgrade pip' command. skipping cuda <-- compiled lib/cpu/utils/FastNoiseLite.so

araistrick commented 1 year ago

'skipping cuda' just means you will not be able to use the cuda_terrain config, rendering on the GPU will still work once the CPU work of generating the scene is complete.

RE tqdm, check in the logs if either of the two pip install commands is failing, we pip install the packages into both conda's python and blender's python to it can be a little confusing

andzejsp commented 1 year ago

im having same thing after running

$BLENDER -noaudio --background --python generate.py -- --seed 0 --task coarse -g desert simple --output_folder outputs/helloworld/coarse
(infinigen) sd2@sd2:/mnt/5a88e793-90e0-4a46-a01b-cd29f52170cb/infinigen$ cd worldgen/
(infinigen) sd2@sd2:/mnt/5a88e793-90e0-4a46-a01b-cd29f52170cb/infinigen/worldgen$ $BLENDER -noaudio --background --python generate.py -- --seed 0 --task coarse -g desert simple --output_folder outputs/helloworld/coarse
Blender 3.3.1 (hash b292cfe5a936 built 2022-10-05 00:14:35)
Error: Python: Traceback (most recent call last):
  File "/mnt/5a88e793-90e0-4a46-a01b-cd29f52170cb/infinigen/worldgen/generate.py", line 22, in <module>
    from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'

Blender quit
(infinigen) sd2@sd2:/mnt/5a88e793-90e0-4a46-a01b-cd29f52170cb/infinigen/worldgen$ pip install tqdm
Requirement already satisfied: tqdm in /home/sd2/.local/lib/python3.10/site-packages (4.65.0)
(infinigen) sd2@sd2:/mnt/5a88e793-90e0-4a46-a01b-cd29f52170cb/infinigen/worldgen$ pip3 install tqdm
Requirement already satisfied: tqdm in /home/sd2/.local/lib/python3.10/site-packages (4.65.0)
(infinigen) sd2@sd2:/mnt/5a88e793-90e0-4a46-a01b-cd29f52170cb/infinigen/worldgen$ 

Any help would be appreciated