You can compile mraa & UPM for python3 but you'd have to recompile them manually the binaries are python2 only. If you have both python versions to avoid confusion just pass -DBUILDPYTHON3=ON then it'll require py3
I've managed building mraa, but when building upm, I get errors, saying that it can't find mraa lib. Thats what I need help with.
Did you 'make install' in /usr or /usr/local? Pass -DCMAKE_INSTALL_PREFIX:PATH=/usr to go int the default location, upm's cmake should find it then
Thank you, it really help. But before I had to make several steps: I update git code for mraa and upm and only after that libs got recognized.
And there are now (for a couple of weeks) Python 3 bindings as well in my repo, both for MRAA and UPM. Look for upm-python3 and mraa-python3 packages.
Hi. Thanks very much for python3 in repo and TC for detailed gist. Building upm and mraa from source works perfect.
But I can't find upm-python3 and mraa-python3 in repos:
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
are they were deleted?
Also when I try opkg upgrade libmraa0 from gist, I see:
root@edison:~# opkg upgrade libmraa0
Installing libmraa0 (0.7.2-r0) on root.
* check_data_file_clashes: Package libmraa0 wants to install file /usr/lib/python2.7/site-packages/_mraa.so
But that file is already provided by package * mraa
nsrb, if that's still actual - yes, I've removed python3 bindings from my repo (along with mraa and upm packages themselves) as these days the Intel team behind those libraries does a wonderful job of releasing them frequently, more frequently than I do - so it doesn't make sense any more.
As for the second error - the package is not called "mraa" and you need to modify opkg repo config to get the latest versions - see "Installing on your board" section of the main mraa readme here: GitHub - intel-iot-devkit/mraa: Low Level Skeleton Library for IO Communication on GNU/Linux platforms