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
5 months 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
5 months 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
5 months 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
4 months 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
4 months 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
4 months 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
4 months 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
4 months 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
4 months 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
4 months ago

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

POSTED BY: Giovani Diniz
Answer
4 months 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
4 months 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
4 months 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
4 months 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
4 months 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
4 months 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
4 months 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
4 months 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
4 months 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
4 months ago

What is the output of

ls /opt/Wolfram/WolframEngine

?

I don't think this should happen, but it's possible you have both versions installed. Alternatively you can try removing mathematica and reinstalling it completely with:

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

This will not delete any notebooks you may have created or any data you may have from using Mathematica inside ~/.WolframEngine or ~/.Wolfram Research

Thanks,

Ian

POSTED BY: Ian Johnson
Answer
4 months ago

Ian-

I followed your suggestion exactly. The ls command showed 10.0. Inputting the commands exactly as you suggested still resulted in installing 10.0! Indeed the last line of the output showed " Setting up wolfram-engine
(10.0.2+2015020304)..."

Now im wondering if you can only upgrade from the latest upgrade. I'm wondering if I could upgrade to 10.x, or whatever the last version of Mathematica available to RPI was...does anybody know how to make a "partial upgrade"? I can't be the only person having this problem. ( I confess to being a total beginner to RPI).

Thanks for responding... Carl

POSTED BY: Carl Smith
Answer
4 months ago

This most likely means you are running Raspbian Wheezy, for which the latest wolfram-engine package available is indeed 10.0.2+2015020304.

All later versions, as listed in

https://archive.raspberrypi.org/debian/pool/main/w/wolfram-engine/

require Raspbian Jessie.

POSTED BY: Ilian Gachevski
Answer
4 months ago

Ah...makes sense. A little bit of research shows me the change from Wheezy to Jessie is fraught with peril for a beginner. I don't know whether to plow ahead now or just wait for a Noobs card to come out with Jessie and Mathematica 11 ready to go.

Anyway, thank you for the info.

Carl

POSTED BY: Carl Smith
Answer
4 months ago

The upgrade from Wheezy to Jessie is quite straight forward if you want to just reinstall Raspbian, as the default NOOBS download already comes with Mathematica 11 + Raspbian Jessie : https://www.raspberrypi.org/downloads/noobs/

You can find information on how to install the download on your own SD card here : https://www.raspberrypi.org/learning/software-guide/

I'm not sure what vendors have updated their SD cards that come pre-loaded with NOOBS to have Jessie + 11, but most should have at least Jessie, which allows you to then run the above commands to upgrade Mathematica.

Thanks,

Ian

POSTED BY: Ian Johnson
Answer
4 months ago

Thanks- I'm going to try the download.

Thanks to all for your help.

Carl

POSTED BY: Carl Smith
Answer
4 months ago

Thanks Ian and Ilian-

I downloaded to an SD card this morning. When inserted in the RPi, it gave me the opportunity to select Raspbian PIXEL. Installed and running with Mathematica 11.0.1 now!

Carl

POSTED BY: Carl Smith
Answer
4 months ago

Group Abstract Group Abstract