@Frank_71 said in [Solved] problem updating pimatic-led-light:
How can i upload the npm-debug LOG`s ?
The good way for showing large logs is to use www.pastebin.com
[Solved] problem updating pimatic-led-light
@Frank_71 said in [Solved] problem updating pimatic-led-light:
How can i upload the npm-debug LOG`s ?
The good way for showing large logs is to use www.pastebin.com
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
Thanks
i have used “GIST” and upload the npm-debug-logs here:
https://gist.github.com/anonymous/548ffd0df2e83e8090592ac1edbe4452
Same thing here, can’t update anymore.
Error from CLI is this:
-
> serialport@2.1.2 install /home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport
> node-pre-gyp install --fallback-to-build
module.js:340
throw err;
^
Error: Cannot find module 'nopt'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/node_modules/node-pre-gyp/lib/node-pre-gyp.js:14:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
npm WARN optional dep failed, continuing usb-shyp-darwin-x64@1.0.4
npm WARN optional dep failed, continuing usb-shyp-win32-ia32@1.0.4
npm WARN optional dep failed, continuing usb-shyp-win32-x64@1.0.4
> usb@1.0.4 install /home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/blinkstick/node_modules/usb
> node shyp-blacklist.js win32-x64 win32-ia32 darwin-x64 || node-gyp rebuild
make: Entering directory '/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/blinkstick/node_modules/usb/build'
CC(target) Release/obj.target/libusb/libusb/libusb/core.o
CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
CC(target) Release/obj.target/libusb/libusb/libusb/io.o
CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
../libusb/libusb/os/threads_posix.c:24:0: warning: "_GNU_SOURCE" redefined
# define _GNU_SOURCE
^
<command-line>:0:0: note: this is the location of the previous definition
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
AR(target) Release/obj.target/usb.a
COPY Release/usb.a
CXX(target) Release/obj.target/usb_bindings/src/node_usb.o
CXX(target) Release/obj.target/usb_bindings/src/device.o
CXX(target) Release/obj.target/usb_bindings/src/transfer.o
SOLINK_MODULE(target) Release/obj.target/usb_bindings.node
COPY Release/usb_bindings.node
make: Leaving directory '/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/blinkstick/node_modules/usb/build'
npm ERR! Linux 4.1.19-v7+
npm ERR! argv "node" "/usr/local/bin/npm" "i" "philip1986/pimatic-led-light" "--unsafe-perm"
npm ERR! node v0.10.24
npm ERR! npm v2.15.6
npm ERR! code ELIFECYCLE
npm ERR! serialport@2.1.2 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the serialport@2.1.2 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serialport
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/pimatic-app/node_modules/npm-debug.log
pi@raspberrypi:~/pimatic-app/node_modules $```
Strange. Works fine for me. To better uderstand why the serialport build fails, can you please executed the following and post the output?
cat /etc/debian_version; gcc -v; uname -a; node -v; npm --version
Can you please also try whether or not you can install the following without errors and report back:
sudo npm i serialport@2.0 --unsafe-perm
Thanks!
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
here are the results of “cat /etc/debian_version; gcc -v; uname -a; node -v; npm --version”
**pi@raspberrypi2 ~ $ cat /etc/debian_version; gcc -v; uname -a; node -v; npm --version
8.0
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --e
nable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --li
bexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --en
able-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disab
le-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo -
-with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj
.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checkin
g=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Raspbian 4.9.2-10)
Linux raspberrypi2 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux
v0.10.24
2.15.6
pi@raspberrypi2 ~ $
now i try to install serialport 2.0 and report it.
Instalation of serialport@2.0 looks fine
pi@raspberrypi2 ~/pimatic-app $ sudo npm i serialport@2.0 --unsafe-perm
/
> serialport@2.0.6 install /home/pi/pimatic-app/node_modules/serialport
> node-pre-gyp install --fallback-to-build
make: Entering directory '/home/pi/pimatic-app/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
CXX(target) Release/obj.target/serialport/src/serialport_poller.o
SOLINK_MODULE(target) Release/obj.target/serialport.node
COPY Release/serialport.node
COPY /home/pi/pimatic-app/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node
TOUCH Release/obj.target/action_after_build.stamp
make: Leaving directory '/home/pi/pimatic-app/node_modules/serialport/build'
serialport@2.0.6 node_modules/serialport
âââ bindings@1.2.1
âââ sf@0.1.7
âââ async@0.9.0
âââ debug@2.2.0 (ms@0.7.1)
âââ optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10)
âââ nan@2.0.9
pi@raspberrypi2 ~/pimatic-app $
``
Result for me is the same.
Still not working unfortunately… Now I have a non working hue
Update:
The led-light version from mwittig his repository does install without errors.
So the error seems to be in the new update…
@Frank_71 Thanks for the info. You have a more recent version of gcc installed which is part of jessie while some users like me are still using wheezy. Seems like this is causing some problems with node-gyp. I have now changed the dependency pimatic-milight-rf24 to use serialport 2.0.
I have published released v0.3.5 which hopefully will work fine for everone.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Ok, installation of 0.3.5 works fine now, thanks for that!
Is it also possible to merge the hue code into the master? Because that works perfectly for me, but is missing in the master branch of the plugin.
@mwittig : juhu it runs.
Thanks for the quick solution.The Version 0.3.5 works fine.
yes I keep my system up to date. But I have not noticed that there was a release change
thanks again