Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Issue attempting to run PandaParticle on Kivy

Kivy: 1.10.1 Python 2.7

I am attempting to use PandaParticle from github. It uses a particle system implemented in kivy, also found on github.

I have the garden.kivyparticle installed in my folder as I am able to use garden.Filebrowser and garden.Matplotlib in the garden folder as well.

My issue is when I run the PandaParticle from github I get the issue:

[INFO   ] Logger: Record log in C:\Users\user\.kivy\logs\kivy_18-12-
16_7.txt
[INFO   ] Kivy: v1.10.1
[INFO   ] Python: v2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
[INFO   ] Factory: 194 symbols loaded
[INFO   ] Image: Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO   ] Text: Provider: sdl2
[INFO   ] Window: Provider: sdl2
[INFO   ] GL: Using the "OpenGL" graphics system
[INFO   ] GL: GLEW initialization succeeded
[INFO   ] GL: Backend used <glew>
[INFO   ] GL: OpenGL version <4.4.0 - Build 22.20.16.4708>
[INFO   ] GL: OpenGL vendor <Intel>
[INFO   ] GL: OpenGL renderer <Intel(R) HD Graphics 630>
[INFO   ] GL: OpenGL parsed version: 4, 4
[INFO   ] GL: Shading version <4.40 - Build 22.20.16.4708>
[INFO   ] GL: Texture max size <16384>
[INFO   ] GL: Texture max units <32>
[INFO   ] Window: auto add sdl2 input provider
[INFO   ] Window: virtual keyboard not allowed, single mode, not docked
[INFO   ] VideoGstplayer: Using Gstreamer 1.14.1.0
[INFO   ] Video: Provider: gstplayer
[WARNING] stderr: Traceback (most recent call last):
[WARNING] stderr:   File "D:/user/python_projects/ParticlePanda/main.py", line 61, in <module>
[WARNING] stderr:     class ParticleBuilder(Widget):
[WARNING] stderr:   File "D:/user/python_projects/ParticlePanda/main.py", line 63, in ParticleBuilder
[WARNING] stderr:     demo_particle = ObjectProperty(kivyparticle.ParticleSystem)
[WARNING] stderr: AttributeError: 'module' object has no attribute 'ParticleSystem'

I see the issue seems to stem from "particle system" mentioned earlier, but I am unable to comprehend the issue.

Can someone please explain?

EDIT: Full working example

from kivy.app import App
import kivy.garden.particlesystem as kivyparticle


class KivyParticleTest(kivyparticle.ParticleSystem):
    def __init__(self, *args, **kwargs):
        print('This should work:', self)
        print(args, kwargs)


class TestApp(App):

    def build(self):
        test = KivyParticleTest()
        return test


if __name__ == '__main__':
    TestApp().run()

Comments