-
Notifications
You must be signed in to change notification settings - Fork 389
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
'shutil' is not defined #1105
Comments
It's a windows api according to here not really something easily imported on android. |
Naw, man, it's just part of Python. I literally just added the import one-liner to utils.py and it worked. |
Fair enough |
added import for shutil
To add onto this, logging.py and utils.py are the 2 files where shutil isn't imported but need to be imported. Platform: Arch Linux (cachyOS) |
Duplicate Issues
What happened?
YT-Spammer-Purge-2.18.0-Beta3
Termux on Android 14
File "/storage/emulated/0/Download/YTSP/YT-Spammer-Purge-2.18.0-Beta3/Scripts/logging.py", line 769, in add_sample consoleWidth = utils.get_terminal_size() ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/storage/emulated/0/Download/YTSP/YT-Spammer-Purge-2.18.0-Beta3/Scripts/utils.py", line 177, in get_terminal_size return shutil.get_terminal_size().columns ^^^^^^ NameError: name 'shutil' is not defined
You need to "import shutil" somewhere. That is all.
Release version
2.18.0-Beta3
Steps to reproduce
What platform are you seeing this problem on?
Linux (can also be ChromeOS)
Relevant log output
Screenshots
No response
The text was updated successfully, but these errors were encountered: