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

Trying to install pymongoarrow on aws linux 2 #231

Open
covatic-john opened this issue Aug 12, 2024 · 4 comments
Open

Trying to install pymongoarrow on aws linux 2 #231

covatic-john opened this issue Aug 12, 2024 · 4 comments

Comments

@covatic-john
Copy link

Having updated pip to latest version and installed libbson with yum I am still getting the following error any pointers would be great

The exit code: 1 The error output of the command: Collecting pymongoarrow~=1.5.0 Using cached pymongoarrow-1.5.0.tar.gz (59 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'error' error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [25 lines of output] Compiling pymongoarrow/lib.pyx because it changed. [1/1] Cythonizing pymongoarrow/lib.pyx :28: UserWarning: Package libbson-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libbson-1.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libbson-1.0' found Traceback (most recent call last): File "/home/ec2-user/.virtualenvs/database_flattening/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/ec2-user/.virtualenvs/database_flattening/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "/home/ec2-user/.virtualenvs/database_flattening/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) File "/tmp/pip-build-env-t_745ygk/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=[]) File "/tmp/pip-build-env-t_745ygk/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-t_745ygk/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 497, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-t_745ygk/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 313, in run_setup exec(code, locals()) File " ", line 175, in File " ", line 169, in get_extension_modules File " ", line 105, in append_libbson_flags ValueError: Could not find "libbson-1.0" library [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Non-zero exit code (1)

@blink1073
Copy link
Member

Hi @covatic-john, I'm trying to reproduce your setup on an amazonlinux:2 docker image. What steps did you use to install libbson? amazonlinux is not one of the supported platforms: https://mongoc.org/libmongoc/1.17.0/installing.html#install-libbson-with-a-package-manager.

@covatic-john
Copy link
Author

covatic-john commented Aug 13, 2024 via email

@blink1073
Copy link
Member

Do you have any extra sources configured? When I tried that from the docker image I get: No package libbson available.. I ran:

docker run -it amazonlinux:2 /bin/bash
$ yum update
$ yum install libbson
Loaded plugins: ovl, priorities
No package libbson available.
Error: Nothing to do

@covatic-john
Copy link
Author

Sorry. been on Annual leave and stacked out. I'll go back and see what I tried to get it working. I may may give up on this as AWS linux 2 hits end of life next year

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