abi / screenshot-to-code

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

code is not getting generated on Mac OS Catalina #374

Closed diablodeveloper closed 4 months ago

diablodeveloper commented 4 months ago

Describe the bug I pulled down the code, followed the steps to install. Front end is running but not generating any html code nor anything in the terminal in terms of logs. Help here would be appreciated.

To Reproduce Steps to reproduce the behavior:

  1. Run backend
  2. Run frontend
  3. navigate to localhost url
  4. Drag and drop a screenshot
  5. Spinners running but nothing generates
  6. Error shown on screen that unable to generated code, plz check logs
  7. but no logs are getting generated
  8. When I navigate to 127.x.x.x url, nothing shows as if backend is not connecting to front end maybe?

Screenshots of backend AND frontend terminal logs Below screenshots of terminal windows showing frontend and backend:

Screen Shot 2024-07-10 at 9 19 59 AM Screen Shot 2024-07-10 at 9 20 15 AM
diablodeveloper commented 4 months ago

Was able to resolve the issue by fixing the pydantic version in the docker file.

abi commented 4 months ago

Awesome, we've got to fix the pydantic version issue in the main repo. Thanks for sharing the solution!

diablodeveloper commented 4 months ago

@abi Alternately, add an additional instruction to fix pydantic version before running backend