Particle Panel alternative

Still giving me this error.
python patric.py
Known pipe types:
CocoaGraphicsPipe
(all display modules loaded.)
:display:gsg:glgsg(error): An error occurred while compiling GLSL shader vfx_f.glsl:
ERROR: vfx_f.glsl:22: ‘r’ : field selection requires structure or vector on left hand side
WARNING: vertex shader writes varying ‘color’ which is not active.
WARNING: vertex shader writes varying ‘vpos’ which is not active.
WARNING: vertex shader writes varying ‘fog_factor’ which is not active.