@michbeck100 said in Pimatic 0.9.44a test results:
08:45:38.420 [pimatic] Starting pimatic version 0.9.44-a
08:45:38.422 [pimatic] Node.js version 4.9.1
08:45:38.422 [pimatic] OpenSSL version 1.0.2o
08:45:38.536 [pimatic] Installing database package sqlite3, this can take some minutes
08:45:38.549 [pimatic, ppm] env: node\r: No such file or directory
08:45:38.553 [pimatic] Startup error: Error: Error running "./node_modules/pimatic/ppm.js install firstname.lastname@example.org --unsafe-perm"
08:45:38.553 [pimatic]> at ChildProcess.<anonymous> (/Users/michaelkotten/development/tmp/pimatic-test/node_modules/pimatic/lib/plugins.coffee:374:20)
08:45:38.553 [pimatic]> at emitTwo (events.js:87:13)
08:45:38.553 [pimatic]> at ChildProcess.emit (events.js:172:7)
08:45:38.553 [pimatic]> at maybeClose (internal/child_process.js:862:16)
08:45:38.553 [pimatic]> at Socket.<anonymous> (internal/child_process.js:338:11)
08:45:38.553 [pimatic]> at emitOne (events.js:77:13)
08:45:38.553 [pimatic]> at Socket.emit (events.js:169:7)
08:45:38.553 [pimatic]> at Pipe._onclose (net.js:490:12)
Seems that ppm.js can’t be started:
env: node\r: No such file or directory
This might be because I am testing on a Mac using nvm (Node Version Manager), but I don’t see these problems on the original version. I’ve checked the differences between 0.9.42 (release) and the test version, but there are none. So my workaround was to copy ppm.js from the release. I don’t know why but this works.
UPDATE: I tried the GitHub version of pimatic and there was no problem starting ppm.js. So this might be no problem for the next version.
I found the problem here. Its the linefeed problem with dos files.
My install so far(with copy of settings from production folder):
mkdir pimatic-test && cd pimatic-test
cp ../pimatic-app/config.json config.json
npm install email@example.com
npm install firstname.lastname@example.org
npm install bluetooth-hci-socket
npm install pimatic-mobile-frontend@test
npm install pimatic@test
chmod 755 node_modules/pimatic/ppm.js
sudo node node_modules/pimatic/pimatic.js
// update 7: finally got it working, with help of https://forum.pimatic.org/topic/4462/trouble-with-fresh-installation/51