vercel / vercel/examples

python version error in next-flask-starter

Open
#760 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.2k
Forks
1.8k
Avg merge
3d 12h
Merged PRs (30d)
6

Description

I'm using the next-flask-starter, but the npm always call the wrong version of python.

npm run dev calls low python version and cause error
image

But, when I copy the flask cmd and run in terminal, it works well(because python3.11 is used this time)
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the next-flask-starter example and inspecting the npm run dev script to see which Python command it invokes. Compare that command with the Flask command that uses Python 3.11; done means npm run dev starts the Flask application with the intended Python version.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, nextjs, node.js, python
Domain
backend, full-stack, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.