Home
Forums
New posts
Search forums
What's new
New posts
New profile posts
Latest activity
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Main category
Main forum
Mosfet Hat
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TonyD" data-source="post: 509" data-attributes="member: 37"><p>Giday</p><p>Further testing in spite of the error message when making the repo</p><p></p><p>I installed Python firmware using command</p><p></p><p>pi@raspberrypi:~/8mosind-rpi $ cd python</p><p>pi@raspberrypi:~/8mosind-rpi/python $ sudo python setup.py install</p><p></p><p>Below is the installed repo in Python that appears to work correctly</p><p>I turn on output 1 led 1 comes on</p><p>Please note that there are 2 warning with the install</p><p>It appears that the warnings have not effected the python firmware</p><p>Hear is the install screen result</p><p></p><p>pi@raspberrypi:~/8mosind-rpi $ cd python</p><p>pi@raspberrypi:~/8mosind-rpi/python $ sudo python setup.py install</p><p>running install</p><p>/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.</p><p> warnings.warn(</p><p>/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:146: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.</p><p> warnings.warn(</p><p>running bdist_egg</p><p>running egg_info</p><p>creating SM8mosind.egg-info</p><p>writing SM8mosind.egg-info/PKG-INFO</p><p>writing dependency_links to SM8mosind.egg-info/dependency_links.txt</p><p>writing requirements to SM8mosind.egg-info/requires.txt</p><p>writing top-level names to SM8mosind.egg-info/top_level.txt</p><p>writing manifest file 'SM8mosind.egg-info/SOURCES.txt'</p><p>reading manifest file 'SM8mosind.egg-info/SOURCES.txt'</p><p>adding license file 'LICENSE'</p><p>writing manifest file 'SM8mosind.egg-info/SOURCES.txt'</p><p>installing library code to build/bdist.linux-aarch64/egg</p><p>running install_lib</p><p>running build_py</p><p>creating build</p><p>creating build/lib</p><p>creating build/lib/lib8mosind</p><p>copying lib8mosind/__init__.py -> build/lib/lib8mosind</p><p>creating build/bdist.linux-aarch64</p><p>creating build/bdist.linux-aarch64/egg</p><p>creating build/bdist.linux-aarch64/egg/lib8mosind</p><p>copying build/lib/lib8mosind/__init__.py -> build/bdist.linux-aarch64/egg/lib8mosind</p><p>byte-compiling build/bdist.linux-aarch64/egg/lib8mosind/__init__.py to __init__.cpython-311.pyc</p><p>creating build/bdist.linux-aarch64/egg/EGG-INFO</p><p>copying SM8mosind.egg-info/PKG-INFO -> build/bdist.linux-aarch64/egg/EGG-INFO</p><p>copying SM8mosind.egg-info/SOURCES.txt -> build/bdist.linux-aarch64/egg/EGG-INFO</p><p>copying SM8mosind.egg-info/dependency_links.txt -> build/bdist.linux-aarch64/egg/EGG-INFO</p><p>copying SM8mosind.egg-info/requires.txt -> build/bdist.linux-aarch64/egg/EGG-INFO</p><p>copying SM8mosind.egg-info/top_level.txt -> build/bdist.linux-aarch64/egg/EGG-INFO</p><p>zip_safe flag not set; analyzing archive contents...</p><p>creating dist</p><p>creating 'dist/SM8mosind-1.0.1-py3.11.egg' and adding 'build/bdist.linux-aarch64/egg' to it</p><p>removing 'build/bdist.linux-aarch64/egg' (and everything under it)</p><p>Processing SM8mosind-1.0.1-py3.11.egg</p><p>Copying SM8mosind-1.0.1-py3.11.egg to /usr/local/lib/python3.11/dist-packages</p><p>Adding SM8mosind 1.0.1 to easy-install.pth file</p><p></p><p>Installed /usr/local/lib/python3.11/dist-packages/SM8mosind-1.0.1-py3.11.egg</p><p>Processing dependencies for SM8mosind==1.0.1</p><p>Searching for smbus2==0.4.2</p><p>Best match: smbus2 0.4.2</p><p>Adding smbus2 0.4.2 to easy-install.pth file</p><p></p><p>Using /usr/lib/python3/dist-packages</p><p>Finished processing dependencies for SM8mosind==1.0.1</p><p>pi@raspberrypi:~/8mosind-rpi/python $ </p><p>pi@raspberrypi:~/8mosind-rpi/python $ </p><p>pi@raspberrypi:~/8mosind-rpi/python $ python3</p><p>Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux</p><p>Type "help", "copyright", "credits" or "license" for more information.</p><p>>>> import lib8mosind as mos</p><p>>>> mos.get_all(0)</p><p>0</p><p>>>> mos.set(0, 1, 1)</p><p>>>> mos.get(0, 1)</p><p>1</p><p>>>> </p><p></p><p></p><p>Thanks for your assistance</p><p>Hope the above screen shot has been helpful & look forward to the web page link updated & further additions to the python firmware</p><p></p><p>Regards TonyD</p></blockquote><p></p>
[QUOTE="TonyD, post: 509, member: 37"] Giday Further testing in spite of the error message when making the repo I installed Python firmware using command pi@raspberrypi:~/8mosind-rpi $ cd python pi@raspberrypi:~/8mosind-rpi/python $ sudo python setup.py install Below is the installed repo in Python that appears to work correctly I turn on output 1 led 1 comes on Please note that there are 2 warning with the install It appears that the warnings have not effected the python firmware Hear is the install screen result pi@raspberrypi:~/8mosind-rpi $ cd python pi@raspberrypi:~/8mosind-rpi/python $ sudo python setup.py install running install /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:146: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools. warnings.warn( running bdist_egg running egg_info creating SM8mosind.egg-info writing SM8mosind.egg-info/PKG-INFO writing dependency_links to SM8mosind.egg-info/dependency_links.txt writing requirements to SM8mosind.egg-info/requires.txt writing top-level names to SM8mosind.egg-info/top_level.txt writing manifest file 'SM8mosind.egg-info/SOURCES.txt' reading manifest file 'SM8mosind.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'SM8mosind.egg-info/SOURCES.txt' installing library code to build/bdist.linux-aarch64/egg running install_lib running build_py creating build creating build/lib creating build/lib/lib8mosind copying lib8mosind/__init__.py -> build/lib/lib8mosind creating build/bdist.linux-aarch64 creating build/bdist.linux-aarch64/egg creating build/bdist.linux-aarch64/egg/lib8mosind copying build/lib/lib8mosind/__init__.py -> build/bdist.linux-aarch64/egg/lib8mosind byte-compiling build/bdist.linux-aarch64/egg/lib8mosind/__init__.py to __init__.cpython-311.pyc creating build/bdist.linux-aarch64/egg/EGG-INFO copying SM8mosind.egg-info/PKG-INFO -> build/bdist.linux-aarch64/egg/EGG-INFO copying SM8mosind.egg-info/SOURCES.txt -> build/bdist.linux-aarch64/egg/EGG-INFO copying SM8mosind.egg-info/dependency_links.txt -> build/bdist.linux-aarch64/egg/EGG-INFO copying SM8mosind.egg-info/requires.txt -> build/bdist.linux-aarch64/egg/EGG-INFO copying SM8mosind.egg-info/top_level.txt -> build/bdist.linux-aarch64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist/SM8mosind-1.0.1-py3.11.egg' and adding 'build/bdist.linux-aarch64/egg' to it removing 'build/bdist.linux-aarch64/egg' (and everything under it) Processing SM8mosind-1.0.1-py3.11.egg Copying SM8mosind-1.0.1-py3.11.egg to /usr/local/lib/python3.11/dist-packages Adding SM8mosind 1.0.1 to easy-install.pth file Installed /usr/local/lib/python3.11/dist-packages/SM8mosind-1.0.1-py3.11.egg Processing dependencies for SM8mosind==1.0.1 Searching for smbus2==0.4.2 Best match: smbus2 0.4.2 Adding smbus2 0.4.2 to easy-install.pth file Using /usr/lib/python3/dist-packages Finished processing dependencies for SM8mosind==1.0.1 pi@raspberrypi:~/8mosind-rpi/python $ pi@raspberrypi:~/8mosind-rpi/python $ pi@raspberrypi:~/8mosind-rpi/python $ python3 Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import lib8mosind as mos >>> mos.get_all(0) 0 >>> mos.set(0, 1, 1) >>> mos.get(0, 1) 1 >>> Thanks for your assistance Hope the above screen shot has been helpful & look forward to the web page link updated & further additions to the python firmware Regards TonyD [/QUOTE]
Verification
Post reply
Home
Forums
Main category
Main forum
Mosfet Hat
Top