Deployement error

error while deploying

Hey, @CoachMacpython welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

2 Likes

I am not having error with the code.
I am trying to deploy a simple python code. with run command python3 main.py
the error is in the sceen shot
where is the turtorial on how to deploy projects?


2023-12-05T02:04:11Z info: Pushed soci index manifest
2023-12-05T02:04:17Z info: Creating Autoscale service
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/turtle.py”, line 435, in init
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/turtle.py”, line 3663, in Screen
Traceback (most recent call last):
File “/nix/store/2vm88xw7513h9pyjyafw32cps51b0ia1-python3-3.8.12/lib/python3.8/turtle.py”, line 3663, in Screen
2023-12-05T02:04:36Z error: The deployment failed to initialize due to a configuration or code error. Check the logs tab for more information. For additional support, please post on https://ask.replit.com/c/help/13 and a staff member will take a look.
this is my error

Yes but we need to see your repl to try and find the issue (like in configuration files)

sure

https://replit.com/@CoachMacpython/for-loop-lesson

My hunch is that the Deployment machines don’t support VNC (which Turtle is trying to open and use), and so Turtle isn’t working because of it.

Could be something else though.

Do I need to deploy if I am just sharing my link to someone ?
its not an app. It is for someone to learn turtle and for loop together.

You do not. If you’re just sharing something with someone you can send them the Repl spotlight URL (https://replit.com/@CoachMacpython/for-loop-lesson) and they can fork it and happy days.

1 Like

Thank you.
so the deployment deadline is only for apps ?

I use python ( python data science , pygame etc templates and have some basic repls to explain to someone basic python .
Do I need to change anything for those repls?
I did not find any detailed tutorial for deployment.

Can you send me the link , please?

You do not need to deploy those kinds of Repls, merely share their standard cover page links.