GithubHelp home page GithubHelp logo

Comments (9)

Alek99 avatar Alek99 commented on May 19, 2024 1

We may need to do -f and ask for a permission with y/n command in the cli, or we can just replace the message to be like so

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

from reflex-examples.

milochen0418 avatar milochen0418 commented on May 19, 2024

[Memo of my testing]
Testing on my mac

clean environment to pip install pynecone 0.1.27
create empty project and run it with my current node environment
pc init

import pynecone as pc

class ExamplepcpipConfig(pc.Config):
    pass

config = ExamplepcpipConfig(
    app_name="example_pcpip127",
    db_url="sqlite:///pynecone.db",
    env=pc.Env.DEV,
)

pc run

$ next dev
/bin/bash: next: command not found
error: script "dev" exited with code 127

same issue here after doing this steps.

from reflex-examples.

milochen0418 avatar milochen0418 commented on May 19, 2024

Bun installation issue.

In the mac os X,
the downloaded bun will install in ~/.bun/bin/bun
If the file is there, then bun installation support by the current code cannot overwrite it.
But if we delete ~/.bun/bin/bun , then we can run the current code and ~/.bun/bin/bun will become new file.

from reflex-examples.

milochen0418 avatar milochen0418 commented on May 19, 2024

After killing ~/.bun/bin/bun file manually, and do pc init and pc run.
We can see that new bun can be download by pc init
and pc run will run on bun v0.5.9.

So the root cause of this issue is because bun file cannot be replace by current installation bash script.

from reflex-examples.

milochen0418 avatar milochen0418 commented on May 19, 2024

The issue is here.
reflex-dev/reflex#901

In the logic of pynecone==0.1.27, the bun will not upgrading because it check old bun path first.
If the path is exist, then bun installation will not be invoked.
That's why upgrading will not work.

If you want to make it work, you can delete $HOME/.bun/bin/bun
and then do 'pc init' in your side.

from reflex-examples.

milochen0418 avatar milochen0418 commented on May 19, 2024

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

@Alek99

In my Mac computer,
I can use curl -fsSL https://bun.sh/install | bash -s -- bun-v0.5.9 (without -f )
In my mac environemnt, when I install bun with the command without -f, I can directly replace the current bun even bun execution file is exists in $HOME/.bun/bin/bun .
This command is the same as the command in the current source code (2023/04/29)

But when I use curl -fsSL https://bun.sh/install | bash -s -- -f bun-v0.5.9, it is failed.
And the following is the error message.

error: Failed to download bun from "https://github.com/oven-sh/bun/releases/download/-f/bun-darwin-x64.zip"

from reflex-examples.

milochen0418 avatar milochen0418 commented on May 19, 2024

This issue is because of bun version cannot match to pynecone version.
But int the next release pynecone==0.1.29, this issue will not be exists because the following

from reflex-examples.

milochen0418 avatar milochen0418 commented on May 19, 2024

It looks like not work.
reflex-dev/reflex#938 (comment)

from reflex-examples.

milochen0418 avatar milochen0418 commented on May 19, 2024

Testing this issue in the current pc 0.1.33 again.
I ensure this issue is solved
Screenshot 2023-06-11 at 11 32 02 PM

from reflex-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.