Replies: 2 comments
-
Hey @poorvijn, without an reproducible example it is not possible to help here. I can understand your organization's privacy policy. So please try to reproduce the problem with example projects and show it to us. fin swimmer |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hey @finswimmer |
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
-
My organization is looking to upgrade the poetry version we use from 1.3.1 to 2.1.1. I updated the docker images for the same and while testing I noticed that the container is not able to find a module despite it being mentioned when I do 'poetry show'.
I can't reveal much about the repositories due to my organization's privacy policy, however I'll try my best to explain the situation. Let's say the repository that the container is not able to access is A.B.C . Each of A, B and C is a python module, where A and B are namespace packages used elsewhere too, that is, I also have a module structured like A.B.D, which I am able to access without any issues.
I'm able to run poetry run python -c "import A" and poetry run python -c "import A.B" as well as poetry run python -c "import A.B.D". However when I do poetry run python -c "import A.B.C", I get:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'A.B.C'
When I tried to add A.B.C again using poetry add A.B.C, I got:
The following packages are already present in the pyproject.toml and will be skipped:
If you want to update it to the latest compatible version, you can use
poetry update package
.If you prefer to upgrade it to the latest available version, you can use
poetry add package@latest
.I have been facing this issue since I upgraded to 2.1.1. I've built the docker images a couple of times from scratch, yet the issue persists when I try docker compose up for the container, so I'm assuming it might be something to do with the poetry upgrade.
I've looked at https://github.com/orgs/python-poetry/discussions/9842 and tried this, but I'm facing the same issue.
Any suggestions for resolution? I'm sorry, I know I haven't revealed much but I've tried to explain the situation as clearly as I can.
Thank you for your time!!
Beta Was this translation helpful? Give feedback.
All reactions