You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Sorry to write here but I was looking for an example of how to implement oauth2 with fastapi and I have found a discussion where someone explained how it was implemented inside ctms.
So first I have downloaded ctms-api 1.9.0 and ran the following commands:
make shell # Enter a docker shell
poetry install # Get ctms into Python path
alembic upgrade head # Add the api_client table
ctms/bin/client_credentials.py test --email test@example.com
and it worked fine on Windows/WSL[Ubuntu 22.04.1] (On MacOS I have never managed to get it to work because of docker permission error when it tries to create /opt/poetry).
Now since 1.9.1 it does not work anymore on my Windows/WSL, when I enter make shell then poetry install I have the following error:
app@205f095abdd2:/app$ poetry install
The lock file is not compatible with the current version of Poetry.
Upgrade Poetry to be able to read the lock file or, alternatively, regenerate the lock file with the `poetry lock` command.
app@205f095abdd2:/app$ poetry --version
Poetry (version 1.2.0)
It seems that now the poetry version cannot be installed, I always get 1.2.0 instead of the 1.3.1.
Even when I manually try to install poetry 1.3.1 manually at the end I still have 1.2.0:
app@205f095abdd2:/app$ pip install poetry==1.3.1 && poetry --version
Requirement already satisfied: poetry==1.3.1 in /opt/pysetup/.venv/lib/python3.10/site-packages (1.3.1)
Requirement already satisfied: dulwich<0.21.0,>=0.20.46 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (0.20.50)
Requirement already satisfied: html5lib<2.0,>=1.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (1.1)
Requirement already satisfied: requests<3.0,>=2.18 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (2.28.1)
Requirement already satisfied: virtualenv!=20.4.5,!=20.4.6,<21.0.0,>=20.4.3 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (20.14.0)
Requirement already satisfied: lockfile<0.13.0,>=0.12.2 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (0.12.2)
Requirement already satisfied: jsonschema<5.0.0,>=4.10.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (4.17.3)
Requirement already satisfied: cachecontrol[filecache]<0.13.0,>=0.12.9 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (0.12.11)
Requirement already satisfied: pexpect<5.0.0,>=4.7.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (4.8.0)
Requirement already satisfied: pkginfo<2.0,>=1.5 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (1.9.6)
Requirement already satisfied: platformdirs<3.0.0,>=2.5.2 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (2.6.2)
Requirement already satisfied: crashtest<0.5.0,>=0.4.1 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (0.4.1)
Requirement already satisfied: shellingham<2.0,>=1.5 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (1.5.0.post1)
Requirement already satisfied: keyring<24.0.0,>=23.9.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (23.13.1)
Requirement already satisfied: requests-toolbelt<0.11.0,>=0.9.1 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (0.10.1)
Requirement already satisfied: poetry-plugin-export<2.0.0,>=1.2.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (1.2.0)
Requirement already satisfied: urllib3<2.0.0,>=1.26.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (1.26.12)
Requirement already satisfied: poetry-core==1.4.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (1.4.0)
Requirement already satisfied: filelock<4.0.0,>=3.8.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (3.9.0)
Requirement already satisfied: packaging>=20.4 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (21.3)
Requirement already satisfied: tomli<3.0.0,>=2.0.1 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (2.0.1)
Requirement already satisfied: tomlkit!=0.11.2,!=0.11.3,<1.0.0,>=0.11.1 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (0.11.6)
Requirement already satisfied: trove-classifiers>=2022.5.19 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (2023.1.12)
Requirement already satisfied: cleo<3.0.0,>=2.0.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from poetry==1.3.1) (2.0.1)
Requirement already satisfied: msgpack>=0.5.2 in /opt/pysetup/.venv/lib/python3.10/site-packages (from cachecontrol[filecache]<0.13.0,>=0.12.9->poetry==1.3.1) (1.0.4)
Requirement already satisfied: rapidfuzz<3.0.0,>=2.2.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from cleo<3.0.0,>=2.0.0->poetry==1.3.1) (2.13.7)
Requirement already satisfied: webencodings in /opt/pysetup/.venv/lib/python3.10/site-packages (from html5lib<2.0,>=1.0->poetry==1.3.1) (0.5.1)
Requirement already satisfied: six>=1.9 in /opt/pysetup/.venv/lib/python3.10/site-packages (from html5lib<2.0,>=1.0->poetry==1.3.1) (1.16.0)
Requirement already satisfied: attrs>=17.4.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from jsonschema<5.0.0,>=4.10.0->poetry==1.3.1) (21.4.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from jsonschema<5.0.0,>=4.10.0->poetry==1.3.1) (0.19.3)
Requirement already satisfied: importlib-metadata>=4.11.4 in /opt/pysetup/.venv/lib/python3.10/site-packages (from keyring<24.0.0,>=23.9.0->poetry==1.3.1) (6.0.0)
Requirement already satisfied: jeepney>=0.4.2 in /opt/pysetup/.venv/lib/python3.10/site-packages (from keyring<24.0.0,>=23.9.0->poetry==1.3.1) (0.8.0)
Requirement already satisfied: SecretStorage>=3.2 in /opt/pysetup/.venv/lib/python3.10/site-packages (from keyring<24.0.0,>=23.9.0->poetry==1.3.1) (3.3.3)
Requirement already satisfied: jaraco.classes in /opt/pysetup/.venv/lib/python3.10/site-packages (from keyring<24.0.0,>=23.9.0->poetry==1.3.1) (3.2.3)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /opt/pysetup/.venv/lib/python3.10/site-packages (from packaging>=20.4->poetry==1.3.1) (3.0.7)
Requirement already satisfied: ptyprocess>=0.5 in /opt/pysetup/.venv/lib/python3.10/site-packages (from pexpect<5.0.0,>=4.7.0->poetry==1.3.1) (0.7.0)
Requirement already satisfied: idna<4,>=2.5 in /opt/pysetup/.venv/lib/python3.10/site-packages (from requests<3.0,>=2.18->poetry==1.3.1) (3.3)
Requirement already satisfied: charset-normalizer<3,>=2 in /opt/pysetup/.venv/lib/python3.10/site-packages (from requests<3.0,>=2.18->poetry==1.3.1) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in /opt/pysetup/.venv/lib/python3.10/site-packages (from requests<3.0,>=2.18->poetry==1.3.1) (2021.10.8)
Requirement already satisfied: distlib<1,>=0.3.1 in /opt/pysetup/.venv/lib/python3.10/site-packages (from virtualenv!=20.4.5,!=20.4.6,<21.0.0,>=20.4.3->poetry==1.3.1) (0.3.4)
Requirement already satisfied: zipp>=0.5 in /opt/pysetup/.venv/lib/python3.10/site-packages (from importlib-metadata>=4.11.4->keyring<24.0.0,>=23.9.0->poetry==1.3.1) (3.11.0)
Requirement already satisfied: cryptography>=2.0 in /opt/pysetup/.venv/lib/python3.10/site-packages (from SecretStorage>=3.2->keyring<24.0.0,>=23.9.0->poetry==1.3.1) (36.0.2)
Requirement already satisfied: more-itertools in /opt/pysetup/.venv/lib/python3.10/site-packages (from jaraco.classes->keyring<24.0.0,>=23.9.0->poetry==1.3.1) (9.0.0)
Requirement already satisfied: cffi>=1.12 in /opt/pysetup/.venv/lib/python3.10/site-packages (from cryptography>=2.0->SecretStorage>=3.2->keyring<24.0.0,>=23.9.0->poetry==1.3.1) (1.15.0)
Requirement already satisfied: pycparser in /opt/pysetup/.venv/lib/python3.10/site-packages (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring<24.0.0,>=23.9.0->poetry==1.3.1) (2.21)
Poetry (version 1.2.0)
app@205f095abdd2:/app
How can I make it work with latest version ?
While I am at it have you ever tested to run on MacOS ?
The text was updated successfully, but these errors were encountered:
Hello,
Sorry to write here but I was looking for an example of how to implement oauth2 with fastapi and I have found a discussion where someone explained how it was implemented inside ctms.
So first I have downloaded ctms-api 1.9.0 and ran the following commands:
and it worked fine on Windows/WSL[Ubuntu 22.04.1] (On MacOS I have never managed to get it to work because of docker permission error when it tries to create /opt/poetry).
Now since 1.9.1 it does not work anymore on my Windows/WSL, when I enter make shell then poetry install I have the following error:
It seems that now the poetry version cannot be installed, I always get 1.2.0 instead of the 1.3.1.
Even when I manually try to install poetry 1.3.1 manually at the end I still have 1.2.0:
How can I make it work with latest version ?
While I am at it have you ever tested to run on MacOS ?
The text was updated successfully, but these errors were encountered: