Skip to content

pylepton_overlay error Raspbian Bullseye #71

@mpv1953

Description

@mpv1953

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions