I am getting
__import__(module_name)
ValueError: source code string cannot contain null bytes
when trying to do flask run
I am creating the file like echo “import flask from Flask” >> app.py and edit file from there adding
import flask from Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World!</p>" ```
this app.py file created from cmd not working i have to re-create it using vscode then it works normally