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

Why I can not launch Blender UI ? #257

Open
SearAbbas opened this issue Jun 18, 2024 · 6 comments
Open

Why I can not launch Blender UI ? #257

SearAbbas opened this issue Jun 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@SearAbbas
Copy link

Describe the bug

I installed infinigen as a Blender Python script, Normal install, and how can i launch UI? I executed python -m infinigen.launch_blender and faild,it will automatically exit.

Steps to Reproduce

What version of the code were you using?

Tell us the commit & commit hash from git log
infinigen-1.3.4

What command did you run?

python -m infinigen.launch_blender

What are your FULL output logs?

The error is as follows:
Read prefs: "/home/cy/.config/blender/3.6/config/userpref.blend"
/home/cy/Code/Python/infinigen/blender/3.6/python/lib/python3.10/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/cy/Code/Python/infinigen/blender/3.6/python/lib/python3.10/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float64'> type is zero.
return self._float_to_str(self.smallest_subnormal)
/home/cy/Code/Python/infinigen/blender/3.6/python/lib/python3.10/site-packages/numpy/core/getlimits.py:500: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
setattr(self, word, getattr(machar, word).flat[0])
/home/cy/Code/Python/infinigen/blender/3.6/python/lib/python3.10/site-packages/numpy/core/getlimits.py:89: UserWarning: The value of the smallest subnormal for <class 'numpy.float32'> type is zero.
return self._float_to_str(self.smallest_subnormal)
已放弃 (核心已转储)

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

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

Platform

  • OS & OS Version: Ubuntu24.04
  • GPU (?) : NVIDIA GeForce RTX 3080
  • GPU Driver Version (?) :Driver Version: Version 551.23
  • RAM (GB):32

Additional context

image

@SearAbbas SearAbbas added the bug Something isn't working label Jun 18, 2024
@araistrick
Copy link
Contributor

Hello,

The warnings you show are all nonfatal (we see these every startup, I believe they are from the landlab package not our own code).

Your logs.txt also has no errors.

Can you first check if running the blender executable directly works for you ? IE execute ./blender/blender from the root of the repo if you are on linux. You can also check if manually installing and running blender works for you. Either way I suspect it is likely a platform / driver issue, but by checking if non-infinigen blender works we can narrow this down

@SearAbbas
Copy link
Author

SearAbbas commented Jun 19, 2024

Hello,

Thank you!

Sorry, I'm not familiar with blender-python script.

I tried it.I can run the blender executable directly. And I try some other blender-python script from github. Some of them work, some of them don't. Such as
phyllotaxis_flower.log is ok, but
fisher_iris_visualization.log
is not.

@SearAbbas
Copy link
Author

Hello,

Thank you!

Sorry, I'm not familiar with blender-python script.

I tried it.I can run the blender executable directly. And I try some other blender-python script from github. Some of them work, some of them don't. Such as phyllotaxis_flower.log is ok, but fisher_iris_visualization.log is not.

I find fisher_iris_visualization.log where don't work: from sklearn import datasets
But I don't know how to fix it.I don't know its relationship with Blender UI either。

@SearAbbas
Copy link
Author

Hello,
Thank you!
Sorry, I'm not familiar with blender-python script.
I tried it.I can run the blender executable directly. And I try some other blender-python script from github. Some of them work, some of them don't. Such as phyllotaxis_flower.log is ok, but fisher_iris_visualization.log is not.

I find fisher_iris_visualization.log where don't work: from sklearn import datasets But I don't know how to fix it.I don't know its relationship with Blender UI either。

I can solve the above problem using Blender-4.1. I don't know if all the problems are caused by issues with the Blender version. If I want to try using Blender-4.1, how should I build the code for infinigen?

@araistrick
Copy link
Contributor

Running Infinigen code inside blender4.1 does not work - updating is quite hard (#252) since the blender API changes significantly each time. It may come in a future update but is not possible currently.

However, you can use blender4.1 to open files generated by Infinigen provided you dont run any code via the commandline. You could also probably do this with a non-infinigen copy of blender3.6 - our scripts/install/interactive_blender.sh both downloads 3.6 and also installs infinigen into it, but this is not actually needed just to open the file and view it.

Could you edit scripts/install/interactive_blender.sh so its last line (the pip install) has -vv . > logs.txt 2>&1? Then send the logs.txt from this install.

sidenot: I need to make the docs clearer on what logs to send if interactive_blender.sh sends, the default pip logs arent relevant as it is an entirely different python install.

@SearAbbas
Copy link
Author

SearAbbas commented Jun 26, 2024

Running Infinigen code inside blender4.1 does not work - updating is quite hard (#252) since the blender API changes significantly each time. It may come in a future update but is not possible currently.

However, you can use blender4.1 to open files generated by Infinigen provided you dont run any code via the commandline. You could also probably do this with a non-infinigen copy of blender3.6 - our scripts/install/interactive_blender.sh both downloads 3.6 and also installs infinigen into it, but this is not actually needed just to open the file and view it.

Could you edit scripts/install/interactive_blender.sh so its last line (the pip install) has -vv . > logs.txt 2>&1? Then send the logs.txt from this install.

sidenot: I need to make the docs clearer on what logs to send if interactive_blender.sh sends, the default pip logs arent relevant as it is an entirely different python install.

Thanks, I use docker with no-gpu is ok, but using CUDA's Docker still has the same issue.
And, I found that the problem lies in the fact that the 'from infiniten_examples import generate-feature' in blendscript_impord_infiniten.py can cause the aforementioned issues.
I started scripts/install/interactive_blender.sh from scratch with a new conda environment.
logs.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants