-
Notifications
You must be signed in to change notification settings - Fork 124
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
colorsys is not defined #11
Comments
Go to background.py and edit the first line so it reads: |
Yep this game is broken after my pull, I missed this but otherwise there are no errors whatsoever :/ |
Or, you don’t have Colorsys installed (or I am just thinking that it’s a pip package) |
Yeah, that really proves it. Just reinstall Python.
Btw, I use WSL all the time.
…________________________________
From: ByeMC ***@***.***>
Sent: Monday, April 19, 2021 11:27 AM
To: PolyMarsDev/Flappuccino ***@***.***>
Cc: fel1x0u ***@***.***>; Comment ***@***.***>
Subject: Re: [PolyMarsDev/Flappuccino] colorsys is not defined (#11)
Or, you don’t have Colorsys installed (or I am just thinking that it’s a pip package)
I think it's built into python, like random, argparse or json.
This is my clean Ubuntu WSL installation. As you can see, colorsys imported, but not sadsadas as it doesn't exist.
[image]<https://user-images.githubusercontent.com/77801870/115284901-27f33e00-a145-11eb-9a95-bff5d6ccc31e.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#11 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARR6QUMNRNYJAUXZ2EZVK63TJRY2DANCNFSM4ZFXDBWA>.
|
Fix: Traceback (most recent call last): File "main.py", line 277, in <module> main() File "main.py", line 161, in main o.setSprite(((player.position.y/50) % 100) / 100) File "/home/jan/Tmp/Flappuccino/background.py", line 9, in setSprite color = colorsys.hsv_to_rgb(tint,1,1) NameError: name 'colorsys' is not defined
Its not needed, you can just delete it lol |
Sorry, what isn't? The game won't really work without it iirc |
Same thing happened to me, I solved it by going to background.py and just putting: |
No its not |
Traceback (most recent call last):
File "C:\Users\Anthony admintrator\Desktop\Flappuccino-main\Flappuccino-main\main.py", line 277, in
main()
File "C:\Users\Anthony admintrator\Desktop\Flappuccino-main\Flappuccino-main\main.py", line 161, in main
o.setSprite(((player.position.y/50) % 100) / 100)
File "C:\Users\Anthony admintrator\Desktop\Flappuccino-main\Flappuccino-main\background.py", line 9, in setSprite
color = colorsys.hsv_to_rgb(tint,1,1)
NameError: name 'colorsys' is not defined
._.
The text was updated successfully, but these errors were encountered: