Skip to content

ImportError raised when testing wheels on windows and macos #1759

Answered by henryiii
robomics asked this question in Q&A
Discussion options

You must be logged in to vote

I am not sure where the second mymodule is coming from

You have the second one in your __init__.py. .mymodule means mymodule from the current module, which is mymodule/. So that means you expect mymodule/mymodule.<plat>.so.

Does your shared library sit inside a matching folder, next to the __init__.py?

I would highly recommend pybind/scikit_build_example be followed instead of pybind/cmake_example, which is very fragile, by the way.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@robomics
Comment options

@henryiii
Comment options

Answer selected by robomics
@henryiii
Comment options

@henryiii
Comment options

@robomics
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants