app-generator / flask-atlantis-dark

Atlantis Lite - Flask (Dark Version) | AppSeed
https://appseed.us/product/atlantis-dark/flask/
Other
150 stars 61 forks source link

Import "flask" could not be resolved #11

Closed Einsteinia11 closed 1 year ago

Einsteinia11 commented 1 year ago

Hey ๐Ÿ–, I followed all the steps but I am getting the below errors while I am trying to run the last step $ flask run

error

General information: I am working on VS Code editor

app-generator commented 1 year ago

Hello @Einsteinia11

Can you please execute the set up as suggested on the README, outside of the editor?

Those imports are not errors, are just warnings bumped by the editor because the imports are not available.

In order to assist you further, please reply with a complete execution log when running the project in a terminal.

Thank you!

Einsteinia11 commented 1 year ago

Hello๐Ÿ™, I have executed the set up through README itself!

Here's the whole screenshot of my entire set up in VsCode ๐Ÿ‘‡

error

Whatever is written in the tip as you can see in the image I have already done that and also Flask is also installed but still don't know why this type of error occurring๐Ÿค”!

Thank You๐Ÿ™‡โ€โ™€๏ธ!

app-generator commented 1 year ago

The FLASK_APP is not exported. Seems that you're using PowerShell and the missing command is this one:

$env:FLASK_APP = ".\run.py"

Please retry and let us know your progress.

Einsteinia11 commented 1 year ago

Now this error!

error
app-generator commented 1 year ago

pip install -r requirements.txt

app-generator commented 1 year ago

P.S. all steps are listed on the README.

Any Flask APP needs the following:

Let us know your progress.

Einsteinia11 commented 1 year ago

Done!๐Ÿš€

This helped me๐Ÿ‘‡ Install modules via PIP directly in the system or using a Virtual ENV pip install -r requirements.txt

Actually I was executing the above command in cmd and didn't did in powershell :') Thank you so much! Have a great day๐Ÿ™‡โ€โ™€๏ธ!

app-generator commented 1 year ago

Glad it worked. Let us know anytime if you need further assistance. ๐Ÿš€๐Ÿš€