-
Notifications
You must be signed in to change notification settings - Fork 57
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
Cannot import luisa (Python) after build and setup #63
Comments
Hi, @bsavery. Thanks for reporting this and sorry for the outdated documentation. LuisaCompute now supports installation via Now, to install the Python Luisa package, you could python -m pip install . Or, to freshly fetch, compile, and install the latest package from the git repo: python -m pip install git+https://github.com/LuisaGroup/LuisaCompute.git No extra steps like |
Oh ok, Great! I'll try that and close issue if it works! |
So a couple points. Should update the docs for sure. I'm not an expert in the python build system, but I did run into a few issues running the command:
With missing dependencies, which I fixed with: Again, not an expert in the python build system is there a way to get these dependencies in pyproject.toml? |
Thanks for finding out the missing dependencies! And yes, they can be specified in the |
great. Yeah I know sometimes on dev systems you have dependencies installed that aren't found until you move to other machines. Hit that issue plenty of times myself! |
Describe the bug
After following the build guide for Python, I cannot import
luisa
or run test files.in
build_release/bin
I seelcapi.cpython-310-darwin.so
but no .so to import luisa. I'm assuming this is a PyBind11 thing that the lcapi .so will allow importing luisa but it doesn't see to work:To Reproduce
Steps to reproduce the behavior:
following https://github.com/LuisaGroup/LuisaCompute/blob/master/README_Python_en.md
/Users/bsavery/Code/LuisaCompute/build_release/bin:/Users/bsavery/Code/LuisaCompute/pyscenes:
python3 src/py/tests/test_path_tracing.py
Traceback (most recent call last):
File "/Users/bsavery/Code/LuisaCompute/src/py/tests/test_path_tracing.py", line 6, in
import luisa
ModuleNotFoundError: No module named 'luisa'
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: