Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using an alpine docker image causes package imports to fail #49

Open
morgs208 opened this issue Aug 1, 2024 · 1 comment
Open

Using an alpine docker image causes package imports to fail #49

morgs208 opened this issue Aug 1, 2024 · 1 comment

Comments

@morgs208
Copy link

morgs208 commented Aug 1, 2024

Expected Behavior

Application builds and installs all amplitude experiment packages

Current Behavior

Application using an alpine image fails to load:
File "/usr/local/lib/python3.11/site-packages/amplitude_experiment/local/evaluation/libevaluation_interop.py", line 548, in __call__ raise ImportError("Could not load %s." % libname) ImportError: Could not load libevaluation_interop.

Possible Solution

Changing the docker image to a debian image, fixed the issue:

  • initial alpine image: python:3.11-alpine

  • debian image that worked: python:3.11-slim-bullseye

Steps to Reproduce

Environment

  • SDK Version:
  • Language Version: Python 3.11
@bgiori
Copy link
Collaborator

bgiori commented Aug 8, 2024

Hey @morgs208, Thanks for submitting this issue.

The SDK currently does not support alpine linux due to a shared binary that is used to implement the core evaluation logic that is built expecting glibc rather than muslc (used by alpine images).

We plan to support alpine once the core evaluation logic is transcribed to python. (currently the only two holdouts still using the binary are python and ruby).

I'll keep this issue open until we add support. Thanks for your patience.

Brian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants