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

Unable to generate helloworld scene by installing Infinigen as a Blender Python script #343

Open
ngchikit opened this issue Oct 7, 2024 · 2 comments
Labels
question Further information is requested

Comments

@ngchikit
Copy link

ngchikit commented Oct 7, 2024

Steps to Reproduce

If this relates to running the codebase, please provide steps to reproduce:

When I running this command:

Generate a scene layout

python -m infinigen.launch_blender -m infinigen_examples.generate_nature -- --seed 0 --task coarse -g desert.gin simple.gin --output_folder outputs/hello_world/coarse

What version of the code were you using?

Tell us the commit & commit hash from git log

commit 85db7b5 (HEAD -> main, origin/main, origin/HEAD)

Author: Zeyu Ma [email protected]
Date: Mon Sep 23 16:24:55 2024 -0400

add config to disable landlab

commit f033891
Author: Alexander Raistrick [email protected]
Date: Sun Sep 22 12:23:48 2024 -0400

Fix misleading CPU-only warning message (#325), remove screen from example commands

commit b3ab846
Author: Alexander Raistrick [email protected]
Date: Sat Sep 21 17:04:20 2024 -0400

Add more specific error message for trycatch landlab ImportError

commit d55e297
Merge: a231df3 0cf999c
Author: pvl-bot [email protected]

What command did you run?

What are your FULL output logs?

Provide the FULL output logs from your command as a txt file.

If this is your first time running Infinigen, what are the full install logs?**

Run pip install -v -e . > logs.txt 2>&1 and send logs.txt as an attachment.

Platform

  • OS & OS Version: Ubuntu 24.04 LTS
  • GPU (?) : NVIDIA GeForce RTX 4070, 8GB
  • GPU Driver Version (?) : OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.1
  • RAM (GB): 15Gi

Additional context

Add any other context about the problem here.

[10:18:05.140] [logging] [INFO] | [MAIN TOTAL] failed with <class 'OSError'>
Error: Python: Traceback (most recent call last):
File "/home/kit/Documents/infinigen/infinigen_examples/generate_nature.py", line 1025, in
main(args)
File "/home/kit/Documents/infinigen/infinigen_examples/generate_nature.py", line 963, in main
execute_tasks.main(
File "/home/kit/Documents/infinigen/infinigen/core/execute_tasks.py", line 360, in main
execute_tasks(
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/config.py", line 1605, in gin_wrapper
utils.augment_exception_message_and_reraise(e, err_str)
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/utils.py", line 41, in augment_exception_message_and_reraise
raise proxy.with_traceback(exception.traceback) from None
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/config.py", line 1582, in gin_wrapper
return fn(*new_args, **new_kwargs)
File "/home/kit/Documents/infinigen/infinigen/core/execute_tasks.py", line 243, in execute_tasks
info = compose_scene_func(output_folder, scene_seed)
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/config.py", line 1605, in gin_wrapper
utils.augment_exception_message_and_reraise(e, err_str)
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/utils.py", line 41, in augment_exception_message_and_reraise
raise proxy.with_traceback(exception.traceback) from None
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/config.py", line 1582, in gin_wrapper
return fn(*new_args, **new_kwargs)
File "/home/kit/Documents/infinigen/infinigen_examples/generate_nature.py", line 110, in compose_nature
terrain, terrain_mesh = p.run_stage(
File "/home/kit/Documents/infinigen/infinigen/core/util/pipeline.py", line 89, in run_stage
ret = fn(*args, **kwargs)
File "/home/kit/Documents/infinigen/infinigen_examples/generate_nature.py", line 100, in add_coarse_terrain
terrain = Terrain(
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/config.py", line 1605, in gin_wrapper
utils.augment_exception_message_and_reraise(e, err_str)
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/utils.py", line 41, in augment_exception_message_and_reraise
raise proxy.with_traceback(exception.traceback) from None
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/site-packages/gin/config.py", line 1582, in gin_wrapper
return fn(*new_args, **new_kwargs)
File "/home/kit/Documents/infinigen/infinigen/terrain/core.py", line 128, in init
dll = load_cdll(
File "/home/kit/Documents/infinigen/infinigen/terrain/utils/ctype_util.py", line 35, in load_cdll
return CDLL(root / path, mode=RTLD_LOCAL)
File "/home/kit/Documents/infinigen/blender/3.6/python/lib/python3.10/ctypes/init.py", line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/kit/Documents/infinigen/infinigen/terrain/lib/cpu/elements/waterbody.so: cannot open shared object file: No such file or directory
In call to configurable 'Terrain' (<class 'infinigen.terrain.core.Terrain'>)
In call to configurable 'compose_nature' (<function compose_nature at 0x7cd9ff58bac0>)
In call to configurable 'execute_tasks' (<function execute_tasks at 0x7cd98eb10790>)

Blender quit

@ngchikit ngchikit added the question Further information is requested label Oct 7, 2024
@araistrick
Copy link
Contributor

araistrick commented Oct 8, 2024

My best guess is that terrain isnt installed.

What command did you run when doing the blender installation? IE did you run INFINIGEN_MINIMAL_INSTALL=True bash scripts/install/interactive_blender.sh or just bash scripts/install/interactive_blender.sh? If its the former then this wont install terrain and you cant run hello world, you need to do the latter which is the non-minimal version.

If running the second one still doesnt fix this, please add -vv to the pip install command in interactive_blender.sh then attach the logs from running it with these flags.

@ngchikit
Copy link
Author

ngchikit commented Oct 9, 2024

Thanks for prompt response. I am trying to install blender. It dose have error to compile SoilMachine.o
logs.txt
I attached a log file.

I tried to compile it separately.
(infinigen) kit@kit:~/Documents/infinigen$ g++ -c lib/cpu/soil_machine/SoilMachine.cpp -o lib/cpu/soil_machine/SoilMachine.o
cc1plus: fatal error: lib/cpu/soil_machine/SoilMachine.cpp: No such file or directory
compilation terminated.

Thank you~

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

No branches or pull requests

2 participants