Comments (9)
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.
[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.
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.
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.
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.
curl -fsSL https://bun.sh/install | bash -s -- -f bun-v0.5.9
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.
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.
It looks like not work.
reflex-dev/reflex#938 (comment)
from reflex-examples.
Testing this issue in the current pc 0.1.33 again.
I ensure this issue is solved
from reflex-examples.
Related Issues (20)
- nba example: all UI function failed after clicking Menu -> 20Dataset (0.1.33)
- nba example: loading time is too long (>3min) when first time to run (0.1.33) HOT 1
- gpt example: the link Sign Out disappear (0.1.33) HOT 1
- upload exmaple: click upload button will block everything if there is no any selected file (0.1.33) HOT 2
- Error: Hydration failed because the initial UI does not match what was rendered on the server. HOT 1
- stable_diffusion example: pc run failed on on Mac (0.1.33) HOT 1
- stable_diffusion example: Mac cpu-only failed when click Generate New Image (0.1.33) HOT 6
- counter example: reflex (0.1.34) run failed for the first version of reflex counter HOT 3
- counter example: reflex don't support rx command after install reflex 0.1.34 HOT 2
- Update all examples with forms to use `rx.form` and `on_submit` handler
- nba: pagination doesn't reset when filtering the table HOT 1
- Unable to launch app using reflex run, failing on bun installation
- Example Clock bug : the hour value is 0 at noon
- Fix all examples that yield/return events incorrectly
- rx.button color disapper when page reload
- Update Qr-Scanner example for 0.2.8 HOT 1
- Managing multiple states using redux like tool
- Axis titles not showing up in rx.plotly component
- GPT example should not need OPENAI_API_KEY at export time. HOT 2
- counter example: why response is slow, when click really fast, the counter takes seconds to catch up HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reflex-examples.