<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Launch python script in html page in Intel® Xeon® Processor and Server Products</title>
    <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394668#M8642</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am happy to announce that it has found a way to run the script python. I left python-shell and I installed another library: python-runner and it works in xdk.&lt;/P&gt;&lt;P&gt;My main.js is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Required&lt;/P&gt;&lt;P&gt;var mraa = require('mraa'); //require mraa&lt;/P&gt;&lt;P&gt;var Cylon = require ('cylon');//require cylon&lt;/P&gt;&lt;P&gt;var querystring = require('querystring');&lt;/P&gt;&lt;P&gt;var express = require('express');&lt;/P&gt;&lt;P&gt;var Python = require("python-runner");&lt;/P&gt;&lt;P&gt;var fs = require('fs');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////START//&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Set Public folder&lt;/P&gt;&lt;P&gt;var app = express();&lt;/P&gt;&lt;P&gt;var path = require('path');  &lt;/P&gt;&lt;P&gt;app.use(express.static(__dirname + '/public'));&lt;/P&gt;&lt;P&gt;app.get('/', function (req, res) {&lt;/P&gt;&lt;P&gt;    res.sendFile(index.htm);&lt;/P&gt;&lt;P&gt;//    res.sendFile(path.join(__dirname + '/index.htm'));  &lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start Listening&lt;/P&gt;&lt;P&gt;var server = app.listen(5555, function(){&lt;/P&gt;&lt;P&gt;    var host = server.address().address;&lt;/P&gt;&lt;P&gt;    var port = server.address().port;   &lt;/P&gt;&lt;P&gt;    console.log('Example app listening at  &lt;A href="http://%s:%s"&gt;http://%s:%s&lt;/A&gt;', '192.168.0.139', port);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start dialog with index.html page&lt;/P&gt;&lt;P&gt;var io = require('&lt;A href="http://socket.io"&gt;socket.io&lt;/A&gt;').listen(server); // to dialog with the webpage&lt;/P&gt;&lt;P&gt;io.sockets.on('connection', function(socket){&lt;/P&gt;&lt;P&gt;//recieve client data with CYLON&lt;/P&gt;&lt;P&gt;    socket.on('launch_on', function(){ &lt;/P&gt;&lt;P&gt;        Python.execScript(&lt;/P&gt;&lt;P&gt;    __dirname + "/&lt;A href="http://example.py"&gt;example.py&lt;/A&gt;",&lt;/P&gt;&lt;P&gt;    {&lt;/P&gt;&lt;P&gt;        bin: "python2",&lt;/P&gt;&lt;P&gt;        args: [ "argument" ]&lt;/P&gt;&lt;P&gt;    }&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;.then(function(data){&lt;/P&gt;&lt;P&gt;    console.log(data);&lt;/P&gt;&lt;P&gt;    res.writeHead(200, {'Content-Type': 'text/plain'}); &lt;/P&gt;&lt;P&gt;    res.end('ok');&lt;/P&gt;&lt;P&gt;})&lt;/P&gt;&lt;P&gt;.catch(function(err){&lt;/P&gt;&lt;P&gt;    console.log("Error", err);&lt;/P&gt;&lt;P&gt;    res.writeHead(500, {'Content-Type': 'text/plain'}); &lt;/P&gt;&lt;P&gt;    res.end('error'); &lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;console.log('-------------------------------------------------------------');&lt;/P&gt;&lt;P&gt;console.log('The express app is running');&lt;/P&gt;&lt;P&gt;console.log('-------------------------------------------------------------');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my esample file is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import numpy as np&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print('Carma Carpooling')&lt;/P&gt;&lt;P&gt;print('Get there together')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a=np.array([1,2,3,4,5])&lt;/P&gt;&lt;P&gt;b=np.array([10,23,45,65,78])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;print(a)&lt;/P&gt;&lt;P&gt;print(b)&lt;/P&gt;&lt;P&gt;print('somma di a e b')&lt;/P&gt;&lt;P&gt;data=a+b&lt;/P&gt;&lt;P&gt;print(data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when I press the button in the browser in the xdk console I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carma Carpooling                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;Get there together                                                                                                                                                                      &lt;/P&gt;&lt;P&gt;[1 2 3 4 5]                                                                                                                                                                             &lt;/P&gt;&lt;P&gt;[10 23 45 65 78]                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;somma di a e b                                                                                                                                                                          &lt;/P&gt;&lt;P&gt;[11 25 48 69 83]                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;Error [ReferenceError: res is not defined]                                                                                                                                              &lt;/P&gt;&lt;P&gt;                                               &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand the error..but my next task is to send the data of python script (print, plot,...) to the browser.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Giuseppe.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Dec 2015 12:53:11 GMT</pubDate>
    <dc:creator>GRicc</dc:creator>
    <dc:date>2015-12-17T12:53:11Z</dc:date>
    <item>
      <title>Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394646#M8620</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a node js project into my Intel XDK. I use an Intel Edison and I want to use it as a web server.&lt;/P&gt;&lt;P&gt;I want to create an index.html page where there is a button and when the button is pressed it is launched a python script. I'm new on Edison and I have no idea to start with python on Edison. &lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 12:01:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394646#M8620</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-10-30T12:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394647#M8621</link>
      <description>&lt;P&gt;I will be moving this to the corresponding /community/tech/edison support group.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 17:01:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394647#M8621</guid>
      <dc:creator>Salem_W_Intel1</dc:creator>
      <dc:date>2015-10-30T17:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394648#M8622</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having your python code in your board, you can use a system call in order to start it.&lt;/P&gt;&lt;P&gt;For example if you have a code named&lt;B&gt; &lt;A href="http://blink.py"&gt;blink.py&lt;/A&gt;&lt;/B&gt; in &lt;B&gt;/home/root&lt;/B&gt; you can create a Javascript code to run it with:&lt;/P&gt;
