abi / screenshot-to-code

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
https://screenshottocode.com
MIT License
61.55k stars 7.52k forks source link

Error generating code. Check the Developer Console AND the backend logs for details. Feel free to open a Github issue. #411

Open a491004300 opened 1 month ago

a491004300 commented 1 month ago

Skipping virtualenv creation, as specified in config file. /usr/local/lib/python3.12/site-packages/moviepy/config_defaults.py:1: SyntaxWarning: invalid escape sequence '\P' """ /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:294: SyntaxWarning: invalid escape sequence '\d' lines_video = [l for l in lines if ' Video: ' in l and re.search('\d+x\d+', l)] /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:367: SyntaxWarning: invalid escape sequence '\d' rotation_lines = [l for l in lines if 'rotate :' in l and re.search('\d+$', l)] /usr/local/lib/python3.12/site-packages/moviepy/video/io/ffmpeg_reader.py:370: SyntaxWarning: invalid escape sequence '\d' match = re.search('\d+$', rotation_line) INFO: Started server process [1] INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:7001/ (Press CTRL+C to quit)

yarn run v1.22.22 $ vite --host 0.0.0.0

VITE v4.5.0 ready in 326 ms

➜ Local: http://localhost:5173/ ➜ Network: http://172.23.0.3:5173/

ERROR [TypeScript] Found 0 errors. Watching for file changes.

WARN Browserslist: caniuse-lite is outdated. Please run: npx update-browserslist-db@latest Why you should do it regularly: https://github.com/browserslist/update-db#readme

abi commented 1 month ago

looks like the issue with moviepy. Are you planning to use screen recording to code or just screenshots? If just screenshots, you can remove the "import moviepy" in your code.

blankhang commented 1 month ago

Same problem here, i am using docker-compose.yml, where the "import moviepy" code at?

abi commented 1 month ago

Just search for moviepy in the codebase

struggle-dream commented 4 weeks ago

Error generating code. Check the Developer Console AND the backend logs for details. Feel free to open a Github issue. Please tell me what's going on. I keep getting this error after uploading pictures. I didn’t see the error on the front end because I don’t know python, so it’s very strange. Or you can try it first, and if possible, we will buy it. ![Uploading Snipaste_2024-10-27_18-17-54.png…]()