Comments (11)
Can you git pull
on master and try starting the project with the new instructions?
We added a way to start the app via Docker to solve a lot of dependency and connection issues people had.
You essentially just need to do the two steps:
1. Add env var
Create .env file by copying the .env.example
cp .env.example .env
and fill in the following variable:
- OPENAI_API_KEY - your OpenAI key
2. Start the app
npm start
Then open the page on http://localhost:3000/.
from e2b.
Ah, I think this is because you're running on M1
Interesting! That's a good angle to pursue.
I'm also going to check the image I'm working inside of to be sure all the dev utilities are correct.
from e2b.
Hi @lucasgonze, from the logs it looks like you didn't set the following environment variables in the .env
file
NEXT_PUBLIC_SUPABASE_URL
NEXT_PUBLIC_SUPABASE_ANON_KEY
Did you set them?
from e2b.
Also if you want to just run the app you don't need the yarn build
command - https://github.com/e2b-dev/e2b#get-started.
If you really want to build it, the env vars mentioned https://github.com/e2b-dev/e2b#3-add-env-vars are still required.
from e2b.
Valenta, thanks for your help. I am building because yarn install produces these errors:
➤ YN0000: ┌ Link step
➤ YN0007: │ supabase@npm:1.48.1 must be built because it never has been before or the last one failed
➤ YN0007: │ @prisma/engines@npm:4.11.0 must be built because it never has been before or the last one failed
➤ YN0007: │ bufferutil@npm:4.0.7 must be built because it never has been before or the last one failed
➤ YN0007: │ es5-ext@npm:0.10.62 must be built because it never has been before or the last one failed
➤ YN0007: │ utf-8-validate@npm:5.0.10 must be built because it never has been before or the last one failed
➤ YN0009: │ utf-8-validate@npm:5.0.10 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-f30805ae/build.log)
➤ YN0009: │ bufferutil@npm:4.0.7 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-b23a597d/build.log)
➤ YN0007: │ prisma@npm:4.11.0 must be built because it never has been before or the last one failed
➤ YN0007: │ @prisma/client@npm:4.11.0 [556c3] must be built because it never has been before or the last one failed
➤ YN0007: │ ai-api@workspace:. must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 15s 565ms
➤ YN0000: Failed with errors in 16s 233ms
from e2b.
Lucas, please follow the get started guide from our readme. You have to call yarn install:all
from e2b.
install:all produces results similar to a plain install
:
➤ YN0000: ┌ Link step
➤ YN0007: │ bufferutil@npm:4.0.7 must be built because it never has been before or the last one failed
➤ YN0007: │ utf-8-validate@npm:5.0.10 must be built because it never has been before or the last one failed
➤ YN0009: │ bufferutil@npm:4.0.7 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-19592493/build.log)
➤ YN0009: │ utf-8-validate@npm:5.0.10 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-78399284/build.log)
➤ YN0008: │ ai-api@workspace:. must be rebuilt because its dependency tree changed
from e2b.
Can you please provide the full terminal output?
from e2b.
Ah, I think this is because you're running on M1
from e2b.
We did some quick research and the problem seems to be this particular library eerohele/sublime-lxml#11
We haven't had time to address it yet though.
from e2b.
Looks good to me.
from e2b.
Related Issues (20)
- Cloudflare workers are missing process.env
- Use local Docker instance when building custom sandboxes HOT 1
- Add a way to consume sandbox specific logs via CLI HOT 1
- Code Interpreter v2.0 HOT 8
- Sandbox REST API HOT 1
- WebSocket failed to start HOT 2
- Fix sandbox close in SDK tests
- WebSocket received error while receiving messages: no close frame received or sent HOT 7
- Race condition when accessing messaged dictionary in Python SDK
- `TypeError: this.idAwaiter[data.id] is not a function` error when running AI GitHub developer
- Remove the OpenAI integration
- How to create a "named" template? HOT 1
- Add notification in SDK for uploaded files
- `sandbox.cwd` should always return a valid path
- e2b template build fails in WSL HOT 3
- CLI Template Build fails after long docker push
- Return correct status code in `error.status` when passing a wrong API key
- websocket error in `run_code()` HOT 5
- docker not found / issues on fresh install of docker
- Permission denied after using a newly created directory HOT 1
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 e2b.