Python six module installed but import fails

six is in dependencies and installation looks ok but when starting the python service it looks like it’s not there.
Any ideas about this problem?

[tool.poetry.dependencies]
python = “3.10.4”

six = “^1.16.0”

Output in logs when starting the app:

2022-06-10T08:23:10.434 app[9fa701eb] fra [info] import six
2022-06-10T08:23:10.434 app[9fa701eb] fra [info] ModuleNotFoundError: No module named ‘six’

I’m having the same problem. I don’t have a diagnosis, but I do have a workaround: Force install with a URL to a package.

poetry add https://files.pythonhosted.org/packages/71/39/171f1c67cd00715f190ba0b100d606d440a
28c93c7714febeca8b79af85e/six-1.16.0.tar.gz

Not sure why that worked, but it at least unblocked me.