I'm working with the following Sequent Microsystems expansion hat:
https://sequentmicrosystems.com/product ... spberry-pi
And I'm having trouble getting their Python library installed in a way that is accessible to Python scripts in general.
I've followed the instructions they provide, and once I do so I'm able to run functions from their __init__.py script. I also get the results I expect after a successful install, after typing in the command window, megaind -h.
For context, here's their installation instructions:However, when I try importing their library into my own Python script, I get an error that indicates the module isn't found. Even when I import sys and os, and append the path to the folder structure withPlug your card on top of your Raspberry Pi and power up the system
Enable I2C communication on Raspberry Pi using raspi-config.
Install the software from github.com:
~$ git clone https://github.com/SequentMicrosystems/megaind-rpi.git
~$ cd /home/pi/megaind-rpi
~/megaind-rpi$ sudo make install
~/megaind-rpi$ megaind, in advance of calling the import command.Code:
sys.path.append("/home/pi/megaind-rpi")
pip install and apt install also has trouble finding the module.
Any suggestions on how to resolve it? Is there a certain folder I should be using for the library, instead of the default:
/home/pi/megaind-rpi
"Any suggestions on how to resolve it?"
By reference to the documentation provided by Sequent Microsystems, you don't mention having installed their Python library as specified here - https://github.com/SequentMicrosystems/ ... ter/python
(If you are using a recent version of RasPiOS as the OS platform on the RPi board hosting this add-on you may find that naive use of 'pip install' is not straightforward. There is Raspberry Pi official documentation on this topic, or you could seek support from Sequent Microsystems via https://github.com/SequentMicrosystems/ ... rpi/issues )
Statistics: Posted by B.Goode — Thu Nov 20, 2025 6:16 am