Software Archive
Read-only legacy content
17061 Discussions

Problem with Examples for Other Languages

toadaze
Beginner
516 Views

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 Kudos
2 Replies
NagaVenkat_K_Intel
516 Views

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

0 Kudos
Sulamita_G_Intel
Employee
516 Views

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

0 Kudos
Reply