Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not connect Tw server. / turbowarpに接続できない #317

Open
098orin opened this issue Dec 29, 2024 · 5 comments
Open

Can not connect Tw server. / turbowarpに接続できない #317

098orin opened this issue Dec 29, 2024 · 5 comments

Comments

@098orin
Copy link

098orin commented Dec 29, 2024

Windowsです。
On windows.

  File "<stdin>", line 1, in <module>
  File "C:\~\main.py", line 24, in main
    fun.set_cloud("time", unix_time) #the variable name is specified without the cloud emoji
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\~\fun.py", line 331, in set_cloud
    conn = session.connect_tw_cloud(value.project_id[g.i2], contact=msg)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\~\AppData\Local\Programs\Python\Python312\Lib\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'

もちろんsessionは正しく設定されています。
Of course, session is setting correctly.

session = scratch3.login(value.username, value.password)
@FAReTek1
Copy link
Collaborator

ah yes, pycharm was complaining about this

@098orin
Copy link
Author

098orin commented Dec 29, 2024

What can I do for this

@FAReTek1
Copy link
Collaborator

I'm not really sure how that part of scratchattach works so I was going to wait for others to see this issue. Other people seem to be able to use it though

@TheCommCraft
Copy link
Collaborator

You can either fix this by updating or the fix hasn't been pushed to pypi yet

@TimMcCool
Copy link
Owner

you can also use sa.get_tw_cloud instead of session.connect_tw_cloud (since tw's cloud server doesnt require authentication)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants