Skip to content

pip install awslambdaric breaks because of an issue with curl in python3.12.3 alpine image #145

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

Closed
kiran-parakkalkalam-cresset opened this issue May 29, 2024 · 3 comments
Assignees

Comments

@kiran-parakkalkalam-cresset
Copy link

kiran-parakkalkalam-cresset commented May 29, 2024

I have a python-alpine image version 3.12.3.

pip install --no-cache-dir awslambdaric==2.0.8 started breaking after a curl update on May 22nd 2024. Here is the error that I am getting:

checking curl version... 7.83.1
./configure: line 6673: syntax error: unexpected ";;" (expecting "fi")
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-h7w2jz0q/awslambdaric_bbc032d8006c44a884d65507609b67ae/setup.py", line 98, in <module>
       ext_modules=get_runtime_client_extension(),
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-h7w2jz0q/awslambdaric_bbc032d8006c44a884d65507609b67ae/setup.py", line 46, in       get_runtime_client_extension
extra_link_args=get_curl_extra_linker_flags(),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-h7w2jz0q/awslambdaric_bbc032d8006c44a884d65507609b67ae/setup.py", line 19, in get_curl_extra_linker_flags
check_call(["./scripts/preinstall.sh"])
File "/usr/local/lib/python3.12/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./scripts/preinstall.sh']' returned non-zero exit status 2.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

Curl has released a new version on May 22nd 2024, after that, this has started to fail.

Please help us resolve this issue.

@myersjustinc
Copy link

I'm running into the same, although I think it also could be related to #144 (autoconf release, rather than curl).

@PartiallyUntyped
Copy link
Contributor

Hi, could you provide some more details about the docker image that you are using?
I am interested in the c++ dependencies.

@PartiallyUntyped
Copy link
Contributor

Closing as duplicate of #144

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

3 participants