ScriptLineStudios / pygame_shaders

a library to easily integrate shaders into your new or existing pygame projects
https://pygame-shaders.readthedocs.io/en/latest/
MIT License
49 stars 4 forks source link

module 'pygame_shaders' has no attribute 'DefaultScreenShader' #9

Closed John-Dekka closed 1 year ago

John-Dekka commented 1 year ago

Hei there,

just found this module and want to give it a try. But the very first example fails with "module 'pygame_shaders' has no attribute 'DefaultScreenShader'".

What did I do wrong here? :)

John-Dekka commented 1 year ago

Oh, nevermind. The package just got updated here. :+1:

pip install git+https://github.com/ScriptLineStudios/pygame_shaders.git

Works fine now. Thanks!

ScriptLineStudios commented 1 year ago

Yeah its currently an update in progress, The new versions should be released on pypi soon! In the meantime if you catch any typos in the documentation, please let me know!

void4 commented 3 months ago

(This is still the case)

joereynolds commented 3 months ago

Just tried running it and came across this. The issue shouldn't be closed surely?

non-npc commented 2 months ago

same issue here, just installed it using pip and the examples give this error. testing on windows 10 64bit x86.

I just noticed that the version installed with pip is missing some code. I found the missing function in a different version of the code here https://raw.githubusercontent.com/ScriptLineStudios/pygame_shaders/9c0723e465f8427a4907c3382ba868a45cecea0a/pygame_shaders/pygame_shaders.py but this introduces a new error: ImportError: cannot import name 'clear' from 'pygame_shaders.pygame_shaders' (C:\Python\Python312\Lib\site-packages\pygame_shaders\pygame_shaders.py)