LN-Zap / zap-desktop

Zap Wallet - Cross platform Lightning Network wallet focused on user experience and ease of use ⚡️
MIT License
1.28k stars 215 forks source link

Update failed on PI #760

Closed ZapUser77 closed 5 years ago

ZapUser77 commented 5 years ago

Description

I managed to get zap working on PI. When I updated to LND 5.0, ZAP causes LND to crash. Decided to attempt to update ZAP: Git pull yarn ⚠ 2 problems (0 errors, 2 warnings) Error: /usr/bin/node exited with code 1 zap-desktop@0.2.2-beta~build-dll: zap-desktop@0.2.2-beta Output: yarn install v1.7.0 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Error output: (node:1717) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. warning " > react-icons@2.2.5" has unmet peer dependency "react@^0.14.0 || ^15.0.0". warning " > react-icons@2.2.5" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0". warning "react-icons > react-icon-base@2.0.7" has unmet peer dependency "react@". warning "react-icons > react-icon-base@2.0.7" has unmet peer dependency "react-dom@". warning "react-icons > react-icon-base@2.0.7" has unmet peer dependency "prop-types@*". error /home/pi/source/zap-desktop/app/node_modules/grpc: Command failed. Exit code: 6 Command: node-pre-gyp install --fallback-to-build --library=static_library Arguments: Directory: /home/pi/source/zap-desktop/app/node_modules/grpc Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@0.10.0 node-pre-gyp info using node@10.4.1 | linux | arm node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.14.1/electron-v2.0-linux-arm-glibc.tar.gz node-pre-gyp ERR! Completion callback never invoked! node-pre-gyp ERR! System Linux 4.14.30-v7+ node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc node-pre-gyp ERR! node -v v10.4.1 node-pre-gyp ERR! node-pre-gyp -v v0.10.0 node-pre-gyp ERR! This is a bug in node-pre-gyp. node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help: node-pre-gyp ERR! https://github.com/mapbox/node-pre-gyp/issues

at ChildProcess.childProcess.once.code (/home/pi/source/zap-desktop/node_modules/builder-util/src/util.ts:254:14)
at Object.onceWrapper (events.js:273:13)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)

From previous event: at installOrRebuild (/home/pi/source/zap-desktop/node_modules/app-builder-lib/out/util/yarn.js:68:17) at /home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/install-app-deps.ts:56:9 at Generator.next () From previous event: at installAppDeps (/home/pi/source/zap-desktop/node_modules/electron-builder/out/cli/install-app-deps.js:174:17) at then (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:42:48) at runCallback (timers.js:696:18) at tryOnImmediate (timers.js:667:5) at processImmediate (timers.js:649:5) From previous event: at Object.args [as handler] (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:42:48) at Object.runCommand (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/lib/command.js:237:44) at Object.parseArgs [as _parseArgs] (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/yargs.js:1059:30) at Object.get [as argv] (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/yargs.js:1000:21) at Object. (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:25:28) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:238:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

It was a nightmare getting the dependencies to install correctly last time... was hoping to not have further dependency problems. :(

mrfelton commented 5 years ago

@ZapUser77 please run yarn clean prior to reinstalling with yarn

ZapUser77 commented 5 years ago

Yarn Clean Yarn

Gets to the very end... and it just hung there until I pressed Enter:

/home/pi/source/zap-desktop/node_modules/concurrently/src/main.js:306 target.stdin.write(line); ^

TypeError: Cannot read property 'write' of null at ReadStream.process.stdin.on (/home/pi/source/zap-desktop/node_modules/concurrently/src/main.js:306:26) at ReadStream.emit (events.js:182:13) at addChunk (_stream_readable.js:283:12) at readableAddChunk (_stream_readable.js:264:11) at ReadStream.Readable.push (_stream_readable.js:219:10) at TTY.onread (net.js:635:20) error Command failed with exit code 1.

ZapUser77 commented 5 years ago

NPM Run Dev

make: *** No rule to make target 'Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o', needed by 'Release/obj.target/libgrpc.a'. Stop. make: Leaving directory '/home/pi/source/zap-desktop/app/node_modules/grpc/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/pi/source/zap-desktop/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Linux 4.14.30-v7+ gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--napi_version=3" "--node_abi_napi=napi" gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc gyp ERR! node -v v10.4.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc --napi_version=3 --node_abi_napi=napi' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/pi/source/zap-desktop/app/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) node-pre-gyp ERR! System Linux 4.14.30-v7+ node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc node-pre-gyp ERR! node -v v10.4.1 node-pre-gyp ERR! node-pre-gyp -v v0.10.0 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc --napi_version=3 --node_abi_napi=napi' (1)

at ChildProcess.childProcess.once.code (/home/pi/source/zap-desktop/node_modules/builder-util/src/util.ts:254:14)
at Object.onceWrapper (events.js:273:13)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close [as _onclose] (net.js:595:12)

From previous event: at installOrRebuild (/home/pi/source/zap-desktop/node_modules/app-builder-lib/out/util/yarn.js:68:17) at /home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/install-app-deps.ts:56:9 at Generator.next () From previous event: at installAppDeps (/home/pi/source/zap-desktop/node_modules/electron-builder/out/cli/install-app-deps.js:174:17) at then (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:42:48) at runCallback (timers.js:696:18) at tryOnImmediate (timers.js:667:5) at processImmediate (timers.js:649:5) From previous event: at Object.args [as handler] (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:42:48) at Object.runCommand (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/lib/command.js:237:44) at Object.parseArgs [as _parseArgs] (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/yargs.js:1059:30) at Object.get [as argv] (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/yargs.js:1000:21) at Object. (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:25:28) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:238:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3) App threw an error during load Error: Cannot find module '/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node' at Module._resolveFilename (module.js:543:15) at Function.Module._resolveFilename (/home/pi/source/zap-desktop/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (module.js:473:25) at Module.require (module.js:586:17) at require (internal/module.js:11:18) at Object. (/home/pi/source/zap-desktop/app/node_modules/grpc/src/grpc_extension.js:32:13) at Object. (/home/pi/source/zap-desktop/app/node_modules/grpc/src/grpc_extension.js:63:3) at Module._compile (module.js:642:30) at Module._extensions..js (module.js:653:10) at Object.require.extensions.(anonymous function) [as .js] (/home/pi/source/zap-desktop/node_modules/babel-register/lib/node.js:152:7) A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module '/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node' at Module._resolveFilename (module.js:543:15) at Function.Module._resolveFilename (/home/pi/source/zap-desktop/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (module.js:473:25) at Module.require (module.js:586:17) at require (internal/module.js:11:18) at Object. (/home/pi/source/zap-desktop/app/node_modules/grpc/src/grpc_extension.js:32:13) at Object. (/home/pi/source/zap-desktop/app/node_modules/grpc/src/grpc_extension.js:63:3) at Module._compile (module.js:642:30) at Module._extensions..js (module.js:653:10) at Object.require.extensions.(anonymous function) [as .js] (/home/pi/source/zap-desktop/node_modules/babel-register/lib/node.js:152:7) ℹ 「hot」: webpack: Compiling Done ℹ 「wdm」: ℹ 「wdm」: Compiled successfully.

ZapUser77 commented 5 years ago

Did a Yarn Clean followed by Yarn, this time didn't hit enter.

CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.o CXX(target) Release/obj.target/grpc/deps/grpc/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.o make: *** No rule to make target 'Release/obj.target/grpc/deps/grpc/src/cpp/ext/filters/census/grpc_context.o', needed by 'Release/obj.target/libgrpc.a'. Stop. make: Leaving directory '/home/pi/source/zap-desktop/app/node_modules/grpc/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/pi/source/zap-desktop/node_modules/node-gyp/lib/build.js:258:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Linux 4.14.30-v7+ gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--napi_version=3" "--node_abi_napi=napi" gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc gyp ERR! node -v v10.4.1 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc --napi_version=3 --node_abi_napi=napi' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/pi/source/zap-desktop/app/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) node-pre-gyp ERR! System Linux 4.14.30-v7+ node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc node-pre-gyp ERR! node -v v10.4.1 node-pre-gyp ERR! node-pre-gyp -v v0.10.0 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc --napi_version=3 --node_abi_napi=napi' (1)

at ChildProcess.childProcess.once.code (/home/pi/source/zap-desktop/node_modules/builder-util/src/util.ts:254:14)
at Object.onceWrapper (events.js:273:13)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close [as _onclose] (net.js:595:12)

From previous event: at installOrRebuild (/home/pi/source/zap-desktop/node_modules/app-builder-lib/out/util/yarn.js:68:17) at /home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/install-app-deps.ts:56:9 at Generator.next () From previous event: at installAppDeps (/home/pi/source/zap-desktop/node_modules/electron-builder/out/cli/install-app-deps.js:174:17) at then (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:42:48) at runCallback (timers.js:696:18) at tryOnImmediate (timers.js:667:5) at processImmediate (timers.js:649:5) From previous event: at Object.args [as handler] (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:42:48) at Object.runCommand (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/lib/command.js:237:44) at Object.parseArgs [as _parseArgs] (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/yargs.js:1059:30) at Object.get [as argv] (/home/pi/source/zap-desktop/node_modules/electron-builder/node_modules/yargs/yargs.js:1000:21) at Object. (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:25:28) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:238:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

mrfelton commented 5 years ago

grpc-node is failing to install in your environment @ZapUser77

It seems that it is unable to find a pre-compiled binary that matches your system environment so it is resorting to trying to compile the binary from source, which can be problematic if your environment isn't setup specifically for building this library.

https://github.com/grpc/grpc-node/issues/507 looks related and it looks like this was fixed in https://github.com/grpc/grpc-node/pull/501

You may want to try with this PR https://github.com/LN-Zap/zap-desktop/pull/756 where I have updated many of the dependencies to the latest version in, including grpc-node.

I would also suggest that you try installing grpc-node on it's own to see if you can reproduce the issue outside of the context of the zap desktop installation process, as I'm not sure that the issue is directly related to zap.

ZapUser77 commented 5 years ago

Linux is not my forte... and there are no install instruction on GRPC github.
So, if you could provide the syntax, it'd be greatly appreciated.

mrfelton commented 5 years ago

@ZapUser77 the updates that I think you need have now been merged into our master branch, so you should now just try installing as normal again:

  1. Pull down the latest code from our master branch. git pull

  2. Clean out your current checkout (removes old install files etc). yarn clean

  3. build. yarn

ZapUser77 commented 5 years ago

From the zap directory I tried "NPM install grpc/grpc-node, which seemed to install with no errors. Followed by Yarn

Which yields the same error. It's as if yarn doesn't detect that it's been installed.

mrfelton commented 5 years ago

Did you follow my notes above?

ZapUser77 commented 5 years ago

Didn't see them when I posted. Trying now.

ZapUser77 commented 5 years ago

gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/home/pi/source/zap-desktop/app/node_modules/grpc/build' make: Entering directory '/home/pi/source/zap-desktop/app/node_modules/grpc/build' CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o rm: cannot remove './Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o.d.raw': No such file or directory grpc.target.mk:467: recipe for target 'Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o' failed make: *** [Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o] Error 1 make: Leaving directory '/home/pi/source/zap-desktop/app/node_modules/grpc/build' gyp ERR! build error gyp CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/pi/source/zap-desktop/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Linux 4.14.30-v7+ gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc" "--napi_version=3" "--node_abi_napi=napi" gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc gyp ERR! node -v v10.4.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc --napi_version=3 --node_abi_napi=napi' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/pi/source/zap-desktop/app/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) node-pre-gyp ERR! System Linux 4.14.30-v7+ node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc node-pre-gyp ERR! node -v v10.4.1 node-pre-gyp ERR! node-pre-gyp -v v0.10.3 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v2.0-linux-arm-glibc --napi_version=3 --node_abi_napi=napi' (1)

ZapUser77 commented 5 years ago

Had this problem before... It's trying to install "arm" when the device isn't "arm". Is there any way to pass the correct arch type through Yarn command args?

ZapUser77 commented 5 years ago

(node:697) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. warning " > react-icons@2.2.7" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0". warning " > react-icons@2.2.7" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0". warning "react-icons > react-icon-base@2.1.0" has unmet peer dependency "react@". warning "react-icons > react-icon-base@2.1.0" has unmet peer dependency "react-dom@". warning "react-icons > react-icon-base@2.1.0" has unmet peer dependency "prop-types@*". error /home/pi/source/zap-desktop/app/node_modules/grpc: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build --library=static_library Arguments: Directory: /home/pi/source/zap-desktop/app/node_modules/grpc Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@0.10.3 node-pre-gyp info using node@10.4.1 | linux | arm node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/electron-v2.0-linux-arm-glibc.tar.gz node-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/electron-v2.0-linux-arm-glibc.tar.gz node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/electron-v2.0-linux-arm-glibc.tar.gz node-pre-gyp WARN Pre-built binaries not found for grpc@1.15.1 and electron@2.0.9 (electron-v2.0 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/electron-v2.0-linux-arm-glibc.tar.gz node-pre-gyp WARN Pre-built binaries not installable for grpc@1.15.1 and electron@2.0.9 (electron-v2.0 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Connection closed while downloading tarball file gypgyp info it worked if it ends with ok info it worked if it ends with ok gyp info using node-gyp@3.8.0

ZapUser77 commented 5 years ago

"node-pre-gyp info using node@10.4.1 | linux | arm" This line needs to be arm7l. How do I fix it?

ZapUser77 commented 5 years ago

Went to the electron sub-directory and installed electron same for GRPC /source/zap-desktop/node_modules/electron $ npm install electron /source/zap-desktop/node_modules/grpc $ npm install grpc

Followed by Yarn clean Yarn

still results in: node-pre-gyp WARN Pre-built binaries not found for grpc@1.15.1 and electron@2.0.9 (electron-v2.0 ABI, glibc) (falling back to source compile with node-gyp)

ZapUser77 commented 5 years ago

Tried with latest release: yarn yarn install v1.7.0 (node:12291) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [1/5] Validating package.json... [2/5] Resolving packages... [3/5] Fetching packages... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info There appears to be trouble with your network connection. Retrying... info fsevents@1.2.4: The platform "linux" is incompatible with this module. info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation. [4/5] Linking dependencies... warning " > connected-react-router@5.0.1" has unmet peer dependency "react-router@^4.3.1". warning "extract-react-intl-messages > extract-react-intl@0.6.0" has incorrect peer dependency "babel-core@^6 || ^7". warning " > jest-styled-components@6.2.2" has incorrect peer dependency "styled-components@^2.0.0 || ^3.0.2". warning "react-storybook-addon-chapters > @storybook/react > babel-loader@7.1.5" has incorrect peer dependency "babel-core@6". warning " > storybook-addon-intl@2.3.1" has incorrect peer dependency "@storybook/addons@^3.2.16". warning " > storybook-addon-intl@2.3.1" has incorrect peer dependency "@storybook/react@^3.2.16". warning " > storybook-react-router@1.0.1" has incorrect peer dependency "@storybook/addon-actions@^3.0.0". warning " > storybook-react-router@1.0.1" has incorrect peer dependency "@storybook/addons@^3.0.0". warning " > storybook-react-router@1.0.1" has unmet peer dependency "react-router@^4.0.0". warning " > storybook-styled-components@1.1.2" has incorrect peer dependency "@storybook/addons@^3.3.0". [5/5] Building fresh packages... [7/12] ⠠ phantomjs-prebuilt [2/12] ⠠ tiny-secp256k1 [3/12] ⠠ secp256k1 [4/12] ⠠ electron warning Error running install script for optional dependency: "/home/pi/source/zap-desktop/node_modules/phantomjs-prebuilt: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /home/pi/source/zap-desktop/node_modules/phantomjs-prebuilt Output: PhantomJS not found on PATH [10/12] ⠈ node-sass [-/12] ⠈ waiting... [3/12] ⠈ secp256k1 [4/12] ⠈ electron error /home/pi/source/zap-desktop/node_modules/electron: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /home/pi/source/zap-desktop/node_modules/electron Output: Downloading tmp-12348-0-electron-v3.0.8-linux-armv7l.zip Error: read ECONNRESET /home/pi/source/zap-desktop/node_modules/electron/install.js:49 throw err ^

mrfelton commented 5 years ago

@ZapUser77 the errors in your previous message indicate connection errors from npm when trying to download various things. Specifically, when trying to download the precompiled electron binary. For this type of error, you best best is generally to wait a while and try the installation again as it's most likely a temporary network related issue.

ZapUser77 commented 5 years ago

Tried again: pi@raspberrypi:~/source/zap-desktop $ yarn yarn install v1.7.0 [1/5] Validating package.json... [2/5] Resolving packages... success Already up-to-date. $ concurrently --raw "npm:flow-typed" "npm:build-dll" "build install-app-deps" • electron-builder version=20.31.2 • loaded configuration file=package.json ("build" field) • installing production dependencies platform=linux arch=armv7l appDir=/home/pi/source/zap-desktop/app

zap-desktop@0.2.3-beta flow-typed /home/pi/source/zap-desktop rimraf flow-typed/npm && flow-typed install --overwrite || true

zap-desktop@0.2.3-beta build-dll /home/pi/source/zap-desktop webpack -r @babel/register --config internals/webpack/webpack.config.renderer.dev.dll.js

• Found 154 dependencies in package.json to install libdefs for. Searching... • rebasing flow-typed cache... Error: /usr/bin/node exited with code 1 Output: yarn install v1.7.0 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Error output: (node:15482) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. warning " > react-icons@2.2.7" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0". warning " > react-icons@2.2.7" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16.0.0". warning "react-icons > react-icon-base@2.1.0" has unmet peer dependency "react@". warning "react-icons > react-icon-base@2.1.0" has unmet peer dependency "react-dom@". warning "react-icons > react-icon-base@2.1.0" has unmet peer dependency "prop-types@*". error /home/pi/source/zap-desktop/app/node_modules/grpc: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build --library=static_library Arguments: Directory: /home/pi/source/zap-desktop/app/node_modules/grpc Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using node-pre-gyp@0.10.3 node-pre-gyp info using node@10.4.1 | linux | arm node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp http GET https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/electron-v3.0-linux-arm-glibc.tar.gz node-pre-gyp http 404 https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/electron-v3.0-linux-arm-glibc.tar.gz node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/electron-v3.0-linux-arm-glibc.tar.gz node-pre-gyp WARN Pre-built binaries not found for grpc@1.15.1 and electron@3.0.8 (electron-v3.0 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/electron-v3.0-linux-arm-glibc.tar.gz node-pre-gyp WARN Pre-built binaries not installable for grpc@1.15.1 and electron@3.0.8 (electron-v3.0 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Connection closed while downloading tarball file gypgyp info it worked if it ends with ok info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@10.4.1 | linux | arm gyp info using node-gyp@3.8.0 gyp info using node@10.4.1 | linux | arm gyp info ok gyp info ok gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@10.4.1 | linux | arm gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@10.4.1 | linux | arm gyp info spawn /usr/bin/python2 gyp info spawn args [ '/home/pi/source/zap-desktop/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/home/pi/source/zap-desktop/app/node_modules/grpc/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/home/pi/source/zap-desktop/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/pi/.electron-gyp/iojs-3.0.8/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/pi/.electron-gyp/iojs-3.0.8', gyp info spawn args '-Dnode_gyp_dir=/home/pi/source/zap-desktop/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/pi/.electron-gyp/iojs-3.0.8/<(target_arch)/iojs.lib', gyp info spawn args '-Dmodule_root_dir=/home/pi/source/zap-desktop/app/node_modules/grpc', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn /usr/bin/python2 gyp info spawn args [ '/home/pi/source/zap-desktop/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/home/pi/source/zap-desktop/app/node_modules/grpc/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/home/pi/source/zap-desktop/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/pi/.electron-gyp/iojs-3.0.8/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/pi/.electron-gyp/iojs-3.0.8', gyp info spawn args '-Dnode_gyp_dir=/home/pi/source/zap-desktop/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=/home/pi/.electron-gyp/iojs-3.0.8/<(target_arch)/iojs.lib', gyp info spawn args '-Dmodule_root_dir=/home/pi/source/zap-desktop/app/node_modules/grpc', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info ok gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@10.4.1 | linux | arm gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: Entering directory '/home/pi/source/zap-desktop/app/node_modules/grpc/build' make: Leaving directory '/home/pi/source/zap-desktop/app/node_modules/grpc/build' make: *** No targets. Stop. gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/pi/source/zap-desktop/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Linux 4.14.30-v7+ gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc" "--napi_version=3" "--node_abi_napi=napi" gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc gyp ERR! node -v v10.4.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc --napi_version=3 --node_abi_napi=napi' (1) node-pre-gyp ERR! stack at ChildProcess. (/home/pi/source/zap-desktop/app/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) node-pre-gyp ERR! System Linux 4.14.30-v7+ node-pre-gyp ERR! command "/usr/bin/node" "/home/pi/source/zap-desktop/app/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd /home/pi/source/zap-desktop/app/node_modules/grpc node-pre-gyp ERR! node -v v10.4.1 node-pre-gyp ERR! node-pre-gyp -v v0.10.3 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /home/pi/source/zap-desktop/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc/grpc_node.node --module_name=grpc_node --module_path=/home/pi/source/zap-desktop/app/node_modules/grpc/src/node/extension_binary/electron-v3.0-linux-arm-glibc --napi_version=3 --node_abi_napi=napi' (1) gyp info ok

at ChildProcess.childProcess.once.code (/home/pi/source/zap-desktop/node_modules/builder-util/src/util.ts:253:14)
at Object.onceWrapper (events.js:273:13)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)

From previous event: at _installOrRebuild (/home/pi/source/zap-desktop/node_modules/app-builder-lib/out/util/yarn.js:71:28) at installOrRebuild (/home/pi/source/zap-desktop/node_modules/app-builder-lib/out/util/yarn.js:55:28) at /home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/install-app-deps.ts:56:9 at Generator.next () at runCallback (timers.js:696:18) at tryOnImmediate (timers.js:667:5) at processImmediate (timers.js:649:5) From previous event: at _installAppDeps (/home/pi/source/zap-desktop/node_modules/electron-builder/out/cli/install-app-deps.js:176:26) at installAppDeps (/home/pi/source/zap-desktop/node_modules/electron-builder/out/cli/install-app-deps.js:144:26) at then (/home/pi/source/zap-desktop/node_modules/electron-builder/src/cli/cli.ts:46:19) Hash: e5e2e98bf983410e8758 Version: webpack 4.25.1 Time: 77607ms Built at: 11/28/2018 12:29:25 PM Asset Size Chunks Chunk Names renderer.dev.dll.js 5.07 MiB renderer [emitted] renderer Entrypoint renderer = renderer.dev.dll.js [0] dll renderer 12 bytes {renderer} [built] [1] ../locale-data/index.js (ignored) 15 bytes {renderer} [built] [./node_modules/webpack/buildin/amd-define.js] (webpack)/buildin/amd-define.js 85 bytes {renderer} [built] [./node_modules/webpack/buildin/amd-options.js] (webpack)/buildin/amd-options.js 80 bytes {renderer} [built] [./node_modules/webpack/buildin/harmony-module.js] (webpack)/buildin/harmony-module.js 573 bytes {renderer} [built] [assert] external "assert" 42 bytes {renderer} [built] [crypto] external "crypto" 42 bytes {renderer} [built] [electron] external "electron" 42 bytes {renderer} [built] [events] external "events" 42 bytes {renderer} [built] [fs] external "fs" 42 bytes {renderer} [built] [module] external "module" 42 bytes {renderer} [built] [net] external "net" 42 bytes {renderer} [built] [os] external "os" 42 bytes {renderer} [built] [path] external "path" 42 bytes {renderer} [built] [string_decoder] external "string_decoder" 42 bytes {renderer} [built]

!! No flow@v0.85.0-compatible libdefs found in flow-typed for the above untyped dependencies !!

I've generated any-typed stubs for these packages, but consider submitting libdefs for them to https://github.com/flowtype/flow-typed/

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command

ZapUser77 commented 5 years ago

Yarn continues to try "arm" instead of "arm7l" arch. Is there anyway to FORCE it to use arm7l?

mrfelton commented 5 years ago

@ZapUser77 I don't think there is a way to force that. But, according to https://node-precompiled-binaries.grpc.io/ there are currently no precompiled grpc binaries for arm at all (arm or arm71) so even if you could I don't think it would help with your issue.

I think you need to talk to the grpc maintainers (again) since they appear to have dropped support for arm. I don't know if that is deliberate or a mistake.

mrfelton commented 5 years ago

I managed to find the full listing of pre-compiled binaries here:

https://console.cloud.google.com/storage/browser/node-precompiled-binaries.grpc.io/grpc?project=grpc-testing&pli=1

If you navigate into the 1.15.1 directory (the version we are using) you'll notice that they only have arm and arm64 binaries compiled for node, but not for electron.

mrfelton commented 5 years ago

I've created a feature request here: https://github.com/grpc/grpc-node/issues/662

ZapUser77 commented 5 years ago

Just a note: I actually had everything working (having installed manually electron and GRPC) before the update to LND 5.0 and associated Zap update. [Not something I want to torture myself with each time the dependencies change.]

mrfelton commented 5 years ago

Yes, the ideal thing here would be that the grpc folks provide pre-compiled binaries for the Electron/Arm combo. Otherwise you are are going to keep hitting this.

nicolasnoble commented 5 years ago

Few clarifications here:

node-pre-gyp, the prebuilt binary distribution system we're using doesn't understand "arm7l", only arm. The "arm" packages we're distributing are in fact arm7l binaries, meaning we don't have proper prebuilt-binary support for raspberri pi zero and other architectures that are on arm6.

But we've never distributed arm prebuilt binaries for electron, only nodejs. Distributing electron arm binaries doesn't really make a lot of sense to us, since the user base for it us much more narrow than nodejs. Also, debugging on a raspberry pi is many times more time-consuming for us compared with regular Linux or MacOS issues. There's just so much we can do.

But overall, after digging a bit more here, I realized you're actually sticking on grpc@1.15.1, despite your app/package.json using a caret dependency, due to the presence of the app/yarn.lock file in your repository. There's a lot of compilation fallback issues that got fixed lately by the node-pre-gyp package that we kind of managed to take over and fix ourselves, and that's the main reason I'm against lock files, such as your app/yarn.lock file. I do really understand and appreciate the desire for such lock files in general, to stick to "known working versions" of packages, especially since many of them can be infringing on semantic versionning, but the grpc team is trying really really hard to respect semantic versioning, so sticking on a lock file like this only causes grief such as this issue here.

@ZapUser77 I'd love you to try the following, in order to see if grpc@1.16.1 works better for you:

git clean -f -d -x
rm app/yarn.lock
yarn install

Note that you'll need an actual working compiler on your raspberry pi. Installing the build-essential debian package usually does the trick.

Also, if the above still doesn't work, it'd be more helpful for us at grpc if you'd actually create an issue on our issue tracker over at https://github.com/grpc/grpc-node, while simply trying to do npm install grpc on your raspberry pi, in order to properly isolate what's going on.

ZapUser77 commented 5 years ago

Installed without any errors. Tried launching... no errors... but no window pops up.
Prior to updating, the window would pop up within 10-20 seconds.

Running NPM run Build (And test) to see if I can get any errors Any other suggestions?

ZapUser77 commented 5 years ago

NPM RUN BUILD: npm run build

zap-desktop@0.2.3-beta build /home/pi/source/zap-desktop concurrently --raw "npm:build-main" "npm:build-renderer"

zap-desktop@0.2.3-beta build-renderer /home/pi/source/zap-desktop webpack -r @babel/register --config internals/webpack/webpack.config.renderer.prod.js

zap-desktop@0.2.3-beta build-main /home/pi/source/zap-desktop webpack -r @babel/register --config internals/webpack/webpack.config.main.prod.js

clean-webpack-plugin: /home/pi/source/zap-desktop/internals/webpack/app/dist has been removed. Hash: bc3e47018b2b00eee3e9 Version: webpack 4.25.1 Time: 116706ms Built at: 11/29/2018 8:53:47 PM Asset Size Chunks Chunk Names main.prod.js 996 KiB 0 [emitted] main main.prod.js.map 3.71 MiB 0 [emitted] main Entrypoint main = main.prod.js main.prod.js.map [./app/main.dev.js] ./app/main.dev.js + 29 modules 321 KiB {0} [built] | ./app/main.dev.js 6.52 KiB [built] | ./app/lib/utils/log.js 2.1 KiB [built] | ./app/lib/zap/menuBuilder.js 8.8 KiB [built] | ./app/lib/zap/controller.js 17.6 KiB [built] | ./app/lib/zap/updater.js 2.23 KiB [built] | ./app/themes/index.js 126 bytes [built] | ./app/store/db.js 1.68 KiB [built] | ./app/lib/i18n/index.js 2.27 KiB [built] | ./app/lib/lnd/config.js 5.91 KiB [built] | ./app/lib/lnd/lightning.js 8.74 KiB [built] | ./app/lib/lnd/neutrino.js 14.5 KiB [built] | ./app/lib/lnd/walletUnlocker.js 5.05 KiB [built] | ./app/themes/dark.js 2.51 KiB [built] | ./app/themes/light.js 2.48 KiB [built] | ./app/lib/lnd/util.js 7.02 KiB [built] | + 15 hidden modules [assert] external "assert" 42 bytes {0} [built] [child_process] external "child_process" 42 bytes {0} [built] [crypto] external "crypto" 42 bytes {0} [built] [dns] external "dns" 42 bytes {0} [built] [electron] external "electron" 42 bytes {0} [built] [events] external "events" 42 bytes {0} [built] [fs] external "fs" 42 bytes {0} [built] [grpc] external "grpc" 42 bytes {0} [built] [http] external "http" 42 bytes {0} [built] [https] external "https" 42 bytes {0} [built] [module] external "module" 42 bytes {0} [optional] [built] [path] external "path" 42 bytes {0} [built] [url] external "url" 42 bytes {0} [built] [util] external "util" 42 bytes {0} [built]

ZapUser77 commented 5 years ago

Npm Run Test yielded some errors:

zap-desktop@0.2.3-beta flow /home/pi/source/zap-desktop flow

/home/pi/source/zap-desktop/node_modules/flow-bin/cli.js:17 throw new Error('Platform not supported.'); ^

Error: Platform not supported. at Object. (/home/pi/source/zap-desktop/node_modules/flow-bin/cli.js:17:9) at Module._compile (internal/modules/cjs/loader.js:702:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10) at Module.load (internal/modules/cjs/loader.js:612:32) at tryModuleLoad (internal/modules/cjs/loader.js:551:12) at Function.Module._load (internal/modules/cjs/loader.js:543:3) at Function.Module.runMain (internal/modules/cjs/loader.js:744:10) at startup (internal/bootstrap/node.js:238:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zap-desktop@0.2.3-beta flow: flow npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zap-desktop@0.2.3-beta flow script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-29T13_58_47_501Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zap-desktop@0.2.3-beta test: npm run lint && npm run lint-styles && npm run flow && npm run build && npm run test-unit && npm run test-e2e npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zap-desktop@0.2.3-beta test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-29T13_58_47_574Z-debug.log

nicolasnoble commented 5 years ago

Npm Run Test yielded some errors:

zap-desktop@0.2.3-beta flow /home/pi/source/zap-desktop flow

/home/pi/source/zap-desktop/node_modules/flow-bin/cli.js:17 throw new Error('Platform not supported.'); ^

Oh this is kind of rich. The tests of zap-desktop are depending on https://www.npmjs.com/package/flow-bin, which, as the package description states, doesn't have arm binaries in it. So you wouldn't be able to run this portion of the test.

Edit the file package.json at the root, and change:

    "test": "npm run lint && npm run lint-styles && npm run flow && npm run build && npm run test-unit && npm run test-e2e",

into

    "test": "npm run lint && npm run lint-styles && npm run build && npm run test-unit && npm run test-e2e",

Luckily, this only means you just wouldn't have the javascript static check enabled.

ZapUser77 commented 5 years ago

So "git clean -f -d -x rm app/yarn.lock yarn install"

And removing "&& npm run flow " from Package.json fixed everything. Works like a champ!

Thanks random person from a completely different project. :D

ZapUser77 commented 5 years ago

Ok: Bizarre issue.... NPM run test.... pops up the window and is usable. NPM run dev... just stalls, and no window pops up:

npm run dev

zap-desktop@0.2.3-beta dev /home/pi/source/zap-desktop cross-env START_HOT=1 npm run start-renderer-dev

zap-desktop@0.2.3-beta start-renderer-dev /home/pi/source/zap-desktop node --trace-warnings -r @babel/register ./node_modules/.bin/webpack-dev-server --config internals/webpack/webpack.config.renderer.dev.js --progress

10% building 1/1 modules 0 activeℹ 「wds」: Project is running at http://localhost:1212/ ℹ 「wds」: webpack output is served from http://localhost:1212/dist ℹ 「wds」: 404s will fallback to /index.html 11% building 15/22 modules 7 active ...p/node_modules/loglevel/lib/loglevel.js

zap-desktop@0.2.3-beta start-main-dev /home/pi/source/zap-desktop cross-env HOT=1 NODE_ENV=development electron -r @babel/register ./app/main.dev

ℹ 「wdm」: Hash: f3828df579fb1b78fb13
Version: webpack 4.25.1 Time: 68540ms Built at: 11/30/2018 8:53:28 AM Asset Size Chunks Chunk Names index.html 775 bytes [emitted]
main.js 4.9 MiB main [emitted] main renderer.dev.dll.js 5.07 MiB [emitted]
Entrypoint main = main.js [0] multi (webpack)-dev-server/client?http://localhost:1212 (webpack)/hot/dev-server.js webpack/hot/only-dev-server ./app/index.js 64 bytes {main} [built] [./app/containers/Root.js] 8.35 KiB {main} [built] [./app/index.js] 2.03 KiB {main} [built] [./app/lib/i18n/index.js] 3.34 KiB {main} [built] [./app/lib/i18n/locale.js] 1020 bytes {main} [built] [./app/lib/i18n/translation.js] 2.48 KiB {main} [built] [./app/store/configureStore.js] 236 bytes {main} [built] [./app/store/db.js] 2.49 KiB {main} [built] [./app/styles/app.global.scss] 1.27 KiB {main} [built] [./node_modules/jstimezonedetect/dist/jstz.js] delegated ./node_modules/jstimezonedetect/dist/jstz.js from dll-reference renderer 42 bytes {main} [built] [./node_modules/loglevel/lib/loglevel.js] 7.68 KiB {main} [built] [./node_modules/react-dom/index.js] delegated ./node_modules/react-dom/index.js from dll-reference renderer 42 bytes {main} [built] [./node_modules/webpack-dev-server/client/index.js?http://localhost:1212] (webpack)-dev-server/client?http://localhost:1212 7.78 KiB {main} [built] [./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.61 KiB {main} [built] [./node_modules/webpack/hot/only-dev-server.js] (webpack)/hot/only-dev-server.js 2.55 KiB {main} [built]

ZapUser77 commented 5 years ago

NPM run start also doesn't pop up a window.

npm run start

zap-desktop@0.2.3-beta prestart /home/pi/source/zap-desktop npm run build

zap-desktop@0.2.3-beta build /home/pi/source/zap-desktop concurrently --raw "npm:build-main" "npm:build-renderer"

zap-desktop@0.2.3-beta build-renderer /home/pi/source/zap-desktop webpack -r @babel/register --config internals/webpack/webpack.config.renderer.prod.js

zap-desktop@0.2.3-beta build-main /home/pi/source/zap-desktop webpack -r @babel/register --config internals/webpack/webpack.config.main.prod.js

clean-webpack-plugin: /home/pi/source/zap-desktop/internals/webpack/app/dist has been removed. Hash: bc3e47018b2b00eee3e9 Version: webpack 4.25.1 Time: 127624ms Built at: 11/30/2018 9:08:06 AM Asset Size Chunks Chunk Names main.prod.js 996 KiB 0 [emitted] main main.prod.js.map 3.71 MiB 0 [emitted] main Entrypoint main = main.prod.js main.prod.js.map [./app/main.dev.js] ./app/main.dev.js + 29 modules 321 KiB {0} [built] | ./app/main.dev.js 6.52 KiB [built] | ./app/lib/utils/log.js 2.1 KiB [built] | ./app/lib/zap/menuBuilder.js 8.8 KiB [built] | ./app/lib/zap/controller.js 17.6 KiB [built] | ./app/lib/zap/updater.js 2.23 KiB [built] | ./app/themes/index.js 126 bytes [built] | ./app/store/db.js 1.68 KiB [built] | ./app/lib/i18n/index.js 2.27 KiB [built] | ./app/lib/lnd/config.js 5.91 KiB [built] | ./app/lib/lnd/lightning.js 8.74 KiB [built] | ./app/lib/lnd/neutrino.js 14.5 KiB [built] | ./app/lib/lnd/walletUnlocker.js 5.05 KiB [built] | ./app/themes/dark.js 2.51 KiB [built] | ./app/themes/light.js 2.48 KiB [built] | ./app/lib/lnd/util.js 7.02 KiB [built] | + 15 hidden modules [assert] external "assert" 42 bytes {0} [built] [child_process] external "child_process" 42 bytes {0} [built] [crypto] external "crypto" 42 bytes {0} [built] [dns] external "dns" 42 bytes {0} [built] [electron] external "electron" 42 bytes {0} [built] [events] external "events" 42 bytes {0} [built] [fs] external "fs" 42 bytes {0} [built] [grpc] external "grpc" 42 bytes {0} [built] [http] external "http" 42 bytes {0} [built] [https] external "https" 42 bytes {0} [built] [module] external "module" 42 bytes {0} [optional] [built] [path] external "path" 42 bytes {0} [built] [url] external "url" 42 bytes {0} [built] [util] external "util" 42 bytes {0} [built]

zap-desktop@0.2.3-beta start /home/pi/source/zap-desktop cross-env NODE_ENV=production electron ./app/

ZapUser77 commented 5 years ago

Oh... NPM run test does yield several errors (but runs just fine anyway.)

PASS test/unit/components/UI/AmountInput.spec.js (15.997s) PASS test/unit/components/Pay/PaySummaryLightning.spec.js PASS test/unit/lnd/neutrino.spec.js PASS test/unit/components/Form.spec.js (21.351s) PASS test/unit/zap/controller.spec.js PASS test/unit/reducers/transaction.spec.js PASS test/unit/lnd/lightning.spec.js PASS test/unit/components/UI/MainContent.spec.js PASS test/unit/components/UI/QRCode.spec.js ● Console

console.warn node_modules/styled-components/dist/styled-components.cjs.js:2440
  [withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class QRCode
console.error node_modules/prop-types/checkPropTypes.js:19
  Warning: Failed prop type: Invalid prop `size` of type `string` supplied to `QRCodeSVG`, expected `number`.
      in QRCodeSVG (created by QRCode)
      in QRCode (created by Context.Consumer)
      in StyledComponent (created by QRCode__Code)
      in div (created by Context.Consumer)
      in StyledComponent (created by QRCode__Container)
      in QRCode (created by Context.Consumer)

PASS test/unit/utils/crypto.spec.js PASS test/unit/reducers/invoice.spec.js PASS test/unit/components/UI/Notification.spec.js PASS test/unit/reducers/ticker.spec.js PASS test/unit/reducers/channels.spec.js PASS test/unit/reducers/activity.spec.js PASS test/unit/reducers/payment.spec.js PASS test/unit/reducers/peers.spec.js PASS test/unit/components/UI/Spinner.spec.js PASS test/unit/components/UI/Button.spec.js PASS test/unit/components/UI/Menu.spec.js PASS test/unit/components/UI/Bar.spec.js PASS test/unit/components/LoadingBolt.spec.js PASS test/unit/components/Pay/PayButtons.spec.js PASS test/unit/components/UI/Modal.spec.js PASS test/unit/components/UI/Range.spec.js PASS test/unit/reducers/info.spec.js PASS test/unit/components/UI/LightningInvoiceInput.spec.js ● Console

console.error node_modules/react-intl/lib/index.js:525
  [React Intl] Missing locale data for locale: "undefined". Using default locale: "en" as fallback.

PASS test/unit/components/UI/Sidebar.spec.js PASS test/unit/components/UI/Header.spec.js PASS test/unit/components/UI/Form.spec.js PASS test/unit/components/Pay/PayHeader.spec.js (6.434s) PASS test/unit/components/UI/Input.spec.js PASS test/unit/components/UI/Heading.spec.js (6.155s) PASS test/unit/components/UI/Select.spec.js (12.667s) ● Console

console.error node_modules/downshift/dist/downshift.cjs.js:1489
  downshift: The ref prop "ref" from getMenuProps was not applied correctly on your menu element.

PASS test/unit/components/UI/BackgroundPrimary.spec.js PASS test/unit/components/Pay/PaySummaryRow.spec.js PASS test/unit/components/UI/Dropdown.spec.js PASS test/unit/components/UI/BackgroundDark.spec.js PASS test/unit/components/UI/Panel.spec.js PASS test/unit/components/UI/Page.spec.js PASS test/unit/components/UI/Truncate.spec.js PASS test/unit/components/UI/BackgroundLightest.spec.js PASS test/unit/components/UI/Toggle.spec.js PASS test/unit/components/Pay/PaySummaryOnchain.spec.js PASS test/unit/components/UI/BackgroundLight.spec.js PASS test/unit/components/UI/TextArea.spec.js PASS test/unit/components/UI/Text.spec.js PASS test/unit/components/UI/Message.spec.js PASS test/unit/lnd/lnd-config.spec.js PASS test/unit/components/UI/Countdown.spec.js ● Console

console.error node_modules/prop-types/checkPropTypes.js:19
  Warning: Failed prop type: The prop `date` is marked as required in `Countdown`, but its value is `undefined`.
      in Countdown

PASS test/unit/reducers/settings.spec.js PASS test/unit/utils/userFriendlyErrors.spec.js PASS test/unit/reducers/balance.spec.js PASS test/unit/lnd/util.spec.js PASS test/unit/reducers/form.spec.js

=============================== Coverage summary =============================== Statements : 20.88% ( 1034/4951 ) Branches : 15.82% ( 288/1821 ) Functions : 13.31% ( 202/1518 ) Lines : 21.82% ( 1011/4633 )

Test Suites: 55 passed, 55 total Tests: 257 passed, 257 total Snapshots: 109 passed, 109 total Time: 133.882s, estimated 182s Ran all test suites matching /.\/test\/unit/i. Force exiting Jest

Have you considered using --detectOpenHandles to detect async operations that kept running after all tests finished?

zap-desktop@0.2.3-beta test-e2e /home/pi/source/zap-desktop npm run test-base -- ./test/e2e

zap-desktop@0.2.3-beta test-base /home/pi/source/zap-desktop cross-env NODE_ENV=test BABEL_DISABLE_CACHE=true DISABLE_INIT=true ELECTRON_DISABLE_SECURITY_WARNINGS=true node --trace-warnings ./node_modules/jest/bin/jest --maxWorkers=2 --forceExit "./test/e2e"

FAIL test/e2e/e2e.spec.js (35.588s) main window ✕ should open window (25ms) ✕ should haven't any logs in console of main window (262ms)

● main window › should open window

Timeout - Async callback was not invoked within the 25000ms timeout specified by jest.setTimeout.

  at mapper (node_modules/jest-jasmine2/build/queue_runner.js:41:52)

● main window › should open window

TypeError: Cannot read property 'getTitle' of undefined

  29 |     const { browserWindow } = this.app
  30 | 
> 31 |     const title = await browserWindow.getTitle()
     |                                       ^
  32 |     expect(title).toBe('Zap')
  33 |   })
  34 | 

  at Object.getTitle (test/e2e/e2e.spec.js:31:39)

● main window › should haven't any logs in console of main window

Timeout - Async callback was not invoked within the 25000ms timeout specified by jest.setTimeout.

  at mapper (node_modules/jest-jasmine2/build/queue_runner.js:41:52)

Test Suites: 1 failed, 1 total Tests: 2 failed, 2 total Snapshots: 0 total Time: 42.234s, estimated 47s Ran all test suites matching /.\/test\/e2e/i. Force exiting Jest

Have you considered using --detectOpenHandles to detect async operations that kept running after all tests finished? npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zap-desktop@0.2.3-beta test-base: cross-env NODE_ENV=test BABEL_DISABLE_CACHE=true DISABLE_INIT=true ELECTRON_DISABLE_SECURITY_WARNINGS=true node --trace-warnings ./node_modules/jest/bin/jest --maxWorkers=2 --forceExit "./test/e2e" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zap-desktop@0.2.3-beta test-base script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-30T02_37_54_343Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zap-desktop@0.2.3-beta test-e2e: npm run test-base -- ./test/e2e npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zap-desktop@0.2.3-beta test-e2e script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-30T02_37_54_994Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! zap-desktop@0.2.3-beta test: npm run lint && npm run lint-styles && npm run build && npm run test-unit && npm run test-e2e npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the zap-desktop@0.2.3-beta test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-11-30T02_37_55_760Z-debug.log

nicolasnoble commented 5 years ago

Yeah at that point, I'd consider the issue of compiling gRPC kind of closed, at least until the developers of this package update their lock files to 1.16.1. The rest of the issues here don't seem to be grpc-related at all.

ZapUser77 commented 5 years ago

@nicolasnoble Thanks a ton. I've been looking for a solution for 6+ months. :D And here you solved it in minutes. And I agree, the rest probably has nothing to do with gRPC.

mrfelton commented 5 years ago

Thanks for the work on debugging this guys. I have just merged #969 which updates grpc to the 1.16.1 release.

I'm going to look into migrating to @grpc/grpc-js to see if we can remove the dependency on the native grpc bindings all together.

@ZapUser77 if you could create a separate issue for the flow problem that would be good. Ultimately, there is probably no reason why you would need to be running flow on your machine. I don't think you should even be running yarn dev at all if all you want to do is build and run the app.

Possibly the best thing for you to do is run yarn build and yarn package which will build a production version of the app, packaged up as an electron bundle and placed into the release directory.

mrfelton commented 5 years ago

I'm going to close out this issue since you have it working now.

Once I am able to complete the migration to @grpc/grpc-js I will look to see if we can create precompiled version of the app for Arm users as part of our release process.

ZapUser77 commented 5 years ago

I've never ran "yarn dev", "Yarn build" nor "yarn package" Only yarn commands I've issued is Yarn clean and yarn.

It still doesn't work 100% though. The commands "NPM run dev" and "NPM run start" both do not pop up the window, and there are errors on "Npm run test"... but works anyway. ^_^

Less of a "closed issue" and more of a "accidental workaround". ;)

ZapUser77 commented 5 years ago

Anything I can do to help create a usable package for all PI users, just let me know. ^_^

mrfelton commented 5 years ago

@ZapUser77 I have built an ARM version of ZapDesktop and published as a pre pre-release to https://github.com/mrfelton/zap-desktop/releases/tag/0.2.3-beta.rc1

Please could you download the appropriate ARM package for your distribution (I think it would be one of the files entitled ZapDesktop-linux-armv7l-v0.2.3-beta.rc1 for you) and install and let me know if it works for you?

Thanks.

ZapUser77 commented 5 years ago

Did I mention I hate linux? I don't know any of the CL stuff. [The entire reason I love ZAP... is because I utterly despise CLI.] I can do git pull... and that's about all. So, if you want me to do more, you'll need to leave exact commands/instructions to do so.

mrfelton commented 5 years ago

Hey @ZapUser77 - no problem, hopefully I can help you.

At the URL I posted above (https://github.com/mrfelton/zap-desktop/releases/tag/0.2.3-beta.rc1) are pre built electron packages for the various operating system / architecture combinations.

For Linux, these are provided as .deb and .AppImage one-click installers.

So all you need to do is download the relevant file, and then open it - that will install Zap onto your machine using the standard Debian / AppImage installer process.

So you shouldn't need to run any other commands other than opening the installer file that you download.

What operating system are you using? If you have a debian based OS then you should be able to use ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb.

Otherwise, try the .AppImage file

ZapUser77 commented 5 years ago

Raspbian. Which I believe is Debian based OS.

After downloading and double clicking... it asks if I want to install... click yes and get: Failed to install file A package could not be found that allows this action. More information is available in the detailed report.

(However, I see no detailed report.)

Also, will zap already being installed interfere? What's the default install directory? And will there be a nice desktop icon to double click when done?

ZapUser77 commented 5 years ago

Managed to squeeze out some more info for you:

sudo dpkg -i ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb dpkg: error processing archive ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb (--install): package architecture (armv7l) does not match system (armhf) Errors were encountered while processing: ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb

pi@raspberrypi:~/Downloads/Zap $ arch armv7l

ZapUser77 commented 5 years ago

Running this command first allows the install to continue. sudo dpkg --add-architecture armv7l

ZapUser77 commented 5 years ago

sudo dpkg --add-architecture armv7l Odd number of elements in hash assignment at /usr/share/pkg-config-dpkghook line 30.

pi@raspberrypi:~/Downloads/Zap $ sudo dpkg -i ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb Selecting previously unselected package zap-desktop:armv7l. (Reading database ... 140413 files and directories currently installed.) Preparing to unpack ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb ... Unpacking zap-desktop:armv7l (0.2.3-beta.rc1-771) ... dpkg: dependency problems prevent configuration of zap-desktop:armv7l: zap-desktop:armv7l depends on libnotify4. zap-desktop:armv7l depends on libappindicator1. zap-desktop:armv7l depends on libxtst6. zap-desktop:armv7l depends on libnss3. zap-desktop:armv7l depends on libxss1.

dpkg: error processing package zap-desktop:armv7l (--install): dependency problems - leaving unconfigured Processing triggers for hicolor-icon-theme (0.15-1) ... Processing triggers for gnome-menus (3.13.3-9) ... Processing triggers for desktop-file-utils (0.23-1) ... Processing triggers for mime-support (3.60) ... Errors were encountered while processing: zap-desktop:armv7l

nicolasnoble commented 5 years ago

(I know I technically no longer should care, but...)

apt install -f

ZapUser77 commented 5 years ago

sudo apt install -f Reading package lists... Done Building dependency tree
Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libdb5.3++ libminiupnpc10 libuv1 minissdpd Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: zap-desktop:armv7l 0 upgraded, 0 newly installed, 1 to remove and 198 not upgraded. 1 not fully installed or removed. After this operation, 143 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 140496 files and directories currently installed.) Removing zap-desktop:armv7l (0.2.3-beta.rc1-771) ... Processing triggers for mime-support (3.60) ... Processing triggers for desktop-file-utils (0.23-1) ... Processing triggers for gnome-menus (3.13.3-9) ... Processing triggers for hicolor-icon-theme (0.15-1) ...

Was that just to uninstall?

Tried sudo dpkg -i ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb Selecting previously unselected package zap-desktop:armv7l. (Reading database ... 140413 files and directories currently installed.) Preparing to unpack ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb ... Unpacking zap-desktop:armv7l (0.2.3-beta.rc1-771) ... dpkg: dependency problems prevent configuration of zap-desktop:armv7l: zap-desktop:armv7l depends on libnotify4. zap-desktop:armv7l depends on libappindicator1. zap-desktop:armv7l depends on libxtst6. zap-desktop:armv7l depends on libnss3. zap-desktop:armv7l depends on libxss1.

dpkg: error processing package zap-desktop:armv7l (--install): dependency problems - leaving unconfigured Processing triggers for hicolor-icon-theme (0.15-1) ... Processing triggers for gnome-menus (3.13.3-9) ... Processing triggers for desktop-file-utils (0.23-1) ... Processing triggers for mime-support (3.60) ... Errors were encountered while processing: zap-desktop:armv7l

nicolasnoble commented 5 years ago

Huh, that's not supposed to uninstall. It's supposed to install the missing dependencies.

Try this instead ?

# apt install gdebi-core
# gdebi ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb
ZapUser77 commented 5 years ago

sudo apt install gdebi-core Reading package lists... Done Building dependency tree
Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: gdebi-core : Depends: python3-debian but it is not going to be installed zap-desktop:armv7l : Depends: libnotify4:armv7l but it is not installable Depends: libappindicator1:armv7l but it is not installable Depends: libxtst6:armv7l but it is not installable Depends: libnss3:armv7l but it is not installable Depends: libxss1:armv7l but it is not installable E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Ran sudo apt --fix-broken install Followed by sudo apt install gdebi-core Worked this time. Tried gdebi ZapDesktop-linux-armv7l-v0.2.3-beta.rc1.deb And it yielded: Reading package lists... Done Building dependency tree
Reading state information... Done Reading state information... Done This package is uninstallable Dependency is not satisfiable: libnotify4