-
Notifications
You must be signed in to change notification settings - Fork 0
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
importing PygameShader when running script directly causes error: "no module named gaussianblur5x5" #1
Comments
Hi SkysurferKon,
Can you show me an example of script causing this issue ? It is highly recommended to use PIP for installing this library. C:\>pip install PygameShader
To use the Gaussian blur you would normally import the method shader_blur5x5_array24_inplace from | blur In Python :
To load all the methods from the libraryimport PygameShader This Error : This issue can eventually happen if you are trying to build the library from the source code using The line above will try to compile the cython code from the PYX files
|
. |
Thanks for writing this detailed explanation! Is PygameShader compatible with a PyInstaller "--onefile" exe file? |
Hi,
If you are a bit more adventurous you can also download the git source code and compile the library from source But to answer your question regarding the PyInstaller program , I would say yes, PygameShader is compatible with PyInstaller even though I never tried to use PyInstaller since this is a cython/python library that does not include any hook file but uses an external library that load with an import statement I used PyInstaller in the past for various project including project with C & Cython & python codes and would generate an executable file. In order to create a single file you would have to tweak and configure PyInstaller to know where to find all the source code, binaries and images that needs to be attached to the executable. |
Another utility that could perform the same task would be to use the great program call |
No description provided.
The text was updated successfully, but these errors were encountered: