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

Does this work in windows? #58

Open
steven850 opened this issue Sep 1, 2020 · 13 comments
Open

Does this work in windows? #58

steven850 opened this issue Sep 1, 2020 · 13 comments

Comments

@steven850
Copy link

Hi, this elements work with blender in windows or is this linux only?

@bestman8
Copy link

bestman8 commented Sep 3, 2020

it works for me and i have windows
it isn't easy to install

@steven850
Copy link
Author

Well I followed the steps in the readme which where useless to be honest. Manually installed everything, but when I go to enable the addon in blender, blender crashes to desktop. Using 2.83.5 LTS

@archibate
Copy link
Contributor

Could you run blender in console (cmd) and attach the output here? Related issue: #54 (comment).

@steven850
Copy link
Author

Settings loaded
The custom limb directory seems invalid: C:\Custom Limbs/
BlendLuxCore 2.4 registered (with pyluxcore 2.4)
Load Handler:
Updating device list
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\_distutils_hack\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\astor\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\colorama\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\dill\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\easy_install.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\numpy\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\pkg_resources\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\pybind11\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\setuptools\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\sourceinspect\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\taichi\init.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Users\TR\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\addon.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Users\TR\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\install_blender_addon.py'
fake_module: addon missing 'bl_info' gives bad performance!: 'C:\Users\TR\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\setup.py'
[Taichi] mode=release
Fatal Python error: take_gil: NULL tstate

C:\Program Files\Blender Foundation\Blender 2.83>

@archibate
Copy link
Contributor

C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\taichi\init.py'

The install location seems make Blender consider taichi as a plugin while it's not..

Does http://github.com/taichi-dev/taichi_blend, which does not require pip for installing taichi work for you?

@steven850
Copy link
Author

that seem to work

import taichi as ti
[Taichi] mode=release
[Taichi] version 0.6.31, llvm 10.0.0, commit 1d4c083c, win, python 3.7.4

@steven850
Copy link
Author

Cant load the examples

Traceback (most recent call last):
File "\balls.py", line 2, in
ModuleNotFoundError: No module named 'taichi_glsl'
Error: Python script failed, check the message in the system console

Traceback (most recent call last):
File "\break_cloth.py", line 1, in
ModuleNotFoundError: No module named 'reblend'
Error: Python script failed, check the message in the system console

@archibate
Copy link
Contributor

Cant load the examples

Traceback (most recent call last):
File "\balls.py", line 2, in
ModuleNotFoundError: No module named 'taichi_glsl'
Error: Python script failed, check the message in the system console

Traceback (most recent call last):
File "\break_cloth.py", line 1, in
ModuleNotFoundError: No module named 'reblend'
Error: Python script failed, check the message in the system console

Sorry, I forgot to add extra dependencies like taichi_glsl to Taichi-Blend.zip.. But mpm3d.py should work?

@steven850
Copy link
Author

mpm3d loads a point cloud into the 3d viewport. Can play it but cant make any other changes. Im assuming thats correct?

@archibate
Copy link
Contributor

Yes, if you press the Space button to start animation, the point cloud will move like liquid. Otherwise it will raise some error in console.

@steven850
Copy link
Author

Yes it does. I also downloaded 2 of the demo blend files. They dont seem to work properly, 2 of the nodes show as undefined. Is this because of the missing glsl or have the demo blend files not been updated?

@archibate
Copy link
Contributor

archibate commented Sep 6, 2020

Yes it does.

Great, then we can confirm taichi is working well in Windows+Blender, with taichi_blend.

I also downloaded 2 of the demo blend files. They dont seem to work properly, 2 of the nodes show as undefined. Is this because of the missing glsl or have the demo blend files not been updated?

I can't make them functional too, keep getting this error:

错误: Traceback (most recent call last):
  File "/usr/share/blender/2.83/scripts/startup/bl_operators/userpref.py", line 448, in execute
    mod = addon_utils.enable(self.module, default_set=True, handle_error=err_cb)
  File "/usr/share/blender/2.83/scripts/modules/addon_utils.py", line 368, in enable
    if mod.bl_info.get("blender", (0, 0, 0)) < (2, 80, 0):
AttributeError: module 'taichi_elements' has no attribute 'bl_info'

location: <unknown location>:-1

I run utils/install_blender_addon.py, and it doesn't even functional when cwd is not utils. The required environment variable BLENDER_USER_ADDON_PATH is also not found in README.
I'm wondering if we could make things less complicated? Why don't we just simply move blender to taichi_elements.blender? It's not a big disk usage for non-Blender users, compared to taichi_core.so which is around 50M.
@yuanming-hu You said in GAMES 201's final lecture: simplicity matters. So why is our installation process of taichi_elements getting so complicated, compared to taichi_blend which bundle all dependencies into single ZIP archive like all other Blender addon does?

In fact the cwd problem can actually be easily solved by:

- taichi_elements_path = os.path.dirname(os.path.abspath(os.curdir))
+ taichi_elements_path = os.path.dirname(os.path.dirname(__file__))

... why os.curdir...

@steven850
Copy link
Author

This is the error I get in the console when opening the demo blends.

Read blend: C:\Users\TR\Desktop\blender_simple_simulation_01.blend
Load Handler: C:\Users\TR\Desktop\blender_simple_simulation_01.blend
Megascans Plugin Error initializing the thread. Error: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
Updating device list

and the file opens but the simulation doesnt work. See screen shot of nodes.
nodes

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

3 participants