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

Failing to Add boto3 to the requirements.txt #2087

Closed
Chrystinne opened this issue Sep 22, 2023 · 8 comments
Closed

Failing to Add boto3 to the requirements.txt #2087

Chrystinne opened this issue Sep 22, 2023 · 8 comments

Comments

@Chrystinne
Copy link
Contributor

I am encountering issues when attempting to add boto3 to the requirements.txt file.

poetry add 'boto3==1.28.33'

The error message is as follows:

*** error linking uWSGI ***

Note: This error originates from the build backend, and is likely not a problem with poetry but with uwsgi (2.0.22) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "uwsgi (==2.0.22)"'.

Any ideas on how to solve this, @bemoody?

@briangow
Copy link
Contributor

@Chrystinne are you having trouble creating a local environment with boto in it on your mac? I've had problems with uWSGI installs on my Mac M1. Do you use brew? Currently this is what I need to do to get around it:

LDFLAGS=-L/opt/homebrew/Cellar/gettext/0.21.1/lib pip install "uWSGI==2.0.21” from unbit/uwsgi#2361

You might also get an error with psycopg2. If so, this is what fixes it for me:

ln -s $(brew --prefix)/lib/postgresql@14/libpq.5.14.dylib $(brew --prefix)/opt/postgresql/lib/libpq.5.dylib from https://stackoverflow.com/questions/68894232/error-loading-psycopg2-module-library-not-loaded-libpq-5-dylib

@Chrystinne
Copy link
Contributor Author

@briangow Thanks for your reply, Brian! I had a similar issue with uWSGI and psycopg2 in the past, but I was able to resolve it. So adding boto3 to my local environment recently wasn't a problem, and my code works properly.

However, when I created the PR, the tests failed because I hadn't added boto3 to the requirements.txt using Poetry. I'm encountering an error when attempting to do so.

@Chrystinne
Copy link
Contributor Author

@briangow Do you believe that running these commands can resolve the issue? If not, maybe someone who isn't encountering any problems could attempt to update the requirements.txt to include 'boto3==1.28.33'?

@tompollard
Copy link
Member

@Chrystinne Are you seeing the error on your local machine or on the github testing server?

@briangow
Copy link
Contributor

@Chrystinne Are you seeing the error on your local machine or on the github testing server?

This is also what I am trying to understand.

@Chrystinne
Copy link
Contributor Author

@tompollard I was seeing the error only on the Github testing server

@tompollard
Copy link
Member

Great, thanks @Chrystinne, I think this issue is resolved then. New error at #2086, but unrelated!

@Chrystinne
Copy link
Contributor Author

@tompollard Exactly! The problem now is that those tests aren't able to find the AWS credentials.

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