groupgets / pylepton

Quick and dirty pure python library for interfacing with FLIR lepton
MIT License
208 stars 93 forks source link

pylepton_overlay error Raspbian Bullseye #71

Open mpv1953 opened 2 years ago

mpv1953 commented 2 years ago

I am trying to run ./pylepton_overlay on Raspbian Bullseye (32bit). Python is the system default v3.9.2. I get this error in execution:

File "/home/pi/projects/pylepton/./pylepton_overlay", line 26, in main o = camera.add_overlay(np.getbuffer(a), size=(320,240), layer=3, alpha=int(alpha), crop=(0,0,80,60), vflip=flip_v) File "/usr/lib/python3/dist-packages/numpy/init.py", line 214, in getattr raise AttributeError("module {!r} has no attribute " AttributeError: module 'numpy' has no attribute 'getbuffer'

I looked around and see that Python3 "numpy" really does not have a 'getbuffer' function. Is there a workaround for this, or an update that will run on Bullseye?

Regards, Mike Vergara