Error: Could not import 'app'.
mozgbrasil opened this issue · 0 comments
mozgbrasil commented
Hello my friends, how are you, I'm trying to run the project but an error is being returned, can you please help me, thank you
marcio@marcio-Inspiron-5548:~/dados/git-clones/pessoal/gnz-python$ pyenv versions
git clone https://github.com/openai/openai-quickstart-python
cd openai-quickstart-python
ls -lah
python -m venv venv
ls -lah
pip install -r requirements.txt
cp .env.example .env
flask run
system
3.9.18
* 3.10.14 (set by /home/marcio/.pyenv/version)
Cloning into 'openai-quickstart-python'...
remote: Enumerating objects: 159, done.
remote: Total 159 (delta 0), reused 0 (delta 0), pack-reused 159
Receiving objects: 100% (159/159), 136.83 KiB | 6.52 MiB/s, done.
Resolving deltas: 100% (56/56), done.
total 36K
drwxrwxr-x 4 marcio marcio 4,0K mar 25 22:15 .
drwxrwxr-x 4 marcio marcio 4,0K mar 25 22:15 ..
-rw-rw-r-- 1 marcio marcio 169 mar 25 22:15 .env.example
drwxrwxr-x 6 marcio marcio 4,0K mar 25 22:15 examples
drwxrwxr-x 8 marcio marcio 4,0K mar 25 22:15 .git
-rw-rw-r-- 1 marcio marcio 148 mar 25 22:15 .gitignore
-rw-rw-r-- 1 marcio marcio 1,1K mar 25 22:15 LICENSE
-rw-rw-r-- 1 marcio marcio 2,0K mar 25 22:15 README.md
-rw-rw-r-- 1 marcio marcio 334 mar 25 22:15 requirements.txt
total 40K
drwxrwxr-x 5 marcio marcio 4,0K mar 25 22:15 .
drwxrwxr-x 4 marcio marcio 4,0K mar 25 22:15 ..
-rw-rw-r-- 1 marcio marcio 169 mar 25 22:15 .env.example
drwxrwxr-x 6 marcio marcio 4,0K mar 25 22:15 examples
drwxrwxr-x 8 marcio marcio 4,0K mar 25 22:15 .git
-rw-rw-r-- 1 marcio marcio 148 mar 25 22:15 .gitignore
-rw-rw-r-- 1 marcio marcio 1,1K mar 25 22:15 LICENSE
-rw-rw-r-- 1 marcio marcio 2,0K mar 25 22:15 README.md
-rw-rw-r-- 1 marcio marcio 334 mar 25 22:15 requirements.txt
drwxrwxr-x 5 marcio marcio 4,0K mar 25 22:15 venv
Requirement already satisfied: annotated-types==0.6.0 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.6.0)
Requirement already satisfied: anyio==4.2.0 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (4.2.0)
Requirement already satisfied: blinker==1.7.0 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (1.7.0)
Requirement already satisfied: certifi==2024.2.2 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (2024.2.2)
Requirement already satisfied: click==8.1.7 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (8.1.7)
Requirement already satisfied: distro==1.9.0 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (1.9.0)
Requirement already satisfied: Flask==3.0.2 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 7)) (3.0.2)
Requirement already satisfied: h11==0.14.0 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (0.14.0)
Requirement already satisfied: httpcore==1.0.2 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (1.0.2)
Requirement already satisfied: httpx==0.26.0 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 10)) (0.26.0)
Requirement already satisfied: idna==3.6 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 11)) (3.6)
Requirement already satisfied: itsdangerous==2.1.2 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 12)) (2.1.2)
Requirement already satisfied: Jinja2==3.1.3 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 13)) (3.1.3)
Requirement already satisfied: MarkupSafe==2.1.5 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 14)) (2.1.5)
Requirement already satisfied: openai==1.11.1 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 15)) (1.11.1)
Requirement already satisfied: pydantic==2.6.1 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 16)) (2.6.1)
Requirement already satisfied: pydantic_core==2.16.2 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 17)) (2.16.2)
Requirement already satisfied: sniffio==1.3.0 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 18)) (1.3.0)
Requirement already satisfied: tqdm==4.66.1 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 19)) (4.66.1)
Requirement already satisfied: typing_extensions==4.9.0 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 20)) (4.9.0)
Requirement already satisfied: Werkzeug==3.0.1 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from -r requirements.txt (line 21)) (3.0.1)
Requirement already satisfied: exceptiongroup>=1.0.2 in /home/marcio/.pyenv/versions/3.10.14/lib/python3.10/site-packages (from anyio==4.2.0->-r requirements.txt (line 2)) (1.2.0)
Usage: flask run [OPTIONS]
Try 'flask run --help' for help.
Error: Could not import 'app'.
marcio@marcio-Inspiron-5548:~/dados/git-clones/pessoal/gnz-python/openai-quickstart-python$