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

Issue when running using flask run | python giya.app #10

Open
JatraMaya opened this issue Aug 16, 2022 · 3 comments
Open

Issue when running using flask run | python giya.app #10

JatraMaya opened this issue Aug 16, 2022 · 3 comments

Comments

@JatraMaya
Copy link

  • OS : MacOs Catalina
  • python.ver: python3.9

I don't know what I'm doing wrong, but after I clone this repo, create a virtualenv and pip install -r requirement.txt, create .env file with the required content, when I try to run the app using flask run, I received Error: While importing 'giya', an ImportError was raised., end when I try to run it using python giya.py to check the exact import problem, there is nothing on the console and the app just close.

Running with flask run

Screenshot 2022-08-16 at 10 04 41

Running with python giya.py

Screenshot 2022-08-16 at 10 09 08

@skohari
Copy link
Contributor

skohari commented Sep 14, 2022

Did you run the two export commands before flask run?

export FLASK_APP=giya.py
export FLASK_ENV=development
flask run

@JatraMaya
Copy link
Author

JatraMaya commented Sep 15, 2022

Hi, thanks for the response, I've done the required step and still face the issue, I found that the issue stems from the Update on Werkzeug used by the latest Flask version.

The only way to resolve this issue so far is to modify the requirements.txt and explicitly state for Werkzeug <= 2.0.8 and place it above Flask.

I think I'll close this issue now. Now the Werkzeug workaround doesn't seem to work either, So I re-open this issue.

@JatraMaya JatraMaya reopened this Sep 15, 2022
@skohari
Copy link
Contributor

skohari commented Sep 22, 2022

Can you share more details like snapshots, etc.?
It works perfectly fine for me out of the box. MacOS, Py 3.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants