TheCommCraft / scratchcommunication

A python module for communicating with scratch projects
MIT License
1 stars 0 forks source link

"Can not connect to cloud" #3

Closed banddans closed 3 months ago

banddans commented 3 months ago

I get this error each time I try to connect:

/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/session.py:75: UserWarning: Couldn't find XToken. Most features will probably still work. warnings.warn("Couldn't find XToken. Most features will probably still work.") Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 170, in _connect self.websocket.connect( File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_core.py", line 256, in connect self.sock, addrs = connect( ^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 151, in connect sock = _ssl_socket(sock, options.sslopt, hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 311, in _ssl_socket sock = _wrap_sni_socket(sock, sslopt, hostname, check_hostname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/websocket/_http.py", line 281, in _wrap_sni_socket return context.wrap_socket( ^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1042, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1320, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/Users/banddanas/Documents/LiClipse Workspace/Platformer share/main.py", line 6, in cloud = session.create_cloudconnection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/session.py", line 158, in create_cloudconnection return cloud.CloudConnection(project_id=project_id, session=self, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 127, in init self._connect() File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 184, in _connect self._connect(retry=retry - 1) File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 184, in _connect self._connect(retry=retry - 1) File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 184, in _connect self._connect(retry=retry - 1) [Previous line repeated 6 more times] File "/Users/banddanas/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 181, in _connect raise ConnectionError( ConnectionError: There was an error while connecting to the cloud server.

banddans commented 3 months ago

Are you here now?

TheCommCraft commented 3 months ago

Hi

banddans commented 3 months ago

Yea so how to solve this?

TheCommCraft commented 3 months ago

It seems your SSL certificate is failing, but the weird thing is that the same thing should also happen when you use scratchattach

banddans commented 3 months ago

What you need a certificate for this?

TheCommCraft commented 3 months ago

for the connection to the cloud server

TheCommCraft commented 3 months ago

I'll add an option to try connect without certificate when it can't use one

banddans commented 3 months ago

Or whats that i thoguht it was a liscenese first

TheCommCraft commented 3 months ago

?

TheCommCraft commented 3 months ago

There is a certificate to verify that the server is the one you are trying to connect to

banddans commented 3 months ago

Tried with tomething simplier now but its still not working.

import scratchcommunication

session = scratchcommunication.Session("banddans", session_id="nono")

cloud = communication_session.create_cloudconnection(
    project_id = "1037074040"
)
banddans commented 3 months ago

So everybody have a certificate?

TheCommCraft commented 3 months ago

Just wait, I'll make a new update soon, then you can download and it should work.

TheCommCraft commented 3 months ago

Try updating your scratchcommunication by typing pip install scratchcommunication>=2.10.4 into your terminal and add allow_no_certificate=True to the function call that creates the cloud socket:

cloud_socket = session.create_cloud_socket(
    project_id = "884190099", 
    security = security,
    allow_no_certificate = True # Add this line
)
TheCommCraft commented 3 months ago

Is it working?

banddans commented 3 months ago

Skärmavbild 2024-06-14 kl  07 38 26

TheCommCraft commented 3 months ago

Try pip install -U scratchcommunication and then pip show scratchcommunication and send me the output

TheCommCraft commented 3 months ago

so?

banddans commented 3 months ago

Skärmavbild 2024-06-17 kl  09 27 47

banddans commented 3 months ago

Got you real name lol

TheCommCraft commented 3 months ago

Just try pip install --force-reinstall scratch communication

banddans @.***> schrieb am Mo., 17. Juni 2024, 09:28:

Got you real name lol

— Reply to this email directly, view it on GitHub https://github.com/TheCommCraft/scratchcommunication/issues/3#issuecomment-2172502352, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZW2I2DCX2VLRMKRSEDZH2F2VAVCNFSM6AAAAABJI7DV4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZSGUYDEMZVGI . You are receiving this because you commented.Message ID: @.***>

banddans commented 3 months ago

Skärmavbild 2024-06-17 kl  12 39 03

TheCommCraft commented 3 months ago

sorry i meant scratchcomnunication not scratch communication bad autocorrect

banddans @.***> schrieb am Mo., 17. Juni 2024, 12:39:

Skarmavbild.2024-06-17.kl.12.39.03.png (view on web) https://github.com/TheCommCraft/scratchcommunication/assets/172638654/3684cfb2-41e9-4719-b8b5-29b176870776

— Reply to this email directly, view it on GitHub https://github.com/TheCommCraft/scratchcommunication/issues/3#issuecomment-2173016709, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZRPSLKYO4DUPVQRSOTZH24G3AVCNFSM6AAAAABJI7DV4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTGAYTMNZQHE . You are receiving this because you commented.Message ID: @.***>

banddans commented 3 months ago

Traceback (most recent call last): File "/Users/tomcronow/Documents/LiClipse Workspace/Platformer share/main.py", line 6, in cloud = communication_session.create_cloudconnection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/tomcronow/Library/Python/3.12/lib/python/site-packages/scratchcommunication/session.py", line 158, in create_cloudconnection return cloud.CloudConnection(project_id=project_id, session=self, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/tomcronow/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 127, in init self._connect() File "/Users/tomcronow/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 184, in _connect self._connect(retry=retry - 1) File "/Users/tomcronow/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 184, in _connect self._connect(retry=retry - 1) File "/Users/tomcronow/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 184, in _connect self._connect(retry=retry - 1) [Previous line repeated 6 more times] File "/Users/tomcronow/Library/Python/3.12/lib/python/site-packages/scratchcommunication/cloud.py", line 181, in _connect raise ConnectionError( ConnectionError: There was an error while connecting to the cloud server. tomcronow@Snoddass-MBP Platformer share % python3 main.py /Users/tomcronow/Library/Python/3.12/lib/python/site-packages/scratchcommunication/session.py:75: UserWarning: Couldn't find XToken. Most features will probably still work. warnings.warn("Couldn't find XToken. Most features will probably still work.") Traceback (most recent call last): File "/Users/tomcronow/Documents/LiClipse Workspace/Platformer share/main.py", line 6, in cloud = communication_session.create_cloudconnection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/tomcronow/Library/Python/3.12/lib/python/site-packages/scratchcommunication/session.py", line 158, in create_cloudconnection return cloud.CloudConnection(project_id=project_id, session=self, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: CloudConnection.init() got an unexpected keyword argument 'allow_no_certificate'

banddans commented 3 months ago

So I guess i failed downloading the new version :(

banddans commented 3 months ago

It looked like this when i downloaded it:

https://github.com/TheCommCraft/scratchcommunication/assets/172638654/5c21cadd-92f9-4bf5-bb46-428453460cf5

https://github.com/TheCommCraft/scratchcommunication/assets/172638654/5c21cadd-92f9-4bf5-bb46-428453460cf5

banddans commented 3 months ago

Bottom here if you didn't see it:

Skärmavbild 2024-06-17 kl  16 00 03

TheCommCraft commented 3 months ago

try pip install --no-cache --force-reinstall scratchcommunication

banddans commented 3 months ago

Still not working :(((

TheCommCraft commented 3 months ago

What did it say?

banddans @.***> schrieb am Mo., 17. Juni 2024, 19:51:

Still not working :(((

— Reply to this email directly, view it on GitHub https://github.com/TheCommCraft/scratchcommunication/issues/3#issuecomment-2173992274, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZQQRR7WKJILPGWMS73ZH4O25AVCNFSM6AAAAABJI7DV4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTHE4TEMRXGQ . You are receiving this because you commented.Message ID: @.***>

TheCommCraft commented 3 months ago

Do you have Python 3.12 or 3.11?

Simon Gilde @.***> schrieb am Mo., 17. Juni 2024, 20:06:

What did it say?

banddans @.***> schrieb am Mo., 17. Juni 2024, 19:51:

Still not working :(((

— Reply to this email directly, view it on GitHub https://github.com/TheCommCraft/scratchcommunication/issues/3#issuecomment-2173992274, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZQQRR7WKJILPGWMS73ZH4O25AVCNFSM6AAAAABJI7DV4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZTHE4TEMRXGQ . You are receiving this because you commented.Message ID: @.***>

banddans commented 3 months ago

3.12 I think

TheCommCraft commented 3 months ago

Can you show me the error from installing?

TheCommCraft commented 3 months ago

What happens when you try pip install scratchcomnunication==2.10.6

banddans commented 3 months ago

Skärmavbild 2024-06-18 kl  09 58 16

TheCommCraft commented 3 months ago

Your python or pip is broken. You'd need to reinstall them for it to work.

banddans commented 3 months ago

I reinstalled it but I still get the same error.

TheCommCraft commented 3 months ago

You reinstalled python?

banddans @.***> schrieb am Mi., 19. Juni 2024, 19:04:

I reinstalled it but I still get the same error.

— Reply to this email directly, view it on GitHub https://github.com/TheCommCraft/scratchcommunication/issues/3#issuecomment-2179160937, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZXTN5QMBX5D54JQC3LZIG2YPAVCNFSM6AAAAABJI7DV4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGE3DAOJTG4 . You are receiving this because you commented.Message ID: @.***>

TheCommCraft commented 3 months ago

Try these and tell me if one or more install scratchcommunication==2.10.7:

pip install -no-cache scratchcommunication==2.10.7
pip install --upgrade --no-cache scratchcommunication
pip install --force-reinstall --no-cache scratchcommunication
pip install git+https://github.com/thecommcraft/scratchcommunication

If none of them work, please reply with the errors.

banddans commented 3 months ago

Yessss! I managed to connect but the cloud variable does still not change :(

TheCommCraft commented 3 months ago

In what way?

banddans @.***> schrieb am Mi., 19. Juni 2024, 20:36:

Yessss! I managed to connect but the cloud variable does still not change :(

— Reply to this email directly, view it on GitHub https://github.com/TheCommCraft/scratchcommunication/issues/3#issuecomment-2179295467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZUKMW5AKYXF6QTZAVDZIHFSPAVCNFSM6AAAAABJI7DV4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGI4TKNBWG4 . You are receiving this because you commented.Message ID: @.***>

banddans commented 3 months ago

What do you mean? When i try to change a cloud variable it just doesn't change.

TheCommCraft commented 3 months ago

Does it show an update in the cloud logs?

banddans @.***> schrieb am Do., 20. Juni 2024, 13:02:

What do you mean? When i try to change a cloud variable it just doesn't change.

— Reply to this email directly, view it on GitHub https://github.com/TheCommCraft/scratchcommunication/issues/3#issuecomment-2180400115, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATCKMZS672C2ZD2KWTQ6KFLZIKZDRAVCNFSM6AAAAABJI7DV4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBQGQYDAMJRGU . You are receiving this because you commented.Message ID: @.***>

TheCommCraft commented 3 months ago

?

TheCommCraft commented 3 months ago

Closing as completed. If you get any new errors, you can reopen this issue or create a new one.