hzeller / rpi-rgb-led-matrix

Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO
GNU General Public License v2.0
3.64k stars 1.16k forks source link

Python Samples Errors #1163

Open mysecretstache opened 3 years ago

mysecretstache commented 3 years ago

Hello, I've compiled and the API demo is working fine, but when I try to run the python samples, I'm getting an error message.

Traceback (most recent call last): File "./runtext.py", line 3, in from samplebase import SampleBase File "/home/pi/rpi-rgb-led-matrix/bindings/python/samples/samplebase.py", line 7, in from rgbmatrix import RGBMatrix, RGBMatrixOptions ImportError: cannot import name RGBMatrixOptions

I'm getting this with all the python examples.

hzeller commented 3 years ago

When you installed the Python binding as a pre-requisite to use the Python binding, you also chose which Python version to use. Make sure to run the examples with the same Python version.

mysecretstache commented 3 years ago

Got it. I though I had installed for 2.7 & 3. when I forced to run with python 3 it is working now. thank you

On Sep 27, 2020, at 1:18 PM, Henner Zeller notifications@github.com wrote:

When you installed the Python binding https://github.com/hzeller/rpi-rgb-led-matrix/tree/master/bindings/python as a pre-requisite to use the Python binding, you also chose which Python version to use. Make sure to run the examples with the same Python version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hzeller/rpi-rgb-led-matrix/issues/1163#issuecomment-699662516, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGGXEOLZ3LLRXRJV5RHCHNTSH5XXHANCNFSM4R3VLUEQ.