Git Product home page Git Product logo

Comments (4)

abi avatar abi commented on August 15, 2024

Here's how to get docker compose logs: https://docs.docker.com/reference/cli/docker/compose/logs/

from screenshot-to-code.

Zenefff avatar Zenefff commented on August 15, 2024

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:
image

Adding this to /frontend/Dockerfile
image
Now step 5 went trough without any hassle or issues , just took a long time.

But still same problem after restart:

346298590-44bd5081-1248-48b3-a067-8cf2f15eaec2

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.

unit1101 avatar unit1101 commented on August 15, 2024

Is this problem solved?

from screenshot-to-code.

abi avatar abi commented on August 15, 2024

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)

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.