scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

Error connecting to Turbowarp cloud

Open htmlcoder1562 opened this issue 10 months ago • 13 comments

I only ran this part of my code:

import scratchattach as scratch3
from getpass import getpass
# try:
do_finally = True
session = scratch3.login(username="fhghfvhgfv", password=getpass("Confirm password:"))
conn = session.connect_tw_cloud(project_id=877175882, contact="fhghfvhgfv", purpose="Server")

And it had an error on the last line.

Traceback (most recent call last):
  File "c:\Users\nolan\OneDrive\Documents\Code\python\Space_generate\main.py", line 6, in <module>
    conn = session.connect_tw_cloud(project_id=877175882, contact="fhghfvhgfv", purpose="Server")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\nolan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\scratchattach\site\session.py", line 582, in connect_tw_cloud
    return cloud.TwCloud(project_id=project_id, purpose=purpose, contact=contact, cloud_host=cloud_host, _session=self)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: TwCloud.__init__() got an unexpected keyword argument '_session'

htmlcoder1562 avatar Feb 04 '25 15:02 htmlcoder1562