Skip to content

Published package shows up under "pip list" but will give a "ModuleNotFoundError" when imported #1116

Answered by messense
nednoodlehead asked this question in Q&A
Discussion options

You must be logged in to vote

https://pyo3.rs/v0.17.1/module.html

The name of the module must match the name of the .so or .pyd file.

https://github.com/nednoodlehead/punge/blob/e4bcfdd59717ee4b55c27b119122250804b83b96/rust/src/lib.rs#L113-L114

This should be

#[pymodule]
fn punge_backend(_py: Python, m: &PyModule) -> PyResult<()> {

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@nednoodlehead
Comment options

@nednoodlehead
Comment options

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