Discuss Scratch

Sasha--seals
Scratcher
31 posts

scratchattach - A Scratch API wrapper (Python)

Turbo_yeeter wrote:

import scratchattach as sa

returns as:

ERROR: unknown command “import”
where did you write the “import scratchattach as sa”?
ababoin07
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

Turbo_yeeter wrote:

import scratchattach as sa

returns as:

ERROR: unknown command “import”
It’s a real problem ?!
kRxZy_kRxZy
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

ababoin07 wrote:

Turbo_yeeter wrote:

import scratchattach as sa

returns as:

ERROR: unknown command “import”
It’s a real problem ?!
Are you sure you ran this in python??
AlexDF16
Scratcher
26 posts

scratchattach - A Scratch API wrapper (Python)

kRxZy_kRxZy wrote:

ababoin07 wrote:

Turbo_yeeter wrote:

import scratchattach as sa

returns as:

ERROR: unknown command “import”
It’s a real problem ?!
Are you sure you ran this in python??
Guess not
define python
say [python]
-ExoByte-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
redspacecat
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
What error is it giving?
-ExoByte-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

redspacecat wrote:

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
What error is it giving?
'pip' is not recognized as an internal or external command,
operable program or batch file.
redspacecat
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

-ExoByte- wrote:

redspacecat wrote:

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
What error is it giving?
'pip' is not recognized as an internal or external command,
operable program or batch file.
Try
python -m pip install scratchattach
instead

Last edited by redspacecat (Jan. 19, 2025 06:04:08)

_c1919
Scratcher
37 posts

scratchattach - A Scratch API wrapper (Python)

AlexDF16 wrote:

kRxZy_kRxZy wrote:

ababoin07 wrote:

Turbo_yeeter wrote:

import scratchattach as sa

returns as:

ERROR: unknown command “import”
It’s a real problem ?!
Are you sure you ran this in python??
Guess not
define python
say [python]
I think so, he likely ran it in something like win11 powershell or Linux terminal
ababoin07
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

-ExoByte- wrote:

redspacecat wrote:

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
What error is it giving?
'pip' is not recognized as an internal or external command,
operable program or batch file.
You have to “add python to path” when ypu install python, that’s why it doesn’t recognize the command “pip”

Last edited by ababoin07 (Jan. 19, 2025 08:20:08)

-ExoByte-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

ababoin07 wrote:

-ExoByte- wrote:

redspacecat wrote:

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
What error is it giving?
'pip' is not recognized as an internal or external command,
operable program or batch file.
You have to “add python to path” when ypu install python, that’s why it doesn’t recognize the command “pip”
That's what I'm confused about. Usually, when I re-install Python, there's a little button that I always press that also adds Python to the path automatically. I did that twice and it still won't budge.
uukelele
Scratcher
12 posts

scratchattach - A Scratch API wrapper (Python)

-ExoByte- wrote:

ababoin07 wrote:

-ExoByte- wrote:

redspacecat wrote:

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
What error is it giving?
'pip' is not recognized as an internal or external command,
operable program or batch file.
You have to “add python to path” when ypu install python, that’s why it doesn’t recognize the command “pip”
That's what I'm confused about. Usually, when I re-install Python, there's a little button that I always press that also adds Python to the path automatically. I did that twice and it still won't budge.

Find IDLE from Start Menu.
>>> import sys
>>> sys.executable

Add that to path, you can also do
{executable} -m pip install scratchattach

from CMD
AlexDF16
Scratcher
26 posts

scratchattach - A Scratch API wrapper (Python)

redspacecat wrote:

-ExoByte- wrote:

redspacecat wrote:

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
What error is it giving?
'pip' is not recognized as an internal or external command,
operable program or batch file.
Try
python -m pip install scratchattach
instead
#200Internets
_c1919
Scratcher
37 posts

scratchattach - A Scratch API wrapper (Python)

-ExoByte- wrote:

ababoin07 wrote:

-ExoByte- wrote:

redspacecat wrote:

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
What error is it giving?
'pip' is not recognized as an internal or external command,
operable program or batch file.
You have to “add python to path” when ypu install python, that’s why it doesn’t recognize the command “pip”
That's what I'm confused about. Usually, when I re-install Python, there's a little button that I always press that also adds Python to the path automatically. I did that twice and it still won't budge.
I think you didn't install pip since it was probably not bundled with the installation. Python is a common issue scratchattach beginners have.
-ExoByte-
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

-ExoByte- wrote:

“pip install scratchattach” isn't working, yet I tried everything. Even re-installing Python didn't work.
After a stupidly long time, it installed perfectly. Thanks guys!
wvzack
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

This is just a help message for those who are having trouble installing scratchattach and get the error somewhat like unknown command pip: try searching your disk for “pip” after a bit you (if you installed pip) will see something like pipxxx.exe eg. For me it's pip311.exe, after run pip311 (or whatever it is) install -u scratchattach
MonkeyBean2
Scratcher
100+ posts

scratchattach - A Scratch API wrapper (Python)

wvzack wrote:

kRxZy_kRxZy wrote:

How to decode scratchattach activity?
What do you mean by decode?
you can make a cloud events thing and then log all the decoded packets using the catchall handler thing, whatever it's called (read the docs).
ababoin07
Scratcher
500+ posts

scratchattach - A Scratch API wrapper (Python)

Anyway, as far as I know, the cloud variables aren't working, so…
Sasha--seals
Scratcher
31 posts

scratchattach - A Scratch API wrapper (Python)

ababoin07 wrote:

Anyway, as far as I know, the cloud variables aren't working, so…
… so use turbowarp
kRxZy_kRxZy
Scratcher
1000+ posts

scratchattach - A Scratch API wrapper (Python)

bump

Powered by DjangoBB