I’m writing a custom backend for python-social-auth
for BigCommerce and noticed that when including the bigcommerce · PyPI client package within this source it generates the following PyJWT error.
root@lms:/edx/app/edxapp/edx-platform# pip install -e /edx/src/social_auth_backends/bigcommerce_api_testing/ social-core/
social-auth-backend-bigcommerce/
root@lms:/edx/app/edxapp/edx-platform# pip install -e /edx/src/social_auth_backends/social-auth-backend-bigcommerce/
Obtaining file:///edx/src/social_auth_backends/social-auth-backend-bigcommerce
Collecting bigcommerce
Using cached bigcommerce-0.22.2.tar.gz (21 kB)
Requirement already satisfied: social-auth-core in /edx/app/edxapp/venvs/edxapp/lib/python3.5/site-packages (from social-auth-backend-bigcommerce==0.1.0) (3.3.3)
Collecting requests>=2.25.1
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
ERROR: Could not find a version that satisfies the requirement pyjwt>=2.0.1 (from bigcommerce->social-auth-backend-bigcommerce==0.1.0) (from versions: 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.3, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 1.0.0, 1.0.1, 1.1.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.6.0, 1.6.1, 1.6.3, 1.6.4, 1.7.0, 1.7.1, 2.0.0a1)
ERROR: No matching distribution found for pyjwt>=2.0.1 (from bigcommerce->social-auth-backend-bigcommerce==0.1.0)
WARNING: You are using pip version 20.0.2; however, version 20.3.4 is available.
You should consider upgrading via the '/edx/app/edxapp/venvs/edxapp/bin/python3.5 -m pip install --upgrade pip' command.
My LMS is running version
PyJWT 1.5.2
And the bigcommerce-api-python
package that I’m trying to use within the social-auth-backend-bigcommerce
is referencing pyjwt==2.1.0
bigcommerce-api-python/requirements.txt at bigcommerce-0.22.2 · bigcommerce/bigcommerce-api-python · GitHub
Is there a way to keep the version of PyJWT
separate from the social auth backend and the LMS? I’m thinking virtualenv
but not sure what to do here. I guess I could update the requirements on the social-auth-backend-bigcommerce
to match the LMS but that might change how things are done internally to that package.
cc: @braden @arbrandes