examples icon indicating copy to clipboard operation
examples copied to clipboard

Next.js + Flask example Deploy failed

Open 7laria opened this issue 1 year ago • 4 comments

I've tried to deploy this example https://vercel.com/templates/next.js/nextjs-flask-starter but during the deployment the following error is shown: Error: Command failed: pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt Screenshot 2024-08-19 alle 16 08 55 And the deploy fails

7laria avatar Aug 19 '24 15:08 7laria

I had the same error and solved it by

  • pip install setuptools
  • changing the numpy version to 1.26.4 in requirements.txt.

SimonIyamu avatar Sep 06 '24 14:09 SimonIyamu

I don't think numpy is used at all at this point, so better to clean it out. The path of:

  • pnpm create next-app -e python/nextjs-flask
  • [edit out numpy entry in requirements.txt]
  • commit to main
  • push to github
  • connect vercel to repo
  • deploy via Vercel UI

Does seem to work fine.

peterdresslar avatar Sep 06 '24 17:09 peterdresslar

Thanks for that pointer @peterdresslar, removing the numpy dependency solved it for me too.

gaborcselle avatar Sep 11 '24 23:09 gaborcselle

Sure! But @sup deserves the credit for their #947 that correctly fixed the issue a few weeks ago

peterdresslar avatar Sep 12 '24 00:09 peterdresslar