-
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
NameError: name 'colorsys' is not defined #9
Comments
So inside main.py add 1 line called: import colorsys In my pull request |
I FIxed It! It's not the main.py that is missing the "import colorsys", it's missing in the "background.py" file. Thank you! |
@NightZan999 Can you make a pull request with the changes? |
Yep on that right now lol. |
Okay I made a pull request which hopefully gets taken as it fixes this game... #10 |
I removed the "." before the imports and now this happens:
$ python3 main.py
pygame 2.0.0 (SDL 2.0.12, python 3.8.5)
Hello from the pygame community. https://www.pygame.org/contribute.html
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/shokifrend77/Downloads/flappuchino/Flappuccino-main/background.py", line 9, in setSprite
color = colorsys.hsv_to_rgb(tint,1,1)
NameError: name 'colorsys' is not defined
Thanks in advance!
The text was updated successfully, but these errors were encountered: