N
niocb

  • 7 sept. 2020
  • Inscrit 6 août 2020
  • majaxx Parce que mon raspberry tourne déjà pas mal de choses, et je ne voulais pas le surcharger en rajoutant une surcouche docker. C'est un raspberry pi 3B

    pi@mediaserv:~ $ cat /proc/cpuinfo
    ...
    Hardware	: BCM2835
    Revision	: a02082
    Serial		: 00000000f7725c67
    Model		: Raspberry Pi 3 Model B Rev 1.2

    hydrog3n Voici les infos de python:

    pi@mediaserv:~ $ python -V
    Python 2.7.16
    pi@mediaserv:~ $ python3 -V
    Python 3.7.3

    Et voici le résultat après nettoyage:

    pi@mediaserv:/opt/sensorr $ git clean -d -x -f
    Removing node_modules/
    Removing yarn-error.log
    pi@mediaserv:/opt/sensorr $ yarn cache clean
    yarn cache v1.22.4
    success Cleared cache.
    Done in 87.41s.
    pi@mediaserv:/opt/sensorr $ yarn install --network-timeout=100000
    yarn install v1.22.4
    [1/4] Resolving packages...
    warning Resolution field "leveldown@5.4.0" is incompatible with requested version "leveldown@5.0.2"
    warning Resolution field "leveldown@5.4.0" is incompatible with requested version "leveldown@5.0.2"
    warning Resolution field "sharp@0.23.2" is incompatible with requested version "sharp@^0.22.1"
    [2/4] Fetching packages...
    warning Pattern ["esprima-fb@~3001.0001.0000-dev-harmony-fb"] is trying to unpack in the same destination "/home/pi/.cache/yarn/v6/npm-esprima-fb-3001.1.0-dev-harmony-fb-b77d37abcd38ea0b77426bb8bc2922ce6b426411/node_modules/esprima-fb" as pattern ["esprima-fb@~3001.1.0-dev-harmony-fb"]. This could result in non-deterministic behavior, skipping.
    warning url-loader@1.1.2: Invalid bin field for "url-loader".
    warning webpack-hot-client@4.1.2: Invalid bin field for "webpack-hot-client".
    warning pm2@4.1.2: The engine "embed" appears to be invalid.
    info fsevents@2.1.1: The platform "linux" is incompatible with this module.
    info "fsevents@2.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
    info fsevents@1.2.9: The platform "linux" is incompatible with this module.
    info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
    [3/4] Linking dependencies...
    warning " > plex-api-pinauth@0.1.0" has incorrect peer dependency "plex-api@^3.2.0".
    [4/4] Building fresh packages...
    [7/41] ⢀ core-js
    [8/41] ⢀ styled-components
    [3/41] ⠠ leveldown
    [4/41] ⠠ puppeteer
    error /opt/sensorr/node_modules/leveldown: Command failed.
    Exit code: 1
    Command: node-gyp-build
    Arguments: 
    Directory: /opt/sensorr/node_modules/leveldown
    Output:
    events.js:174
          throw er; // Unhandled 'error' event
          ^
    
    Error: spawn node-gyp ENOENT
        at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
        at onErrorNT (internal/child_process.js:415:16)
        at process._tickCallback (internal/process/next_tick.js:63:19)
    Emitted 'error' event at:
        at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)

    Il semblerait que l'erreur soit liée à leveldown, sachant que nous avons un warning sur la version, ne serait-ce pas lié? warning Resolution field "leveldown@5.4.0" is incompatible with requested version "leveldown@5.0.2"

    • Salut à tous,

      j'essaye d'installer sensorr sur un raspberry pi, en passant par une install et non pas par un docker, et malheureusement ça plante au yarn install...

      Voici mon log si quelqu'un peut me donner un coup de main.

      sh
      pi@mediaserv:~ $ cd /opt/sensorr/
      pi@mediaserv:/opt/sensorr $ yarn install
      yarn install v1.22.4
      [1/4] Resolving packages...
      warning Resolution field "leveldown@5.4.0" is incompatible with requested version "leveldown@5.0.2"
      warning Resolution field "leveldown@5.4.0" is incompatible with requested version "leveldown@5.0.2"
      warning Resolution field "sharp@0.23.2" is incompatible with requested version "sharp@^0.22.1"
      [2/4] Fetching packages...
      warning Pattern ["esprima-fb@~3001.0001.0000-dev-harmony-fb"] is trying to unpack in the same destination "/home/pi/.cache/yarn/v6/npm-esprima-fb-3001.1.0-dev-harmony-fb-b77d37abcd38ea0b77426bb8bc2922ce6b426411/node_modules/esprima-fb" as pattern ["esprima-fb@~3001.1.0-dev-harmony-fb"]. This could result in non-deterministic behavior, skipping.
      info There appears to be trouble with your network connection. Retrying...
      warning url-loader@1.1.2: Invalid bin field for "url-loader".
      warning webpack-hot-client@4.1.2: Invalid bin field for "webpack-hot-client".
      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...
      error An unexpected error occurred: "https://registry.yarnpkg.com/core-js/-/core-js-2.6.10.tgz: ESOCKETTIMEDOUT".
      info If you think this is a bug, please open a bug report with the information provided in "/opt/sensorr/yarn-error.log".
      info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
      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...
      pi@mediaserv:/opt/sensorr $ yarn install --network-timeout=100000
      yarn install v1.22.4
      [1/4] Resolving packages...
      warning Resolution field "leveldown@5.4.0" is incompatible with requested version "leveldown@5.0.2"
      warning Resolution field "leveldown@5.4.0" is incompatible with requested version "leveldown@5.0.2"
      warning Resolution field "sharp@0.23.2" is incompatible with requested version "sharp@^0.22.1"
      [2/4] Fetching packages...
      warning Pattern ["esprima-fb@~3001.0001.0000-dev-harmony-fb"] is trying to unpack in the same destination "/home/pi/.cache/yarn/v6/npm-esprima-fb-3001.1.0-dev-harmony-fb-b77d37abcd38ea0b77426bb8bc2922ce6b426411/node_modules/esprima-fb" as pattern ["esprima-fb@~3001.1.0-dev-harmony-fb"]. This could result in non-deterministic behavior, skipping.
      warning pm2@4.1.2: The engine "embed" appears to be invalid.
      info fsevents@2.1.1: The platform "linux" is incompatible with this module.
      info "fsevents@2.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
      info fsevents@1.2.9: The platform "linux" is incompatible with this module.
      info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
      [3/4] Linking dependencies...
      warning " > plex-api-pinauth@0.1.0" has incorrect peer dependency "plex-api@^3.2.0".
      [4/4] Building fresh packages...
      [7/41] ⠄ core-js
      [2/41] ⠄ microtime
      [3/41] ⠄ leveldown
      [4/41] ⠄ puppeteer
      error /opt/sensorr/node_modules/leveldown: Command failed.
      Exit code: 1
      Command: node-gyp-build
      Arguments: 
      Directory: /opt/sensorr/node_modules/leveldown
      Output:
      events.js:174
            throw er; // Unhandled 'error' event
            ^
      
      Error: spawn node-gyp ENOENT
          at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
          at onErrorNT (internal/child_process.js:415:16)
          at process._tickCallback (internal/process/next_tick.js:63:19)
      Emitted 'error' event at:
          at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
      

      Pour installer yarn, j'ai suivi la procédure du site officiel.

      sh
      pi@mediaserv:~ $ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
      deb https://dl.yarnpkg.com/debian/ stable main
      pi@mediaserv:~ $ sudo apt update
      ...
      pi@mediaserv:~ $ sudo apt install yarn
      ...
      pi@mediaserv:~ $ yarn --version
      1.22.4
      pi@mediaserv:~ $ node --version
      v10.21.0
      pi@mediaserv:~ $ nodejs --version
      v10.21.0
      

      pour installer sensorr, j'ai cloner le git dans /opt/sensorr:

      sh
      sudo mkdir /opt/sensorr
      pi@mediaserv:~ $ sudo chown pi:pi /opt/sensorr/
      pi@mediaserv:~ $ sudo git clone https://github.com/thcolin/sensorr.git /opt/sensorr/
      Cloning into '/opt/sensorr'...
      remote: Enumerating objects: 217, done.
      remote: Counting objects: 100% (217/217), done.
      remote: Compressing objects: 100% (167/167), done.
      remote: Total 3623 (delta 106), reused 106 (delta 49), pack-reused 3406
      Receiving objects: 100% (3623/3623), 50.49 MiB | 3.12 MiB/s, done.
      Resolving deltas: 100% (2294/2294), done.
      pi@mediaserv:~ $ sudo chown -R pi:pi /opt/sensorr/
      

      Merci par avance