Comments (4)
Here's how to get docker compose logs: https://docs.docker.com/reference/cli/docker/compose/logs/
from screenshot-to-code.
Was again like last installation problem with Yarn , i don't know why.
I tried a lot and the final solution was:
Adding this to /frontend/Dockerfile
Now step 5 went trough without any hassle or issues , just took a long time.
But still same problem after restart:
Docker compose logs:
brent@brentpi:~/screenshot-to-code $ sudo docker-compose logs -t
Attaching to screenshot-to-code_frontend_1, screenshot-to-code_backend_1
backend_1 | 2024-07-05T22:00:21.225781879Z Skipping virtualenv creation, as specified in config file.
backend_1 | 2024-07-05T22:01:32.490953276Z /usr/local/lib/python3.12/site-packages/moviepy/config_defaults.py:1: SyntaxWarning: invalid escape sequence '\P'
backend_1 | 2024-07-05T22:01:32.518039778Z """
backend_1 | 2024-07-05T22:01:44.980178607Z /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:294: SyntaxWarning: invalid escape sequence '\d'
backend_1 | 2024-07-05T22:01:45.648601774Z lines_video = [l for l in lines if ' Video: ' in l and re.search('\d+x\d+', l)]
backend_1 | 2024-07-05T22:01:45.648649065Z /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:367: SyntaxWarning: invalid escape sequence '\d'
backend_1 | 2024-07-05T22:01:45.648669326Z rotation_lines = [l for l in lines if 'rotate :' in l and re.search('\d+$', l)]
backend_1 | 2024-07-05T22:01:45.648688805Z /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:370: SyntaxWarning: invalid escape sequence '\d'
backend_1 | 2024-07-05T22:01:45.648707763Z match = re.search('\d+$', rotation_line)
backend_1 | 2024-07-05T22:01:56.446742432Z INFO: Started server process [1]
backend_1 | 2024-07-05T22:01:56.448254666Z INFO: Waiting for application startup.
backend_1 | 2024-07-05T22:01:56.448296957Z INFO: Application startup complete.
backend_1 | 2024-07-05T22:01:56.448316957Z INFO: Uvicorn running on http://0.0.0.0:7001 (Press CTRL+C to quit)
backend_1 | 2024-07-05T22:19:02.528008554Z INFO: Shutting down
backend_1 | 2024-07-05T22:19:02.625829753Z INFO: Waiting for application shutdown.
backend_1 | 2024-07-05T22:19:02.631885772Z INFO: Application shutdown complete.
backend_1 | 2024-07-05T22:19:02.632394937Z INFO: Finished server process [1]
backend_1 | 2024-07-06T20:27:27.908816964Z Skipping virtualenv creation, as specified in config file.
backend_1 | 2024-07-06T20:27:40.079750025Z INFO: Started server process [1]
backend_1 | 2024-07-06T20:27:40.079941639Z INFO: Waiting for application startup.
backend_1 | 2024-07-06T20:27:40.081413766Z INFO: Application startup complete.
backend_1 | 2024-07-06T20:27:40.084202449Z INFO: Uvicorn running on http://0.0.0.0:7001 (Press CTRL+C to quit)
backend_1 | 2024-07-07T19:00:45.821466428Z INFO: 192.168.0.124:51437 - "GET / HTTP/1.1" 200 OK
backend_1 | 2024-07-07T19:00:45.973729324Z INFO: 192.168.0.124:51437 - "GET /favicon.ico HTTP/1.1" 404 Not Found
backend_1 | 2024-07-07T19:01:28.122259327Z INFO: 192.168.0.124:51466 - "GET / HTTP/1.1" 200 OK
backend_1 | 2024-07-07T19:01:51.520070545Z INFO: 192.168.0.124:51467 - "GET / HTTP/1.1" 200 OK
backend_1 | 2024-07-07T19:02:09.261810756Z INFO: 192.168.0.124:51477 - "GET / HTTP/1.1" 200 OK
backend_1 | 2024-07-07T19:09:25.295578730Z INFO: 192.168.0.124:51508 - "GET / HTTP/1.1" 200 OK
backend_1 | 2024-07-07T19:09:25.306362685Z INFO: 192.168.0.124:51508 - "GET /favicon.ico HTTP/1.1" 404 Not Found
frontend_1 | 2024-07-07T23:28:26.527013163Z yarn run v1.22.22
frontend_1 | 2024-07-07T23:28:26.730770165Z $ vite --host 0.0.0.0
frontend_1 | 2024-07-07T23:28:33.647871835Z
frontend_1 | 2024-07-07T23:28:33.647996730Z VITE v4.5.0 ready in 6651 ms
frontend_1 | 2024-07-07T23:28:33.648013397Z
frontend_1 | 2024-07-07T23:28:33.655871387Z ➜ Local: http://localhost:5173/
frontend_1 | 2024-07-07T23:28:33.657607838Z ➜ Network: http://172.18.0.3:5173/
frontend_1 | 2024-07-07T23:32:09.625610938Z
frontend_1 | 2024-07-07T23:32:09.649443336Z ERROR
frontend_1 | 2024-07-07T23:32:09.649475262Z [TypeScript] Found 0 errors. Watching for file changes.
frontend_1 | 2024-07-07T23:32:09.649494898Z
I get the same error when I "import from code" and then ask AI to update something , i get it the moment i click "update"
from screenshot-to-code.
Is this problem solved?
from screenshot-to-code.
Looks like a problem with moviepy installation. You could comment that out if you're only looking to do image -> code generation and not video -> code generation.
@wwzeze and @unit1101 please share exact errors and your operating system and other info. I'd prefer it if you opened a new ticket.
from screenshot-to-code.
Related Issues (20)
- Running backend error HOT 14
- An Error Occurs While Running 'backend' HOT 5
- There appears to be trouble with your network connection. Retrying... HOT 2
- Feature Request: make this a GPT
- code is not getting generated on Mac OS Catalina HOT 3
- Add base_url configuration for anthropic claude.
- User Error generating code. Check the Developer Console AND the backend logs for details. Feel free to open a Github issue HOT 14
- 1111111111111111111111111111111111111111111111111111111111111111111111111 HOT 3
- Substitute image generation with Dall-e to placeholders HOT 3
- Save the templates after generation
- Cant generate code HOT 4
- can't install says no file folder found for backend HOT 7
- can't generate code error HOT 6
- Support .mov for video upload HOT 1
- Type Error on backend HOT 2
- run backend error HOT 2
- Error Generating code HOT 1
- Website down? HOT 1
- Backend has no output and get " Error generating code. Check the Developer Console AND the backend logs for details." HOT 4
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 screenshot-to-code.