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

ImportError: No module named samplebase #1155

Open SolidState74 opened 4 years ago

SolidState74 commented 4 years ago

I'm trying to import samplebase into my own script but get the following error:

Traceback (most recent call last): File "test.py", line 3, in from samplebase import SampleBase ImportError: No module named samplebase

I am very new to Python, so I'm sure I've (not) done something necessary. How do I include the samplebase import into my own custom script?

robgyiv commented 4 years ago

Is your test.py file in the same directory as the samplebase.py file?

If not, you could try putting test.py in rpi-rgb-led-matrix/bindings/python/samples.