reflex icon indicating copy to clipboard operation
reflex copied to clipboard

pc run hang on 'bun install' for hours!

Open CocoaRush opened this issue 2 years ago β€’ 6 comments
trafficstars

Describe the bug After command pc run, there will be Starting Pynecone App, and Installing frontend packages, then bun install v0.5.7 (5929daee), that's it, it will keep this line for hours, just wondering that's going on and how could get round it?

To Reproduce Steps to reproduce the behavior: follow the instructions on the website:

pip install pinecone
pc init
pc run

Expected behavior local website can be visited

Screenshots image

** Specifics (please complete the following information):**

  • Python Version: 3.7.9
  • Pynecone Version: 0.1.18
  • OS: macOS 12.6.2
  • Browser (Optional):

CocoaRush avatar Mar 14 '23 06:03 CocoaRush

Hi can you downgrade to v0.5.5 I think there is a problem in the latest version of bun

Alek99 avatar Mar 14 '23 06:03 Alek99

I think this should solve it

Alek99 avatar Mar 14 '23 06:03 Alek99

@Alek99 thanks, I will give it a try. But how can I downgrade bun, or how can I install bun for a specific version?

CocoaRush avatar Mar 14 '23 07:03 CocoaRush

@Alek99 thanks, I will give it a try. But how can I downgrade bun, or how can I install bun for a specific version?

You can try to uninstall it and install again with pc run, we currectly use the specific version of bun in install script.

FHU-yezi avatar Mar 14 '23 08:03 FHU-yezi

@Alek99 thanks, I will give it a try. But how can I downgrade bun, or how can I install bun for a specific version?

curl -fsSL https://bun.sh/install | bash -s -- bun-v0.5.5

Alek99 avatar Mar 14 '23 17:03 Alek99

Hi, I work at Bun. Sorry you're running into this, we're going to investigate to see if this is an issue with Bun. https://github.com/oven-sh/bun/issues/2392

Electroid avatar Mar 14 '23 23:03 Electroid

Hi, I work at Bun. Sorry you're running into this, we're going to investigate to see if this is an issue with Bun. oven-sh/bun#2392

Awesome thank you!

Alek99 avatar Mar 28 '23 04:03 Alek99

We may need to add a special warning in Pynecone if bun version was causing this. I'll add this

Alek99 avatar Mar 28 '23 04:03 Alek99