Open Zenefff opened 3 months ago
Here's how to get docker compose logs: https://docs.docker.com/reference/cli/docker/compose/logs/
Was again like last installation problem with Yarn , i don't know why. I tried a lot and the final solution was:
Reinstalling Yarn manually:
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"
Is this problem solved?
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.
Describe the bug
To Reproduce Steps to reproduce the behavior:
Screenshots of backend AND frontend terminal logs Using the docker-compose installation. Please let me know where i can find these logs to show them to you :-)