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

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

Open
jh369973 opened this issue Jun 20, 2023 · 5 comments

Comments

@jh369973
Copy link

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

  • What are your output logs?
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 <module>
    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 <module>
    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 <module>
    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 <module>
    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
Copy link

tms-gvd commented Jun 21, 2023

Did you try to install tqdm ?

@pvl-bot
Copy link
Collaborator

pvl-bot commented Jun 21, 2023

Please retry installation and post the full install.sh logs

@cswiger
Copy link

cswiger commented Jun 23, 2023

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
Copy link
Collaborator

'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
Copy link

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

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

6 participants