&lt;P&gt;var SC = require('child_process')&lt;/P&gt;
&lt;P&gt;SC.exec("python /home/root/&lt;A href="http://blink.py"&gt;blink.py&lt;/A&gt;")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; Charlie</description>
      <pubDate>Fri, 30 Oct 2015 21:40:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394648#M8622</guid>
      <dc:creator>Carlos_M_Intel</dc:creator>
      <dc:date>2015-10-30T21:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394649#M8623</link>
      <description>&lt;P&gt;Hi Charlie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with your suggestion but it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my mani.js:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Required&lt;/P&gt;&lt;P&gt;var mraa = require('mraa'); //require mraa&lt;/P&gt;&lt;P&gt;var Cylon = require ('cylon');//require cylon&lt;/P&gt;&lt;P&gt;var querystring = require('querystring');&lt;/P&gt;&lt;P&gt;var express = require('express');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/////////////////////////////////////////////////START//&lt;/P&gt;&lt;P&gt;//Set Public folder&lt;/P&gt;&lt;P&gt;var app = express();&lt;/P&gt;&lt;P&gt;app.use(express.static(__dirname + '/public'));&lt;/P&gt;&lt;P&gt;app.get('/', function (req, res) {&lt;/P&gt;&lt;P&gt;  res.sendFile(index.html);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start Listening&lt;/P&gt;&lt;P&gt;var server = app.listen(5555, function(){&lt;/P&gt;&lt;P&gt;    var host = server.address().address;&lt;/P&gt;&lt;P&gt;    var port = server.address().port;  &lt;/P&gt;&lt;P&gt;    console.log('Example app listening at  &lt;A href="http://%s:%s"&gt;http://%s:%s&lt;/A&gt;', '192.168.0.179', port);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Start dialog with index.html page&lt;/P&gt;&lt;P&gt;var io = require('&lt;A href="http://socket.io"&gt;socket.io&lt;/A&gt;').listen(server); // to dialog with the webpage&lt;/P&gt;&lt;P&gt;io.sockets.on('connection', function(socket){&lt;/P&gt;&lt;P&gt;//recieve client data with CYLON&lt;/P&gt;&lt;P&gt;    socket.on('client_data', function(data){&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//recieve client data&lt;/P&gt;&lt;P&gt;    socket.on('launch_on', function(){&lt;/P&gt;&lt;P&gt;        var PythonShell = require('python-shell');&lt;/P&gt;&lt;P&gt;        var SC = require('child_process') &lt;/P&gt;&lt;P&gt;        SC.exec("python &lt;A href="http://test.py"&gt;test.py&lt;/A&gt;") &lt;/P&gt;&lt;P&gt;        console.log('script launched');&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this is my HTML page with the button (when it is pressed it is launched the python script):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    Elaborazione dati ECG-GSR&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;    &lt;A href="https://cdn.socket.io/socket.io-1.3.5.js"&gt;https://cdn.socket.io/socket.io-1.3.5.js&lt;/A&gt; &lt;A href="https://cdn.socket.io/socket.io-1.3.5.js"&gt;https://cdn.socket.io/socket.io-1.3.5.js&lt;/A&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;    &lt;A href="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"&gt;https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js&lt;/A&gt; &lt;A href="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js"&gt;https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js&lt;/A&gt;"&amp;gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    //Connect with the server&lt;/P&gt;&lt;P&gt;    var socket = io.connect();&lt;/P&gt;&lt;P&gt;    //Send data to the server&lt;/P&gt;&lt;P&gt;    $(document).ready(function(){&lt;/P&gt;&lt;P&gt;        socket.emit('launch_on', {'message': 'launch_on'});&lt;/P&gt;&lt;P&gt;        $('# launch_on').click(function(e){&lt;/P&gt;&lt;P&gt;            socket.emit('launch_on');&lt;/P&gt;&lt;P&gt;        });             &lt;/P&gt;&lt;P&gt;     });&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!---------------------------------------------------------------------------&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!---------------------------------- BODY -----------------------------------&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!---------------------------------------------------------------------------&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;            Launch python script&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;            Lancia Script&lt;/P&gt;&lt;P&gt;                   &lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping this is helpful for a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 12:05:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394649#M8623</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-11-05T12:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394650#M8624</link>
      <description>&lt;P&gt;what does "does not work" mean? do you get an error message?&lt;/P&gt;&lt;P&gt;Maybe you need to put the full path "/usr/bin/python"?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 12:19:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394650#M8624</guid>
      <dc:creator>Matthias_H_Intel</dc:creator>
      <dc:date>2015-11-05T12:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394651#M8625</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"does not work" it means when I press the button on the HTML page the python script don't show any result.&lt;/P&gt;&lt;P&gt;My python script is a simple print.&lt;/P&gt;&lt;P&gt;This is my HTML page in the browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2015 14:48:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394651#M8625</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-11-05T14:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394652#M8626</link>
      <description>&lt;P&gt;Hi Giussepe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have updates on this?&lt;/P&gt;&lt;P&gt;I saw on your code that you are not using Python-Shell, have you tried with something like:&lt;/P&gt;
&lt;P&gt;var PythonShell = require('python-shell');&lt;/P&gt;
&lt;P&gt;PythonShell.run('&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;',function(err){&lt;/P&gt;
&lt;P&gt;        if (err) throw err;&lt;/P&gt;
&lt;P&gt;        console.log('finished');&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;console.log('script launched');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 01:10:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394652#M8626</guid>
      <dc:creator>Carlos_M_Intel</dc:creator>
      <dc:date>2015-11-10T01:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394653#M8627</link>
      <description>&lt;P&gt;Hi Charlie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try with your suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//recieve client data&lt;/P&gt;&lt;P&gt;    socket.on('launch_on', function(){    &lt;/P&gt;&lt;P&gt;        var PythonShell = require('python-shell');&lt;/P&gt;&lt;P&gt;        PythonShell.run('public/&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;',function(err){&lt;/P&gt;&lt;P&gt;        if (err) throw err;&lt;/P&gt;&lt;P&gt;        console.log('finished');&lt;/P&gt;&lt;P&gt;    });&lt;/P&gt;&lt;P&gt;});      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I receive the errors shown below. The file &lt;A href="http://test.py"&gt;test.py&lt;/A&gt; is located in the public fold.&lt;/P&gt;&lt;P&gt;Some idea to resolve these errors?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;giuseppe&lt;/P&gt;&lt;P&gt;                                                                                                                 &lt;/P&gt;&lt;P&gt;The express app is running                                                                                                                                                              &lt;/P&gt;&lt;P&gt;-------------------------------------------------------------                                                                                                                           &lt;/P&gt;&lt;P&gt;Example app listening at &lt;A href="http://192.168.0.231:5555"&gt;http://192.168.0.231:5555&lt;/A&gt; &lt;A href="http://192.168.0.231:5555"&gt;http://192.168.0.231:5555&lt;/A&gt;                                                                                                                                      &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;ERROR: /home/root/.node_app_slot/main.js:36                                                                                                                                             &lt;/P&gt;&lt;P&gt;ERROR:         if (err) throw err;                                                                                                                                                      &lt;/P&gt;&lt;P&gt;      ERROR:                  ^                                                                                                                                                         &lt;/P&gt;&lt;P&gt;ERROR: Error: python: can't open file 'public/&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;': [Errno 2] No such file or directory                                                                                             &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;    at PythonShell.parseError (/home/root/node_modules/python-shell/index.js:173:17)                                                                                                    &lt;/P&gt;&lt;P&gt;    at ChildProcess. (/home/root/node_modules/python-shell/index.js:80:28)                                                                                                  &lt;/P&gt;&lt;P&gt;    at ChildProcess.emit (events.js:98:17)                                                                                                                                              &lt;/P&gt;&lt;P&gt;    at Process.ChildProcess._handle.onexit (child_process.js:820:12) &lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 11:50:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394653#M8627</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-11-16T11:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394654#M8628</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried to put the entire location of the file instead of using &lt;B&gt;public/&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;?&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Also, is the same outcome when you put the&lt;B&gt; &lt;A href="http://test.py"&gt;test.py&lt;/A&gt;&lt;/B&gt; in the same folder of &lt;B&gt;index.html&lt;/B&gt; and your &lt;B&gt;main.js&lt;/B&gt;?&lt;/P&gt;&lt;P&gt;What is the output of running:&lt;/P&gt;&lt;P&gt;&lt;B&gt;node --version&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;npm --version&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;configure_edison –version&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 21:17:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394654#M8628</guid>
      <dc:creator>Carlos_M_Intel</dc:creator>
      <dc:date>2015-11-19T21:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394655#M8629</link>
      <description>&lt;P&gt;Hi Charlie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;putting &lt;A href="http://test.py"&gt;test.py&lt;/A&gt; in public or in the same directory of main.js don't changes anything. I have this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example app listening at &lt;A href="http://192.168.0.128:5555"&gt;http://192.168.0.128:5555&lt;/A&gt; &lt;A href="http://192.168.0.128:5555"&gt;http://192.168.0.128:5555&lt;/A&gt;                                                                                                                                      &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;ERROR: /home/root/.node_app_slot/main.js:39                                                                                                                                             &lt;/P&gt;&lt;P&gt;ERROR:         if (err) throw err;                                                                                                                                                      &lt;/P&gt;&lt;P&gt;          ERROR:              ^                                                                                                                                                         &lt;/P&gt;&lt;P&gt;ERROR: Error: python: can't open file '&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;': [Errno 2] No such file or directory                                                                                                    &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;    at PythonShell.parseError (/usr/lib/node_modules/python-shell/index.js:173:17)                                                                                                      &lt;/P&gt;&lt;P&gt;    at ChildProcess. (/usr/lib/node_modules/python-shell/index.js:80:28)                                                                                                     &lt;/P&gt;&lt;P&gt;    at ChildProcess.emit (events.js:98:17)                                                                                                                                              &lt;/P&gt;&lt;P&gt;    at Process.ChildProcess._handle.onexit (child_process.js:820:12)            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The results of the commands suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@edison:~#  node --version                                                                                                                                                           &lt;/P&gt;&lt;P&gt;v0.10.38                                                                                                                                                                                &lt;/P&gt;&lt;P&gt;root@edison:~#  npm --version                                                                                                                                                            &lt;/P&gt;&lt;P&gt;3.3.10                                                                                                                                                                                  &lt;/P&gt;&lt;P&gt;root@edison:~#  configure_edison --version                                                                                                                                               &lt;/P&gt;&lt;P&gt;159        &lt;/P&gt;&lt;P&gt;               &lt;/P&gt;&lt;P&gt;Thanks for your attention.&lt;/P&gt;&amp;lt;p style="font-family: Menlo, 'DejaVu Sans Mono', Consolas, 'Liberation Mono', Courier, 'Ubuntu...</description>
      <pubDate>Fri, 20 Nov 2015 10:14:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394655#M8629</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-11-20T10:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394656#M8630</link>
      <description>&lt;P&gt;Hi giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if you are running the same code as the one is attached.&lt;/P&gt;&lt;P&gt;Also, could you post a screenshot of what you get when you type &lt;B&gt;ls -la&lt;/B&gt; in the folder where you have the &lt;B&gt;main.js&lt;/B&gt;, the &lt;B&gt;index.html&lt;/B&gt; and &lt;B&gt;&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;&lt;/B&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 23:26:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394656#M8630</guid>
      <dc:creator>Carlos_M_Intel</dc:creator>
      <dc:date>2015-11-20T23:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394657#M8631</link>
      <description>&lt;P&gt;Hi Charlie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code used is the same of my past post.&lt;/P&gt;&lt;P&gt;This is a screen shot of my Intel XDK IoT Edition when I give the ls -la command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Giuseppe.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:08:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394657#M8631</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-11-23T10:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394658#M8632</link>
      <description>&lt;P&gt;have you tried the debugger yet?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 11:54:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394658#M8632</guid>
      <dc:creator>Matthias_H_Intel</dc:creator>
      <dc:date>2015-11-23T11:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394659#M8633</link>
      <description>&lt;P&gt;I just tested it: apparently absolute paths (like "/root/&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;") don't seem to work but rather relative paths to the upload folder /opt/xdk-daemon. I.e. "/root/&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;" would translate into "../../root/&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;" &lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 22:21:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394659#M8633</guid>
      <dc:creator>Matthias_H_Intel</dc:creator>
      <dc:date>2015-11-23T22:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394660#M8634</link>
      <description>&lt;P&gt;Thanks for your replies.&lt;/P&gt;&lt;P&gt;I put my &lt;A href="http://test.py"&gt;test.py&lt;/A&gt; in the root directory and I tried with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;socket.on('launch_on', function(){    &lt;/P&gt;&lt;P&gt;        var PythonShell = require('python-shell');&lt;/P&gt;&lt;P&gt;        PythonShell.run('../../root/&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;', function(err){&lt;/P&gt;&lt;P&gt;        if (err) throw err;  &lt;/P&gt;&lt;P&gt;        console.log(err);&lt;/P&gt;&lt;P&gt;        console.log('finished');&lt;/P&gt;&lt;P&gt;    });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as suggested but I have these errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example app listening at &lt;A href="http://192.168.0.154:5555"&gt;http://192.168.0.154:5555&lt;/A&gt; &lt;A href="http://192.168.0.154:5555"&gt;http://192.168.0.154:5555&lt;/A&gt;                                                                                                                                      &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;ERROR: /home/root/.node_app_slot/main.js:39                                                                                                                                             &lt;/P&gt;&lt;P&gt;ERROR:         if (err) throw err;                                                                                                                                                      &lt;/P&gt;&lt;P&gt;   ERROR:                     ^                                                                                                                                                         &lt;/P&gt;&lt;P&gt;ERROR: Error: python: can't open file '../../root/&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;': [Errno 2] No such file or directory                                                                                         &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;    at PythonShell.parseError (/usr/lib/node_modules/python-shell/index.js:173:17)                                                                                                      &lt;/P&gt;&lt;P&gt;    at ChildProcess. (/usr/lib/node_modules/python-shell/index.js:80:28)                                                                                                     &lt;/P&gt;&lt;P&gt;    at ChildProcess.emit (events.js:98:17)                                                                                                                                              &lt;/P&gt;&lt;P&gt;    at Process.ChildProcess._handle.onexit (child_process.js:820:12)          &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no idea...&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 11:10:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394660#M8634</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-11-24T11:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394661#M8635</link>
      <description>&lt;P&gt;try listing the files in '.' and '../../' from within your Javascript (e.g. &lt;A href="http://stackoverflow.com/questions/2727167/getting-all-filenames-in-a-directory-with-node-js"&gt;http://stackoverflow.com/questions/2727167/getting-all-filenames-in-a-directory-with-node-js&lt;/A&gt; &lt;A href="http://stackoverflow.com/questions/2727167/getting-all-filenames-in-a-directory-with-node-js"&gt;http://stackoverflow.com/questions/2727167/getting-all-filenames-in-a-directory-with-node-js&lt;/A&gt;) and check which files are visible&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 10:00:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394661#M8635</guid>
      <dc:creator>Matthias_H_Intel</dc:creator>
      <dc:date>2015-11-25T10:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394662#M8636</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the error appears only when you press the button on the website. Try to use path, like:&lt;/P&gt;
&lt;P&gt;var path = require('path');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; app.get('/', function(req, res) {&lt;P&gt;&amp;nbsp;&lt;/P&gt; res.sendFile(path.join(__dirname + '/index.html'));&lt;P&gt;&amp;nbsp;&lt;/P&gt; });
&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt; Also try by setting &lt;B&gt;&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;&lt;/B&gt; as an executable using the Terminal Console with &lt;B&gt;chmod +x &lt;A href="http://test.py"&gt;test.py&lt;/A&gt;&lt;/B&gt; &lt;P&gt;Without pressing the button, do you receive error messages? Does the website works fine until you press the button?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 21:26:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394662#M8636</guid>
      <dc:creator>Carlos_M_Intel</dc:creator>
      <dc:date>2015-11-25T21:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394663#M8637</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your replies.&lt;/P&gt;&lt;P&gt;With the suggested code in the posted question I am not able to have the files list, I have many errors.&lt;/P&gt;&lt;P&gt;The &lt;A href="http://test.py"&gt;test.py&lt;/A&gt; in root directory I set the 777 permission but don't changes anything.&lt;/P&gt;&lt;P&gt;After run the script (without pressing the button in the index.htm page) I have the errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload Complete                                                                                                                                                                         &lt;/P&gt;&lt;P&gt;App is already running                                                                                                                                                                  &lt;/P&gt;&lt;P&gt;-------------------------------------------------------------                                                                                                                           &lt;/P&gt;&lt;P&gt;The express app is running                                                                                                                                                              &lt;/P&gt;&lt;P&gt;-------------------------------------------------------------                                                                                                                           &lt;/P&gt;&lt;P&gt;Example app listening at &lt;A href="http://192.168.0.204:5555"&gt;http://192.168.0.204:5555&lt;/A&gt; &lt;A href="http://192.168.0.204:5555"&gt;http://192.168.0.204:5555&lt;/A&gt;                                                                                                                                      &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;ERROR: /home/root/.node_app_slot/main.js:45                                                                                                                                             &lt;/P&gt;&lt;P&gt;ERROR:         if (err) throw err;                                                                                                                                                      &lt;/P&gt;&lt;P&gt;       ERROR:                 ^                                                                                                                                                         &lt;/P&gt;&lt;P&gt;ERROR: Error: python: can't open file '../&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;': [Errno 2] No such file or directory                                                                                                 &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;    at PythonShell.parseError (/usr/lib/node_modules/python-shell/index.js:173:17)                                                                                                      &lt;/P&gt;&lt;P&gt;    at ChildProcess. (/usr/lib/node_modules/python-shell/index.js:80:28)                                                                                                     &lt;/P&gt;&lt;P&gt;    at ChildProcess.emit (events.js:98:17)                                                                                                                                              &lt;/P&gt;&lt;P&gt;    at Process.ChildProcess._handle.onexit (child_process.js:820:12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pressing the button don't happen anything.&lt;/P&gt;&lt;P&gt;I have no idea how to resolve all these problems.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Dec 2015 17:00:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394663#M8637</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-12-07T17:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394664#M8638</link>
      <description>&lt;P&gt;Hi Giuseppe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with this example: &lt;A href="http://socket.io/get-started/chat/"&gt;http://socket.io/get-started/chat/&lt;/A&gt; &lt;A href="http://Socket.IO"&gt;Socket.IO&lt;/A&gt; — Chat Using the &lt;B&gt;159&lt;/B&gt; version, I was able to run a similar code than the one you are using, but you will need to work on the reception routine to run the python script. Take a look at the following code.&lt;/P&gt;
&lt;P&gt;var app = require('express')();&lt;/P&gt;
&lt;P&gt;var http = require('http').Server(app);&lt;/P&gt;
&lt;P&gt;var io = require('&lt;A href="http://socket.io"&gt;socket.io&lt;/A&gt;')(http);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;app.get('/', function(req, res){&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;  res.sendFile(__dirname + '/index.html');&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;io.on('connection', function(socket){&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;        var PythonShell = require('python-shell');&lt;/P&gt;
&lt;P&gt;PythonShell.run('&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;',function(err){&lt;/P&gt;
&lt;P&gt;                if (err) throw err;&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;});&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;OL&gt;&lt;LI&gt;http.listen(3000, function(){&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;  console.log('listening on *:3000');&lt;/P&gt;
&lt;P&gt;  });&lt;/P&gt;


&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have the &lt;B&gt;main.js&lt;/B&gt;, &lt;B&gt;index.html&lt;/B&gt; and &lt;B&gt;&lt;A href="http://test.py"&gt;test.py&lt;/A&gt;&lt;/B&gt; in the same folder you shouldn't have problems, you will just need to access to the IP address of your board on your web browser (like &lt;B&gt;192.168.10.123&lt;/B&gt;:3000) . I hope this gives you an idea for another approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 01:25:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394664#M8638</guid>
      <dc:creator>Carlos_M_Intel</dc:creator>
      <dc:date>2015-12-08T01:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Launch python script in html page</title>
      <link>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394665#M8639</link>
      <description>&lt;P&gt;Hi, Charlie,&lt;/P&gt;&lt;P&gt;there is no way to run correctly my script.&lt;/P&gt;&lt;P&gt;I try to reinstall python shell but as the first installation, it seems to don't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@edison:~#  npm install python-shell                                                                                                                                                 &lt;/P&gt;&lt;P&gt;/home/root                                                                                                                                                                              &lt;/P&gt;&lt;P&gt;`-- &lt;A href="mailto:python-shell@0.2.0"&gt;python-shell@0.2.0&lt;/A&gt;                                                                                                                                                                  &lt;/P&gt;&lt;P&gt;                                                                                                                                                                                        &lt;/P&gt;&lt;P&gt;npm WARN ENOENT ENOENT, open '/home/root/package.json'                                                                                                                                  &lt;/P&gt;&lt;P&gt;npm WARN EPACKAGEJSON root No description                                                                                                                                               &lt;/P&gt;&lt;P&gt;npm WARN EPACKAGEJSON root No repository field.                                                                                                                                         &lt;/P&gt;&lt;P&gt;npm WARN EPACKAGEJSON root No README data                                                                                                                                               &lt;/P&gt;&lt;P&gt;npm WARN EPACKAGEJSON root No license field.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the code posted but I have the same error of my original script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I want to modify the permissions of the &lt;A href="http://test.py"&gt;test.py&lt;/A&gt;, where is loaded on Intel Edison, in which directory?&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Giuseppe.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 11:09:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Xeon-Processor-and-Server/Launch-python-script-in-html-page/m-p/394665#M8639</guid>
      <dc:creator>GRicc</dc:creator>
      <dc:date>2015-12-10T11:09:50Z</dc:date>
    </item>
  </channel>
</rss>

