Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: FileNotFound Pynecone requires bun to be installed #115

Closed
nixfreak opened this issue Dec 15, 2022 · 6 comments
Closed

Error: FileNotFound Pynecone requires bun to be installed #115

nixfreak opened this issue Dec 15, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@nixfreak
Copy link

When running pc init I receive the error FileNotFoundError: Pynecone requires bun to be installed.

I tried to install bun via pip but still have the same error

System: Mac OSx 12.6
Python Version: 3.7.7 and 3.9.16

░▒▓ ~/.env/python/my_app                                                                                                                                                                           26s  3.7.7   2.4.2   16:07:59 ▓▒░─╮
❯ pc init                                                                                                                                                                                                                                  ─╯
Traceback (most recent call last):
  File "/Users/.env/python/my_app/bin/pc", line 8, in <module>
    sys.exit(main())
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/typer/main.py", line 532, in wrapper
    return callback(**use_params)  # type: ignore
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/pynecone/pc.py", line 38, in init
    utils.install_bun()
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/pynecone/utils.py", line 379, in install_bun
    if not os.path.exists(get_bun_path()):
  File "/Users/.env/python/my_app/lib/python3.9/site-packages/pynecone/utils.py", line 319, in get_bun_path
    raise FileNotFoundError("Pynecone requires bun to be installed.")
FileNotFoundError: Pynecone requires bun to be installed.

@Alek99
Copy link
Member

Alek99 commented Dec 15, 2022

Ok thanks for letting me know. Bun should be automatically installed if you don't have it. I'm going to try and recreate this error on My Mac, are you using 01.9 Pynecone release

@Alek99 Alek99 added the bug Something isn't working label Dec 15, 2022
@Alek99
Copy link
Member

Alek99 commented Dec 15, 2022

Ok we just yanked this release can you install our old release. Sorry we will fix this asap and republish our new release.

pip install pynecone-io==0.1.8

  • delete you current project directory
  • create a new project directory
  • pc init
  • pc run

@nixfreak
Copy link
Author

So I uninstalled 0.19 and installed 0.1.8 and it Looks good

░▒▓ ~/.env/python/my_app                                                                                                                                                                                 3.7.7   2.4.2   16:23:50 ▓▒░─╮
❯ pc init                                                                                                                                                                                                                                  ─╯
[16:23:55] Initialize the app directory.                                                                                                                                                                                              pc.py:31
           Installing bun...                                                                                                                                                                                                          pc.py:43
⠧ Initializing my_app  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  7191    0  7191    0     0  25284      0 --:--:-- --:--:-- --:--:-- 25682
######################################################################## 100.0%
⠙ Initializing my_appbun was installed successfully to ~/.bun/bin/bun 

⠦ Initializing my_appAdded "~/.bun/bin" to $PATH in "~/.zshrc" 

To get started, run: 

 exec /bin/zsh 
  bun --help 
[16:24:01] Initializing the web directory.                                                                                                                                                                                            pc.py:47
           Finished Initializing: my_app                                                                                                                                                                                              pc.py:51

░▒▓ ~/.env/python/my_app                                                                                                                                                                            7s  3.7.7   2.4.2   16:24:01 ▓▒░─╮
❯ pc run                                                                                                                                                                                                                                   ─╯
─────────────────────────────────────────────────────────────────────────────────────────────────────────── Starting Pynecone App ────────────────────────────────────────────────────────────────────────────────────────────────────────────
────────────────────────────────────────────────────────────────────────────────────────────────────────── Installing Dependencies ───────────────────────────────────────────────────────────────────────────────────────────────────────────
bun install v0.3.0 (a13e64c2)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────── App Running ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 3.7s (765 modules)

@nixfreak
Copy link
Author

image

@Alek99
Copy link
Member

Alek99 commented Dec 15, 2022

Looks good! Ok let me know if there are any other errors, we are going to write more tests for this and then republish our new release. Thanks for trying pynecone out!

@nixfreak
Copy link
Author

No thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants