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

ModuleNotFoundError: No module named 'workos' #23

Open
cihansahin opened this issue Sep 9, 2022 · 0 comments
Open

ModuleNotFoundError: No module named 'workos' #23

cihansahin opened this issue Sep 9, 2022 · 0 comments

Comments

@cihansahin
Copy link

cihansahin commented Sep 9, 2022

Following the steps in the README but getting the module import error. When I run plain python and import the module inside virtualenv, no issues but somehow "flask run" can't find the package.

(env) cihan@cihanbox python-flask-magic-link-example % flask --version
Python 3.10.6
Flask 2.0.0
Werkzeug 2.2.2
Requirement already satisfied: Flask==2.0.0 in ./env/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (2.0.0)
Requirement already satisfied: workos==1.14.0 in ./env/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (1.14.0)
Requirement already satisfied: python-dotenv in ./env/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (0.21.0)
Requirement already satisfied: Werkzeug>=2.0 in ./env/lib/python3.10/site-packages (from Flask==2.0.0->-r requirements.txt (line 1)) (2.2.2)
Requirement already satisfied: Jinja2>=3.0 in ./env/lib/python3.10/site-packages (from Flask==2.0.0->-r requirements.txt (line 1)) (3.1.2)
Requirement already satisfied: click>=7.1.2 in ./env/lib/python3.10/site-packages (from Flask==2.0.0->-r requirements.txt (line 1)) (8.1.3)
Requirement already satisfied: itsdangerous>=2.0 in ./env/lib/python3.10/site-packages (from Flask==2.0.0->-r requirements.txt (line 1)) (2.1.2)
Requirement already satisfied: requests>=2.22.0 in ./env/lib/python3.10/site-packages (from workos==1.14.0->-r requirements.txt (line 2)) (2.28.1)
Requirement already satisfied: MarkupSafe>=2.0 in ./env/lib/python3.10/site-packages (from Jinja2>=3.0->Flask==2.0.0->-r requirements.txt (line 1)) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in ./env/lib/python3.10/site-packages (from requests>=2.22.0->workos==1.14.0->-r requirements.txt (line 2)) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./env/lib/python3.10/site-packages (from requests>=2.22.0->workos==1.14.0->-r requirements.txt (line 2)) (1.26.12)
Requirement already satisfied: charset-normalizer<3,>=2 in ./env/lib/python3.10/site-packages (from requests>=2.22.0->workos==1.14.0->-r requirements.txt (line 2)) (2.1.1)
Requirement already satisfied: certifi>=2017.4.17 in ./env/lib/python3.10/site-packages (from requests>=2.22.0->workos==1.14.0->-r requirements.txt (line 2)) (2022.6.15)

Python packages:

(env) cihan@cihanbox python-flask-magic-link-example % ls -l env/lib/python3.10/site-packages
total 8
drwxr-xr-x  10 cihan  staff   320 Sep  9 05:00 Flask-2.0.0.dist-info
drwxr-xr-x   9 cihan  staff   288 Sep  9 05:00 Jinja2-3.1.2.dist-info
drwxr-xr-x   8 cihan  staff   256 Sep  9 05:00 MarkupSafe-2.1.1.dist-info
drwxr-xr-x   8 cihan  staff   256 Sep  9 05:00 Werkzeug-2.2.2.dist-info
drwxr-xr-x   5 cihan  staff   160 Sep  9 04:54 _distutils_hack
drwxr-xr-x   8 cihan  staff   256 Sep  9 04:56 certifi
drwxr-xr-x   8 cihan  staff   256 Sep  9 04:56 certifi-2022.6.15.dist-info
drwxr-xr-x  15 cihan  staff   480 Sep  9 04:56 charset_normalizer
drwxr-xr-x   9 cihan  staff   288 Sep  9 04:56 charset_normalizer-2.1.1.dist-info
drwxr-xr-x  20 cihan  staff   640 Sep  9 05:00 click
drwxr-xr-x   8 cihan  staff   256 Sep  9 05:00 click-8.1.3.dist-info
-rw-r--r--   1 cihan  staff   151 Sep  9 04:54 distutils-precedence.pth
drwxr-xr-x  12 cihan  staff   384 Sep  9 05:00 dotenv
drwxr-xr-x  24 cihan  staff   768 Sep  9 05:00 flask
drwxr-xr-x  12 cihan  staff   384 Sep  9 04:56 idna
drwxr-xr-x   8 cihan  staff   256 Sep  9 04:56 idna-3.3.dist-info
drwxr-xr-x  12 cihan  staff   384 Sep  9 05:00 itsdangerous
drwxr-xr-x   8 cihan  staff   256 Sep  9 05:00 itsdangerous-2.1.2.dist-info
drwxr-xr-x  29 cihan  staff   928 Sep  9 05:00 jinja2
drwxr-xr-x   9 cihan  staff   288 Sep  9 05:00 markupsafe
drwxr-xr-x   9 cihan  staff   288 Sep  9 04:54 pip
drwxr-xr-x  10 cihan  staff   320 Sep  9 04:54 pip-22.2.2.dist-info
drwxr-xr-x   6 cihan  staff   192 Sep  9 04:54 pkg_resources
drwxr-xr-x  10 cihan  staff   320 Sep  9 05:00 python_dotenv-0.21.0.dist-info
drwxr-xr-x  21 cihan  staff   672 Sep  9 04:56 requests
drwxr-xr-x   8 cihan  staff   256 Sep  9 04:56 requests-2.28.1.dist-info
drwxr-xr-x  48 cihan  staff  1536 Sep  9 04:54 setuptools
drwxr-xr-x  10 cihan  staff   320 Sep  9 04:54 setuptools-63.4.3.dist-info
drwxr-xr-x  17 cihan  staff   544 Sep  9 04:56 urllib3
drwxr-xr-x   8 cihan  staff   256 Sep  9 04:56 urllib3-1.26.12.dist-info
drwxr-xr-x  26 cihan  staff   832 Sep  9 05:00 werkzeug
drwxr-xr-x  17 cihan  staff   544 Sep  9 05:00 workos
drwxr-xr-x   9 cihan  staff   288 Sep  9 05:00 workos-1.14.0.dist-info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant