cannot do import mraa
I have received an UP2 board (just the board without the OS, etc). We managed to install Ubuntu OS and installed anaconda with python=3.8.
Now, we want to use this board for IOT.
I tried the installation steps in https://github.com/eclipse/mraa. It didnt show any error. But when I tried to run import mraa inside python, it shows error "ModuleNotFoundError: No module named 'mraa'"
Even if I'm trying to run on python=3.6, I have the same error.
Can anyone please help to advise? Thanks!
Have you followed the instructions to install our Kernel?
MRAA cannot work on UP without that.
You can then install MRAA directly from their PPA: https://launchpad.net/~mraa/+archive/ubuntu/mraa
Hi, yes.. I did follow the instructions to install the kernel https://wiki.up-community.org/Ubuntu_18.04.
on top of that, I also updated the BIOS (otherwise, the Up2 board will hang after i deleted the old kernel).
I tested the pin, using the link https://wiki.up-community.org/Pinout_UP2, using the command watch -n 0.5 'echo 1 > value; sleep 0.5 ; echo 0 > value'. It works there.
For MRAA, I followed the steps at the https://wiki.up-community.org/MRAA/UPM. It doesnt give me any error messsage, but when I tried to run it inside Python, it gives the error message "ModuleNotFoundError: No module named 'mraa".
Next, I tried to install the RPi.GPIO, at https://wiki.up-community.org/RPi.GPIO, but it fails also. Is it supported for Ubuntu?
Thank you for your prompt answers.
The MRAA works properly with our tests and here is the whole procedure to setup the system and run a simple python mraa example:
On a fresh Ubuntu 18.04 installation, follow the steps as described on this link https://wiki.up-community.org/Ubuntu_18.04 to install UP kernel
sudo add-apt-repository ppa:aaeon-cm/upboard
Update the repository list
sudo apt update
Remove all the generic installed kernel
sudo apt-get autoremove --purge 'linux-.*generic'
Install our kernel:
sudo apt-get install linux-generic-hwe-18.04-edge-upboard
Install the updates:
sudo apt dist-upgrade -y
Follow the steps as described on this link https://wiki.up-community.org/MRAA/UPM to install MRAA
sudo add-apt-repository ppa:mraa/mraa
sudo apt-get update
sudo apt-get install mraa-tools mraa-examples libmraa1 libmraa-dev libupm-dev libupm1 upm-examples
sudo apt-get install python-mraa python3-mraa node-mraa libmraa-java
Hi, same problem.
I followed the steps to install the library. Kernel version is the following:
Linux ubuntu-agrivol 5.0.0-1-generic #2~upboard5-Ubuntu SMP Wed Apr 8 06:17:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
it seems that the public key NO_PUBKEY 579A863339B88DE4 does not exist for http://ppa.launchpad.net/mraa/mraa/ubuntu bionic InRelease
Trying to add repository : sudo add-apt-repository ppa:mraa/mraa
More info: https://launchpad.net/~mraa/+archive/ubuntu/mraa
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Error: retrieving gpg key timed out.
Solved ! It was a network problem (ipv6 addresses not resolved)
- 303 All Categories
- 104 Announcements & News
- 52 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 53 Unboxing & Project Sharing
- 24 Tech Updates
- 595 UP Products
- 6 UP Xtreme i12
- 1 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 13 UP Squared V2
- 41 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 49 UP Squared Pro
- 140 UP Xtreme
- 828 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral