9 months ago
Seeing a lot of package installs fail with the message:
"An error occurred while installingSeeing a traceback with the error:
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
The closest I could find was this pip issue:
https://github.com/pypa/pip/issues/12179
However it's not clear that this is the real issue.
> ⓘ Deployment information is only viewable by project members and Railway employees.
7 Replies
9 months ago
What version of Python do you use locally? I see that this build was ran with Python 3.12 as per the build table at the top of the build logs.
9 months ago
I'm using Python 3.12.4 which is the version in the Pipfile.
Also, I just noticed in the traceback that pipenv seems to be running from python 3.11:
[pipenv.exceptions.InstallError]: File "/nix/store/6wfc7p3j3clx2jzfkqjkq9a50qsir6ab-pipenv-2023.2.4/lib/python3.11/site-packages/pipenv/patched/pip/_vendor/pkg_resources/__init__.py", line 2164, in <module>
Status changed to Awaiting Railway Response railway[bot] • 9 months ago
9 months ago
Would Python 3.12.4 be a hard requirement? If so, you may need to move to a Dockerfile based build.
Status changed to Awaiting User Response railway[bot] • 9 months ago
9 months ago
Ok - will move to Dockerfile. Changing versions is possible but disruptive, and I don't want a bug in the build infrastructure to limit our choice of version.
Status changed to Awaiting Railway Response railway[bot] • 9 months ago
9 months ago
For clarity this would be an issue with nixpacks, But a Dockerfile is going to be the best path forward when you need specific versions of a language in my experience.
Let me know if you need any help with that Dockerfile!
Status changed to Awaiting User Response railway[bot] • 9 months ago
9 months ago
Got Dockerfile build working based on examples on the internet. Thank you!
Status changed to Awaiting Railway Response railway[bot] • 9 months ago
Status changed to Awaiting User Response railway[bot] • 9 months ago
Status changed to Solved brody • 9 months ago