Software Archive
Read-only legacy content
17060 Discussions

Problem with Examples for Other Languages

toadaze
Débutant
1 688 Visites

I was not able to run any of the JavaScript or Python examples for other languages:

HomeDocumentationNext Steps: Create Applications with DevKitAnalog I/O BasicsSample Code

 

Then by experimenting, I changed the line in the JavaScript example

var m = require("mraajs");

to

var m = require("mraa");

and it works OK.

Same thing in the Python example. I changed the line:

import pymraa

to

import mraa

and it runs OK.

Are these references to mraajs and pymraa just an error in documentation, or am I missing something?

I am running these directly on the Edison from its Linux command line.

 

 

 

0 Compliments
2 Réponses
NagaVenkat_K_Intel
1 688 Visites

Thanks Marvin. You are right, the documentation needs to be updated.

0 Compliments
Sulamita_G_Intel
Employé
1 688 Visites

Thank you indeed. I've fixed the samples. Let us know if you find any other broken sample.

0 Compliments
Répondre