Module created automatically with submodule with the same name #3147
Unanswered
Cpyte-Engine-Developer
asked this question in
Questions
Replies: 2 comments
-
See the documentation of https://docs.rs/pyo3/latest/pyo3/types/struct.PyModule.html#method.add_submodule
The tl;dr is that you need to mess with |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think this is a known design decision of maturin, see PyO3/maturin#1399 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
I have cpyte_engine module. This submodule automatically created with cpyte_engine submodule, but I have one real submodule math_utils. This import work, but he should don't work:
>>> from cpyte_engine.cpyte_engine import math_utils
lib.rs:
Steps to Reproduce
from cpyte_engine.cpyte_engine import math_utils
Backtrace
No response
Your operating system and version
LMDE 5
Your Python version (
python --version
)Python 3.9
Your Rust version (
rustc --version
)rustc 1.67.1 (d5a82bbd2 2023-02-07)
Your PyO3 version
0.18.3
How did you install python? Did you use a virtualenv?
Python was preinstalled. I used virtual env via venv library
Additional Info
No response
Beta Was this translation helpful? Give feedback.
All reactions