Message Boards Message Boards

Mathematica 11.0.1 now available for the Raspberry Pi

GROUPS:

Hi all,

Mathematica 11.0.1 is now available for the Raspberry Pi on Raspbian. If you already have Mathematica installed on your Raspberry Pi, you can update with the following:

sudo apt-get update && sudo apt-get upgrade wolfram-engine

If you don't already have Mathematica installed you can run the following commands to install it:

sudo apt-get update && sudo apt-get install wolfram-engine

New features for the Raspberry Pi include :

Additionally, with the new release of WolframScript on the Raspberry Pi, you can install WolframScript standalone and run it without a local kernel against the cloud using the -cloud option. This means you can use the Wolfram Language through WolframScript on the Raspberry Pi without having wolfram-engine installed by running it against the cloud. See the documentation page for WolframScript for more details.

POSTED BY: Ian Johnson
Answer
1 month ago

Hi,

I upgraded to Mathematica 11.0.1, but it seems that I cannot use the "Get Help" option. This is what I'm doing: I write a function on a notebook, then I right click on it. And then I click "Get Help" on the drop down menu. But not matter the function I always get an error. For example if I do that with the function Classify I get:

Your search - Classify - in Documentation Center did not match any documents.

Is anybody else getting the same error?

Thanks,

POSTED BY: Icy Toc
Answer
1 month ago

Hello,

The Documentation Center is not shipped with the Raspberry Pi release of the Wolfram Language, so you will need to use the online version of the Documentation Center online at : reference.wolfram.com.

Ian

POSTED BY: Ian Johnson
Answer
1 month ago

I tested Mma 11.0.1 / Wolfram 11.01 today on a Raspberry Pi 3 Model B and had major troubles with the GPIO functions (FindDevices, DeviceConfigure etc.). I am getting errors like these:

LibraryFunction::initerr: A nonzero error code 6 was returned during the initialization of the library /opt/Wolfram/WolframEngine/11.0/SystemFiles/Components/MRAALink/LibraryResources/Linux-ARM/MRAALink.so.

LibraryFunction::libload: The function GetPlatform was not loaded from the file /opt/Wolfram/WolframEngine/11.0/SystemFiles/Components/MRAALink/LibraryResources/Linux-ARM/MRAALink.so.

LibraryFunction::initerr: A nonzero error code 6 was returned during the initialization of the library /opt/Wolfram/WolframEngine/11.0/SystemFiles/Components/MRAALink/LibraryResources/Linux-ARM/MRAALink.so.

LibraryFunction::libload: The function InitializePin was not loaded from the file /opt/Wolfram/WolframEngine/11.0/SystemFiles/Components/MRAALink/LibraryResources/Linux-ARM/MRAALink.so.

LibraryFunction::initerr: A nonzero error code 6 was returned during the initialization of the library /opt/Wolfram/WolframEngine/11.0/SystemFiles/Components/MRAALink/LibraryResources/Linux-ARM/MRAALink.so.

I had previously used MMa 10 on the same hardware and it worked fine.

POSTED BY: Michael Kofler
Answer
18 days ago

Hi,

Can you evaluate:

PacletInformation["MRAALink"]
SystemInformation["Small"]

You may still have an older version of the GPIO library active.

Thanks, Ian

POSTED BY: Ian Johnson
Answer
18 days ago

Wolfram Language 11.0.1 Engine for Linux ARM (32-bit) Copyright 1988-2017 Wolfram Research, Inc.

In[1]:= PacletInformation["MRAALink"]                                                                                                                     

Out[1]= {Name -> MRAALink, Version -> 1.0.2, BuildNumber -> , Qualifier -> , WolframVersion -> 10+, SystemID -> All, Description -> , Category -> , 

>    Creator -> , Publisher -> , Support -> , Internal -> False, Location -> /opt/Wolfram/WolframEngine/11.0/SystemFiles/Components/MRAALink, 

>    Context -> {MRAALink`}, Enabled -> True, Loading -> Manual}

In[2]:= SystemInformation["Small"]                                                                                                                        

Out[2]= {Kernel -> {SystemID -> Linux-ARM, ReleaseID -> 11.0.1.0 (2017031701, 2017011701), 

>      CreationDate -> DateObject[{2017, 1, 17}, TimeObject[{12, 45, 19.}, TimeZone -> 2.], TimeZone -> 2.]}, FrontEnd -> Missing[NotActive]}

I have a totally up-to-date Raspbian installation. But perhaps I am too up-to-date with kernel 4.9 running (from rpi-update). I'll test if this is the reason.

Thanks for your reply,

Michael
POSTED BY: Michael Kofler
Answer
17 days ago

Just to let you know: I downgraded to kernel 4.4.50 (rpi-update 52241088c1da59a359110d39c1875cda56496764) and everything is fine again. Thanks for hinting to the right direction!

Michael
POSTED BY: Michael Kofler
Answer
17 days ago

Thanks for the information! I'm glad you got it working again.

From the looks of your situation, there's likely a problem with the GPIO library we use, MRAA, and the 4.9 linux kernel. We will get to work fixing this.

Ian

POSTED BY: Ian Johnson
Answer
17 days ago

Hi,

Were you able to fix the issue with the MRAA library initialization. I can't open the camera or get any of the sense hat sensor data with 11.01.

I tested camera and sense hat with Python, and they work just fine.

Just tried with a clean install with Raspbian from rpi.org and still crashes. Can you help me with this? Thanks

POSTED BY: Giovani Diniz
Answer
15 days ago

Are you having the same problem as Michael Kofler?

The problem above was resolved by downgrading the linux kernel back to 4.4, see instructions on how to do this here : https://www.raspberrypi.org/documentation/linux/kernel/updating.md

Ian

POSTED BY: Ian Johnson
Answer
15 days ago

I'm running 4.4.5. Should I use a previous one?

POSTED BY: Giovani Diniz
Answer
15 days ago

Then you likely have a different problem, can you post the specific error messages you're having and what input triggers them?

POSTED BY: Ian Johnson
Answer
15 days ago

I have issues with the camera and the sense hat. Not quite sure if they are related.

While trying to DeviceRead["RaspiCam"] I don't get any errors, but the connection with the camera drops and I have to run DeviceOpen["RaspiCam"] again to establish the connection. Running raspistill works fine, so I know the camera is functioning.

Also, if I use Run["raspistill etc...] followed by Import[%] it also works.

On the hat, however, I tried to DeviceOpen["SenseHAT"] I get the error DeviceOpen::mraaInitFailure Failed to Initialize MRAA Library.

Again, if I run a simple python script the hat works just fine, so I also know it not malfunctioning.

A couple of things that may , or may not be related to this: I had to increase the GPU memory to use my NoIR camera to work. I read someone's post about a Package Raspicam.m, under WolframEngine/Devices/ but it is not present in my installation. The post was not very clear, so I'm not sure if they wrote it themselves.

I ran PacletInformation["MRAALink"] just in case it helped:

{"Name" -> "MRAALink", "Version" -> "1.0.2", "BuildNumber" -> "", 
 "Qualifier" -> "", "WolframVersion" -> "10+", "SystemID" -> All, 
 "Description" -> "", "Category" -> "", "Creator" -> "", 
 "Publisher" -> "", "Support" -> "", "Internal" -> False, 
 "Location" -> 
  "/opt/Wolfram/WolframEngine/11.0/SystemFiles/Components/MRAALink", 
 "Context" -> {"MRAALink`"}, "Enabled" -> True, "Loading" -> Manual}

and SystemInformation["Small"]:

{"Kernel" -> {"SystemID" -> "Linux-ARM", 
   "ReleaseID" -> "11.0.1.0 (2017031701, 2017011701)", 
   "CreationDate" -> 
    DateObject[{2017, 1, 17}, 
     TimeObject[{12, 45, 19.}, TimeZone -> 0.], TimeZone -> 0.]}, 
 "FrontEnd" -> {"OperatingSystem" -> "Unix", 
   "ReleaseID" -> "11.0.1.0 (2017031701, 2017011701)", 
   "CreationDate" -> 
    DateObject[{2017, 1, 17}, 
     TimeObject[{15, 33, 25.}, TimeZone -> 0.], TimeZone -> 0.]}}

Thank you for your help. Please let me know if I can provide more information

POSTED BY: Giovani Diniz
Answer
14 days ago

We're unable to reproduce this on our Raspberry Pi 3's, so I'm wondering if you can post the following output from a terminal window on the Raspberry Pi:

cat /proc/cpuinfo

I suspect that your model may be Revision a32082, in which case your fix is the same as above and just needs an update to the MRAA library, which we are working on.

Ian

POSTED BY: Ian Johnson
Answer
13 days ago

Hi Ian,

processor : 0 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 76.80 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 1 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 76.80 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 2 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 76.80 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

processor : 3 model name : ARMv7 Processor rev 4 (v7l) BogoMIPS : 76.80 Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x0 CPU part : 0xd03 CPU revision : 4

Hardware : BCM2709 Revision : a22082 Serial : 000000005d45bd7c

Seems my Pi's revision is a22082

Thanks

POSTED BY: Giovani Diniz
Answer
13 days ago

Is there a problem withthe a22082 revision as well? I'd be happy to run any tests on my pi if that would help solve the issue.

Please let me know.

Thanks!

POSTED BY: Giovani Diniz
Answer
11 days ago

Hi, we have updated MRAALink on the paclet servers.

You can update the paclet with :

PacletUpdate["MRAALink"]

and then restart the kernel and this should resolve your issue.

Thanks,

Ian

POSTED BY: Ian Johnson
Answer
11 days ago

Just FYI, it appears that this only works if you already have Mathematica 11 on your Pi. I tried to upgrade the Pi I have (which has Mathematica 10) and all I could do was get the latest version of Mathematica 10.

POSTED BY: Joe Gilray
Answer
7 hours ago

Hi,

Did you do just sudo apt-get upgrade? If you already have it installed, you will need to perform the wolfram engine upgrade directly like so :

sudo apt-get update && sudo apt-get upgrade wolfram-engine

Thanks

Ian

POSTED BY: Ian Johnson
Answer
7 hours ago

Hi Ian- When I heard 11.0.1 was available, I restored my RPi, then sudo apt-get update followed by sudo apt-get dist-upgrade. OK- but when I tried to upgrade Mathematica to 11.0.1 by using the command line entries you show, something installs, but it is the original 10.0.0!

Anybody else having this problem?

Sorry for any breach in forum etiquette. I was excited to find a knowledgeable person...

Carl

POSTED BY: Carl Smith
Answer
6 hours ago

Group Abstract Group Abstract