1030 python3 -m venv coinbase_rest_testing
1031 source coinbase_rest_testing/bin/activate
1032 python3 -m pip install -r requirements.txt
1033 pip install .
1034 ipython
1035 vi requirements.txt
1036 pip install jwt
1037 ipython
In [2]: from coinbase.rest import RESTClient
...:
...: client = RESTClient(api_key=privkey, api_secret=secret)
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[2], line 1
----> 1 from coinbase.rest import RESTClient
3 client = RESTClient(api_key=privkey, api_secret=secret)
File ~/dev/coinbase-advanced-py/coinbase/rest/__init__.py:1
----> 1 from .rest_base import RESTBase
4 class RESTClient(RESTBase):
5 from .accounts import get_account, get_accounts
File ~/dev/coinbase-advanced-py/coinbase/rest/rest_base.py:8
5 import requests
6 from requests.exceptions import HTTPError
----> 8 from coinbase import jwt_generator
9 from coinbase.__version__ import __version__
10 from coinbase.constants import API_ENV_KEY, API_SECRET_ENV_KEY, BASE_URL
File ~/dev/coinbase-advanced-py/coinbase/jwt_generator.py:3
1 import time
----> 3 import jwt
4 from cryptography.hazmat.primitives import serialization
6 from coinbase.constants import BASE_URL, REST_SERVICE, WS_SERVICE
ModuleNotFoundError: No module named 'jwt'
Same output both times in my ipython console. The pip installations were successful. There is a problem with the jwt import on a fresh install and virtual environment.
(coinbase_rest_testing) llinsky@localhost coinbase-advanced-py % pip freeze
black==23.11.0
certifi==2023.11.17
cffi==1.16.0
charset-normalizer==3.3.2
click==8.1.7
coinbase-advanced-py @ file:///Users/<>/coinbase-advanced-py
cryptography==41.0.7
idna==3.6
isort==5.12.0
jwt==1.3.1
mypy-extensions==1.0.0
packaging==23.2
pathspec==0.11.2
platformdirs==4.1.0
pycparser==2.21
PyJWT==2.8.0
requests==2.31.0
urllib3==2.1.0