Comments (7)
For the powershell, your commands for run.py are incorrect. Here is the correct inputs
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.
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.
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.
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:
and the Powershell error shows:
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.
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.
btw
it also works on cmd
from cristallo.
from cristallo.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cristallo.