-
Notifications
You must be signed in to change notification settings - Fork 55
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
editable install cannot find pybind built .so #971
Comments
One concern is that the module does not belong to any package. I don't think that path is covered by the tests (still WIP to get all cases covered #906). Just so that we can narrow the issue, try to:
This would narrow down the issue if this is an issue with top-level modules. |
I'm afraid it was not working as follows: Is it because of my project structure? How would it supposed to be? |
Can you share your project or at least your |
here is the CMakeList.txt, I'm not sure what i should share of python sources.
|
Not sure if you hit a limit, but it cut off at the relevant part that would have had |
i don't think there is a install instruction in my
there's no python project strucure in the project, but only .py scripts in the pthon_bind, which act as an entry script:
|
Yes, it must have one. But that would also break in non-editable
Entry scripts for the user? If so you still have much to configure. Those files are also the one that require the |
error
after pip install -e .
import odometry_py
givesModuleNotFoundError: No module named 'odometry_py'
expected behaviour
import odometry_py as opy
details
I have such a project that uses pybind11 build cpp codes into a
.so
file then been called from a python script as follows:i'm recently migrating the project to vcpkg and uv managed environment. therefore with following
pyproject.toml
both uv build and cmake build can build the lib:
uv pip install -e .
also build the file and crate corresponding dir in venvbut in python,
import odometry_py as opy
throwsModuleNotFoundError: No module named 'odometry_py'
request
if anyone can have a look on what did i missed?
The text was updated successfully, but these errors were encountered: