Replies: 1 comment
-
|
In Python, two dependencies that expose the same top-level module name are not compatible (except for namespace packages, i.e. packages without an |
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.
-
Hello everyone,
I’m facing an import conflict caused by two Python packages that both expose the same top-level module name, and I’m looking for best practices to handle this.
Problem description
In my project, I need to use:
ulid-pypython-ulid(required by another internal/third-party library)Both packages install a top-level package named
ulid.When both dependencies are installed using Poetry, one
ulidpackage overwrites the other insite-packages, causing unexpected behavior depending on install order.Example:
poetry run python -c "import ulid; print(ulid.__file__)"Only one implementation is available at runtime.
Environment
What I’ve tried / understood
ulidmodule.Questions
Any guidance or confirmation would be appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions