Python relay board installation is successful, but not persistent (does not survive reboot). The installation file (
setup.py) published on Github
INSTALLATION:tc@box:~/megaio-rpi/python/megaio$ sudo -H python setup.py install
running install
running bdist_egg
running egg_info
writing megaio.egg-info/PKG-INFO
writing top-level names to megaio.egg-info/top_level.txt
writing dependency_links to megaio.egg-info/dependency_links.txt
reading manifest file 'megaio.egg-info/SOURCES.txt'
writing manifest file 'megaio.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv6l/egg
running install_lib
running build_py
creating build/bdist.linux-armv6l/egg
creating build/bdist.linux-armv6l/egg/megaio
copying build/lib/megaio/__init__.py -> build/bdist.linux-armv6l/egg/megaio
byte-compiling build/bdist.linux-armv6l/egg/megaio/__init__.py to __init__.pyc
creating build/bdist.linux-armv6l/egg/EGG-INFO
copying megaio.egg-info/PKG-INFO -> build/bdist.linux-armv6l/egg/EGG-INFO
copying megaio.egg-info/SOURCES.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying megaio.egg-info/dependency_links.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
copying megaio.egg-info/top_level.txt -> build/bdist.linux-armv6l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/megaio-1.3.1-py2.7.egg' and adding 'build/bdist.linux-armv6l/egg' to it
removing 'build/bdist.linux-armv6l/egg' (and everything under it)
Processing megaio-1.3.1-py2.7.egg
Removing /usr/local/lib/python2.7/site-packages/megaio-1.3.1-py2.7.egg
Copying megaio-1.3.1-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding megaio 1.3.1 to easy-install.pth file
Installed /usr/local/lib/python2.7/site-packages/megaio-1.3.1-py2.7.egg
Processing dependencies for megaio==1.3.1
Finished processing dependencies for megaio==1.3.1
INSTALLATION TEST
tc@box:~/megaio-rpi/python/megaio$ sudo python
Python 2.7.13 (default, Dec 23 2016, 18:28:09)
[GCC 6.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import megaio
>>> megaio
<module 'megaio' from 'megaio/__init__.pyc'>
>>>
QUESTIONWhat is the process to make python installs persistent?
tc@box:~$ sudo python
Python 2.7.13 (default, Dec 23 2016, 18:28:09)
[GCC 6.2.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import megaio
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named megaio