Tiny Core Base > Raspberry Pi

Python 3.6 is unable to find Python's smbus module

<< < (2/3) > >>

gatorback:
Thank you for the links and orientation: is the compile process the same as your recommendation in your other posting?:

http://forum.tinycorelinux.net/index.php/topic,23561.0.html

Have you had success in the past compiling 2.X source code with 3.X tools?  My intuition tells me this may not be a simple "crank the handle" exercise.  Again, your experience is appreciated.  If successful, I would be happy to submit the results for the library for other users to enjoy

Rich:
Hi gatorback

--- Quote from: gatorback on February 27, 2020, 11:19:54 AM --- ... If successful, I would be happy to submit the results for the library for other users to enjoy
--- End quote ---
Instructions for submitting extensions can be found here:
http://wiki.tinycorelinux.net/wiki:creating_extensions#submitting

Juanito:
Most python source code seems to compile equally well with python2.x or python3.x

From a quick look at the smbus2 source, it looks like the same instructions would work - which version of piCore are you using?

gatorback:
PiCore 9.03.  Good to hear that your intuition indicates an optimistic forecast.  README.rst indicates a "pure python" implementation:


--- Quote ---smbus2 is (yet another) pure Pythob implementation of the `python-smbus <http://www.lm-sensors.org/browser/i2c-tools/trunk/py-smbus/>`_ package.
--- End quote ---

This leads me to wonder if this provides any assurance that compiling with Python 3.X will be successful.

Juanito:

--- Quote from: gatorback on February 27, 2020, 11:35:58 AM ---This leads me to wonder if this provides any assurance that compiling with Python 3.X will be successful.

--- End quote ---

It only takes a couple of minutes to try and see  :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version