KAlexK
July 3, 2023, 10:52am
1
Question:
I use the python scratchattach library to change cloud variables in a scratch project.
When I run this code from my computer, everything works correctly. But when I moved the code to Replit, scratchattach gives me this error:
Does anyone know how to fix this?
I am trying to establish a connection with the cloud variables of this project:
https://scratch.mit.edu/projects/852952819/
Repl link:
https://replit.com/@KAlexK/ScratchinScratch
Erm why can’t you just change it in the scratch project then re-upload it eith the turbowarp packager (I’m assumming you are using that)?
KAlexK
July 3, 2023, 11:03am
3
But when I pack the project, I won’t be able to publish it on the Scratch site.
KAlexK
July 3, 2023, 11:13am
5
It is impossible to publish a project with html files in Scratch.
Scratch banned Replit’s IP address so it can’t get information.
The cloud variables should work, so…
Maybe it’s because of you’re authentication method
Do this instead:
session = scratch3.Session("sessionId", username="username")
1 Like
KAlexK
July 3, 2023, 11:16am
7
SnakeyKing:
Scratch banned Replit’s IP address so it can’t get information.
The cloud variables should work, so…
Maybe it’s because of you’re authentication method
Do this instead:
session = scratch3.Session("sessionId", username="username")
How can I get a session Id?
Why can’t you add the cloud variables into the project ON SCRATCH, publish it, then pack it if you want a HTML version.
KAlexK
July 3, 2023, 11:18am
9
I don’t need the html version of the project. My Scratch project is published, but I can’t change cloud variables in it using Replit.
Then don’t use Replit. Use the Scratch editor. It’s easier to use.
KAlexK
July 3, 2023, 11:30am
12
Thanks! Now the project is working correctly!
Glad to help
P.S. you marked your post as the solution, not mine
KAlexK
July 3, 2023, 11:33am
14
Sorry! Accidentally pressed the wrong button
system
Closed
July 10, 2023, 11:34am
15
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.