Skip to content

Cannot import Memray properly in distroless container #629

Closed Answered by godlygeek
Partho asked this question in Q&A
Discussion options

You must be logged in to vote

I am trying to copy the library dependencies from build-parent container (consisting python3.9) to distroless container (consisting python3.11)

That's the problem. A Python 3.11 interpreter can't use libraries that were compiled for Python 3.9. You'd need to use the same version of Python in both environments. Or, alternatively, you could try just downloading a Python 3.11 Memray wheel like https://files.pythonhosted.org/packages/d6/57/83cb83cc3412014f180c90a1c8800e264e03fefc071a523d7e91126b23b4/memray-1.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl and unzipping it with unzip, and then copying the unzipped contents directly into the dist-packages folder. But if you di…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by godlygeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants