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

I can't use project.create_remix()/project.create_remix() が使えない #314

Open
unajyuumoto-python-Js-html-css opened this issue Dec 28, 2024 · 6 comments

Comments

@unajyuumoto-python-Js-html-css

sessionに代入したloginで自分のアカウント(scratcherのアカウント)にログインし、projectに代入したconnect_projectを使って、project.create_remix()でリミックスしようとしました。
以下がエラーの文です。
Traceback (most recent call last): File "c:\users\フォルダ名1\フォルダ名2\フォルダ名3\ファイル名1.py", line 11, in <module> project.create_remix() ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Project' object has no attribute 'create_remix'

と出てしまいました。

@unajyuumoto-python-Js-html-css
Copy link
Author

11行目までのコードを入力します。
import scratchattach as scratch3

i = 0
while True:
session = scratch3.login("username","password")
#project = session.connect_project("project id") ←[#]を消して変更できるように
project = session.connect_project("project id")#project id memo
#project = session.connect_project("project id") ←[#]を消して変更できるように

project.create_remix() 問題のコード

@unajyuumoto-python-Js-html-css
Copy link
Author

wa py - 未設定 (ワークスペース) - Visual Studio Code 2024_12_28 19_32_01
ここが関数がないと言われている(VS Code)

@TheCommCraft
Copy link
Collaborator

Update your scratchattach

@unajyuumoto-python-Js-html-css
Copy link
Author

@TheCommCraft
Copy link
Collaborator

pip install -U scratchattach

@unajyuumoto-python-Js-html-css
Copy link
Author

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

2 participants