Giter VIP home page Giter VIP logo

Comments (7)

msbonney avatar msbonney commented on July 29, 2024 1

For the powershell, your commands for run.py are incorrect. Here is the correct inputs

Screenshot 2023-08-08 124302

For the CMD, I am unsure of the issue. It seems to be an interdependence within Flask. After some searching, Jinja stopped supporting escape. So Flask will need to be upgraded to 2.x. I will update the requirements.txt to reflect this. As a test can you pip install this way:

#install
pip install Flask Scipy Plotly Wtform

Try that on cmd and let me know.

from cristallo.

msbonney avatar msbonney commented on July 29, 2024

Hi there,

It is pretty difficult to debug this issue since no-one on the team uses pycharm. But I am also seeing it on powershell. The majority of the development team using unix-based systems (Linux/Mac) so we did not verify the powershell deployment.

I have been able to recreate the error in powershell. I will look into a solution

from cristallo.

msbonney avatar msbonney commented on July 29, 2024

While I haven't solved the issue in pycharm, I believe I have a solution to Powershell.

You simply need to replace run.py with ".\run.py" such that the powershell commands are:

PowerShell (Windows)

(venv) C:\cristallo> $env:FLASK_APP=".\run.py"
(venv) C:\cristallo> $env:FLASK_DEBUG=1
(venv) C:\cristallo> flask run

Can you please try this and let me know if that works? I will then update the readme file.

-Matt

from cristallo.

danny95928 avatar danny95928 commented on July 29, 2024

thks for the help, but i still cannot get the last step, i try both PowerShell (Windows) and cmd, the run.py and FLASK_DEBUG all settled.
the cmd error is:
image
and the Powershell error shows:
image
flask : The item 'flask' is not recognized as the name of a cmdlet, function, script file, or executable. Please check the spelling of the name,
If a path is included, make sure the path is correct and try again.
Location Line: 1 Character: 1

  • flask run
  •    + CategoryInfo : ObjectNotFound: (flask:String) [], CommandNotFoundException
       + FullyQualifiedErrorId : CommandNotFoundException
    

from cristallo.

danny95928 avatar danny95928 commented on July 29, 2024

thks for your help it works!!!!!!!
this is what i do:

run powershell as administrator

reactivate the environment

pip install Flask Scipy Plotly Wtform

pip install Jinja2==3.0.3

from cristallo.

danny95928 avatar danny95928 commented on July 29, 2024

btw
it also works on cmd

from cristallo.

danny95928 avatar danny95928 commented on July 29, 2024

image
😀

from cristallo.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.