Giter VIP home page Giter VIP logo

Comments (36)

stepankuzmin avatar stepankuzmin commented on June 18, 2024

@geography could you please provide your software setup versions?

from galton.

geography avatar geography commented on June 18, 2024

Hi Stepan, which software are you speaking about?

node-pre-gyp ERR! node -v v5.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.36

thanks in advance,
Ema.

from galton.

geography avatar geography commented on June 18, 2024

Any helps on this...

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

Could you please try to install osrm package separately? Are there any issues with that?

from galton.

geography avatar geography commented on June 18, 2024

Hi @stepankuzmin I have the same problem when I try to install osrm package with npm command, the output is:

sudo npm install osrm

[email protected] install /home/ubuntu/node_modules/osrm
node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.14.3/Release/node-v51-linux-x64.tar.gz
node-pre-gyp ERR! stack at Request. (/home/ubuntu/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27)
node-pre-gyp ERR! stack at emitOne (events.js:101:20)
node-pre-gyp ERR! stack at Request.emit (events.js:191:7)
node-pre-gyp ERR! stack at Request.onRequestResponse (/home/ubuntu/node_modules/osrm/node_modules/request/request.js:1074:10)
node-pre-gyp ERR! stack at emitOne (events.js:96:13)
node-pre-gyp ERR! stack at ClientRequest.emit (events.js:191:7)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:411:20)
node-pre-gyp ERR! stack at emitOne (events.js:96:13)
node-pre-gyp ERR! System Linux 4.4.0-51-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/ubuntu/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /home/ubuntu/node_modules/osrm
node-pre-gyp ERR! node -v v7.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.14.3/Release/node-v51-linux-x64.tar.gz
~/node_modules/osrm/build ~/node_modules/osrm
CMake Error: The source directory "/home/ubuntu/node_modules/osrm" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
npm WARN enoent ENOENT: no such file or directory, open '/home/ubuntu/package.json'
npm WARN ubuntu No description
npm WARN ubuntu No repository field.
npm WARN ubuntu No README data
npm WARN ubuntu No license field.
npm ERR! Linux 4.4.0-51-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "osrm"
npm ERR! node v7.10.1
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the osrm 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=false || ./scripts/node_install.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs osrm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls osrm
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/.npm/_logs/2018-01-10T09_39_55_721Z-debug.log

any suggestion is appreciated,

Regards,
Ema.

from galton.

geography avatar geography commented on June 18, 2024

Hi some hints on this..I'm struggling... πŸ‘Ž :-(

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

Could you please try installing it using node v6 or node v4?

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

The problem is, that the OSRM Node.js bindings are only available for Node.js 4 and 6.

from galton.

geography avatar geography commented on June 18, 2024

hi @stepankuzmin after the switch:

  1. node -v = v4.8.7
  2. npm install galton

the results is:

[osrm] Success: "/home/ubuntu/node_modules/galton/node_modules/osrm/lib/binding/node_osrm.node" is installed via remote
[email protected] node_modules/galton
β”œβ”€β”€ [email protected]
└── [email protected]

but when I try ti run:
galton /home/osrm/data/italy-latest.osrm

the results is:

module.js:327
throw err;
^

Error: Cannot find module './src/server.js'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/galton/index.js:3:16)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)

from galton.

geography avatar geography commented on June 18, 2024

where I'm wrong?

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

Thanks for looking, I will investigate this issue further.

from galton.

geography avatar geography commented on June 18, 2024

Hi @stepankuzmin any news about this issue?

Regards,
Ema.

from galton.

geography avatar geography commented on June 18, 2024

hi @stepankuzmin nothing yet? you had time to investigate the matter?

Regards,
Ema.

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

Yep, thanks for your waiting. I'm planning to investigate it this weekend.

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

Could you please try using galton from the master branch? You can clone the repo and run galton like this:

git clone https://github.com/urbica/galton.git
cd galton
npm install
node index.js monaco.osrm # replace monaco.osrm with your osrm file

from galton.

geography avatar geography commented on June 18, 2024

Hi @stepankuzmin I have the following errors:

npm install

[email protected] install /home/ubuntu/work/code/Js/galton/node_modules/osrm
node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.14.2/Release/node-v51-linux-x64.tar.gz
node-pre-gyp ERR! stack at Request. (/home/ubuntu/work/code/Js/galton/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27)
node-pre-gyp ERR! stack at emitOne (events.js:101:20)
node-pre-gyp ERR! stack at Request.emit (events.js:191:7)
node-pre-gyp ERR! stack at Request.onRequestResponse (/home/ubuntu/work/code/Js/galton/node_modules/osrm/node_modules/request/request.js:1074:10)
node-pre-gyp ERR! stack at emitOne (events.js:96:13)
node-pre-gyp ERR! stack at ClientRequest.emit (events.js:191:7)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:411:20)
node-pre-gyp ERR! stack at emitOne (events.js:96:13)
node-pre-gyp ERR! System Linux 4.4.0-51-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/ubuntu/work/code/Js/galton/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /home/ubuntu/work/code/Js/galton/node_modules/osrm
node-pre-gyp ERR! node -v v7.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.14.2/Release/node-v51-linux-x64.tar.gz
/home/ubuntu/work/code/Js/galton/node_modules/osrm/build /home/ubuntu/work/code/Js/galton/node_modules/osrm
CMake Error: The source directory "/home/ubuntu/work/code/Js/galton/node_modules/osrm" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.1 (node_modules/sane/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.4.0-51-generic
npm ERR! argv "/root/.nvm/versions/node/v6.10.3/bin/node" "/root/.nvm/versions/node/v6.10.3/bin/npm" "install"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the osrm 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=false || ./scripts/node_install.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs osrm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls osrm
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/work/code/Js/galton/npm-debug.log

Ema.

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

It seems that there is a problem with your setup, so OSRM can't be installed. You could try to check OSRM build instructions and https://github.com/Project-OSRM/osrm-backend#using-the-nodejs-bindings

from galton.

cm4ker avatar cm4ker commented on June 18, 2024

Hi! I have the same problem with install osrm.

OS : Windows 10
npm -v: 5.6.0
node -v: v8.9.4

Then I download osrm binaryes and try to launch

git clone https://github.com/urbica/galton.git cd galton npm install node index.js monaco.osrm # replace monaco.osrm with your osrm file

I get next error:
Error: Cannot find module 'osrm' at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\n.zenkov\galton\galton\src\index.js:2:14) at Module._compile (module.js:643:30) at Object.Module._extensions..js (module.js:654:10) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3)

It seems that there is a problem with your setup, so OSRM can't be installed. You could try to check
OSRM build instructions and https://github.com/Project-OSRM/osrm-backend#using-the-nodejs-bindings

I can't figure out with instruction which you give. Can you help me with osrm installation.

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

@cm4ker Could you please try installing it using node v6 or node v4?

from galton.

cm4ker avatar cm4ker commented on June 18, 2024

@stepankuzmin I do next steps:

  1. Install the nvm for switching node version (from here)
  2. Run nvm install 4.6.2 and then nvm use 4.6.2
  3. Run npm install in cloned master of galton project brunch (same error)
  4. Do the same with node version 6.12.3

This is error on npm install command run:

' [email protected] install C:\Users\myuser\galton\galton\node_modules\osrm
node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! stack at Request. (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\node-pre-gyp\lib\install.js:118:27)
node-pre-gyp ERR! stack at emitOne (events.js:101:20)
node-pre-gyp ERR! stack at Request.emit (events.js:188:7)
node-pre-gyp ERR! stack at Request.onRequestResponse (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\request\request.js:1074:10)
node-pre-gyp ERR! stack at emitOne (events.js:96:13)
node-pre-gyp ERR! stack at ClientRequest.emit (events.js:188:7)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:474:21)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:363:20)
node-pre-gyp ERR! stack at emitOne (events.js:96:13)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd C:\Users\myuser\galton\galton\node_modules\osrm
node-pre-gyp ERR! node -v v6.12.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v48-win32-x64.tar.gz`

I not exclude that I do something wrong.

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

@cm4ker did you try node v6? Also, you can check OSRM compilation docs for Windows.

from galton.

cm4ker avatar cm4ker commented on June 18, 2024

Hi, @stepankuzmin!

did you try node v6

I wrote this:

Do the same with node version 6.12.3

Node v6 and node version 6.12.3 are different? I'm beginner in this tecnologies.

Also, you can check OSRM compilation docs for Windows.

I have already compiled binaries for windows platform (download it from osrm repo). I extract the map with use osrm-extract.exe, but galton don't see the osrm module. Then I try to run it directly I go down with error:

node index.js C:\Users\myuser\galton\omsk.osrm
module.js:540
    throw err;
    ^

Error: Cannot find module 'osrm'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\myuser\galton\galton\src\index.js:2:14)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)

How can I install libraryes manualy or what version of node.js(If I don't use it right, please let me know. I wrote all steps. )

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

I've just released galton v5.15.1.

@cm4ker could you please try using the latest version?

from galton.

cm4ker avatar cm4ker commented on June 18, 2024

I do next moves:


C:\Users\myuser\galton\galton>nvm use 8.9.4
Now using node v8.9.4 (64-bit)

C:\Users\myuser\galton\galton>git pull
From https://github.com/urbica/galton
 * [new tag]         v5.15.1    -> v5.15.1
Already up-to-date.

C:\Users\myuser\galton\galton>git pull
Already up-to-date.

C:\Users\myuser\galton\galton>npm install

> [email protected] install C:\Users\myuser\galton\galton\node_modules\osrm
> node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\node-pre-gyp\lib\install.js:118:27)
node-pre-gyp ERR! stack     at emitOne (events.js:121:20)
node-pre-gyp ERR! stack     at Request.emit (events.js:211:7)
node-pre-gyp ERR! stack     at Request.onRequestResponse (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\request\request.js:1074:10)
node-pre-gyp ERR! stack     at emitOne (events.js:116:13)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:211:7)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:551:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:440:20)
node-pre-gyp ERR! stack     at emitOne (events.js:116:13)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\myuser\\galton\\galton\\node_modules\\osrm\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd C:\Users\myuser\galton\galton\node_modules\osrm
node-pre-gyp ERR! node -v v8.9.4
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v57-win32-x64.tar.gz
"." Π½Π΅ являСтся Π²Π½ΡƒΡ‚Ρ€Π΅Π½Π½Π΅ΠΉ ΠΈΠ»ΠΈ внСшнСй
ΠΊΠΎΠΌΠ°Π½Π΄ΠΎΠΉ, исполняСмой ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΎΠΉ ΠΈΠ»ΠΈ ΠΏΠ°ΠΊΠ΅Ρ‚Π½Ρ‹ΠΌ Ρ„Π°ΠΉΠ»ΠΎΠΌ.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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!     C:\Users\myuser\AppData\Roaming\npm-cache\_logs\2018-02-01T07_22_55_380Z-debug.log

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

You should still use node v6: nvm use 6

from galton.

cm4ker avatar cm4ker commented on June 18, 2024

You should still use node v6: nvm use 6

The same issue then I use node v6.

C:\Users\myuser\galton\galton>nvm use 6
6.0.0
Now using node v6.0.0 (64-bit)

C:\Users\myuser\galton\galton>npm install

> [email protected] install C:\Users\myuser\galton\galton\node_modules\osrm
> node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v48-win32-x64.tar.gz
node-pre-gyp ERR! stack     at Request.<anonymous> (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\node-pre-gyp\lib\install.js:118:27)
node-pre-gyp ERR! stack     at emitOne (events.js:101:20)
node-pre-gyp ERR! stack     at Request.emit (events.js:188:7)
node-pre-gyp ERR! stack     at Request.onRequestResponse (C:\Users\myuser\galton\galton\node_modules\osrm\node_modules\request\request.js:1074:10)
node-pre-gyp ERR! stack     at emitOne (events.js:96:13)
node-pre-gyp ERR! stack     at ClientRequest.emit (events.js:188:7)
node-pre-gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:469:21)
node-pre-gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:105:23)
node-pre-gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:359:20)
node-pre-gyp ERR! stack     at emitOne (events.js:96:13)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\myuser\\galton\\galton\\node_modules\\osrm\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd C:\Users\myuser\galton\galton\node_modules\osrm
node-pre-gyp ERR! node -v v6.0.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v48-win32-x64.tar.gz
"." Π½Π΅ являСтся Π²Π½ΡƒΡ‚Ρ€Π΅Π½Π½Π΅ΠΉ ΠΈΠ»ΠΈ внСшнСй
ΠΊΠΎΠΌΠ°Π½Π΄ΠΎΠΉ, исполняСмой ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠΎΠΉ ΠΈΠ»ΠΈ ΠΏΠ°ΠΊΠ΅Ρ‚Π½Ρ‹ΠΌ Ρ„Π°ΠΉΠ»ΠΎΠΌ.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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!     C:\Users\myuser\AppData\Roaming\npm-cache\_logs\2018-02-01T08_11_01_408Z-debug.log

from galton.

geography avatar geography commented on June 18, 2024

Hi all,

I cloned the latest release of galton,

my environment is:
root@xxxx:/home/ubuntu/galton# node -v
v6.10.3
root@xxxx:/home/ubuntu/galton# npm -v
3.10.10
root@xxxx:/home/ubuntu/galton# nvm --version
0.33.8

when I try to npm install the output is:

[email protected] install /home/ubuntu/galton/node_modules/osrm
node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh

node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v51-linux-x64.tar.gz
node-pre-gyp ERR! stack at Request. (/home/ubuntu/galton/node_modules/osrm/node_modules/node-pre-gyp/lib/install.js:118:27)
node-pre-gyp ERR! stack at emitOne (events.js:101:20)
node-pre-gyp ERR! stack at Request.emit (events.js:191:7)
node-pre-gyp ERR! stack at Request.onRequestResponse (/home/ubuntu/galton/node_modules/osrm/node_modules/request/request.js:1074:10)
node-pre-gyp ERR! stack at emitOne (events.js:96:13)
node-pre-gyp ERR! stack at ClientRequest.emit (events.js:191:7)
node-pre-gyp ERR! stack at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)
node-pre-gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
node-pre-gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:411:20)
node-pre-gyp ERR! stack at emitOne (events.js:96:13)
node-pre-gyp ERR! System Linux 4.4.0-51-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/home/ubuntu/galton/node_modules/osrm/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build=false"
node-pre-gyp ERR! cwd /home/ubuntu/galton/node_modules/osrm
node-pre-gyp ERR! node -v v7.10.1
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/osrm/v5.15.1/Release/node-v51-linux-x64.tar.gz
/home/ubuntu/galton/node_modules/osrm/build /home/ubuntu/galton/node_modules/osrm
CMake Error: The source directory "/home/ubuntu/galton/node_modules/osrm" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/documentation/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.1 (node_modules/jest/node_modules/jest-cli/node_modules/jest-haste-map/node_modules/sane/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! Linux 4.4.0-51-generic
npm ERR! argv "/root/.nvm/versions/node/v6.10.3/bin/node" "/root/.nvm/versions/node/v6.10.3/bin/npm" "install"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build=false || ./scripts/node_install.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the osrm 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=false || ./scripts/node_install.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs osrm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls osrm
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/galton/npm-debug.log

from galton.

geography avatar geography commented on June 18, 2024

@stepankuzmin can you please write a doc for properly galton usage otherwise the project is unusuable...

from galton.

cm4ker avatar cm4ker commented on June 18, 2024

Hi @geography I already opened ticket in osrm github Project-OSRM/osrm-backend#4841

UPD: They no longer support build for Windows out of box. Issued was closed. I'll try to compile this by myself

from galton.

geography avatar geography commented on June 18, 2024

hi @stepankuzmin I'm working in a linux (ubuntu) environment not on windows...

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

@geography there is still an issue with OSRM itself Project-OSRM/osrm-backend#4772 Did you try https://github.com/Project-OSRM/osrm-backend#using-the-nodejs-bindings?

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

Hi there! I've just released Galton v5.16.4 with Node v8 support, could you please try it?

from galton.

pshavr avatar pshavr commented on June 18, 2024

ΠšΠΎΡ€ΠΎΡ‡Π΅
npm Π½ΡƒΠΆΠ½ΠΎ ΡΡ‚Π°Π²ΠΈΡ‚ΡŒ Ρ‡Π΅Ρ€Π΅Π· NVM
стСпан ΡΡ‚ΠΎΠ»ΡŒΠΊΠΎ Π²Π΅Ρ‚ΠΎΠΊ ΠΈ Π½ΠΈΠΊΠ°ΠΊΠΎΠΉ ΠΏΠΎΠΌΠΎΡ‰ΠΈ

In short
npm need to be installed via NVM
Stepan, so many branches and 0 help

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

Galton uses OSRM under the hood, and it currently supports only Linux and macOS with Node v6 and v8. So there is no OSRM bindings for Windows (see Project-OSRM/osrm-backend#4171). We are currently waiting for node-osrm to switch to Node.js's ABI stable N-API. This would resolve building issues for Galton.

Meanwhile you could try to use prebuild Galton docker image:

wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf
docker run -t -v $(pwd):/data osrm/osrm-backend:v5.18.0 osrm-extract -p /opt/car.lua /data/berlin-latest.osm.pbf
docker run -t -v $(pwd):/data osrm/osrm-backend:v5.18.0 osrm-contract /data/berlin-latest.osrm
docker run -t -i -p 4000:4000 -v $(pwd):/data urbica/galton:v5.18.0 galton /data/berlin-latest.osrm

from galton.

Yerkewka avatar Yerkewka commented on June 18, 2024

Hello, everyone!
I've installed galton globally and through the git repository. Everything installed correctly and osm.pbf extracted to osrm without any errors. But when I run command "npm start berlin-latest.osrm", I have the next error:

npm ERR! Linux 4.15.0-29-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start" "berlin-latest.osrm"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index.js "berlin-latest.osrm"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js "berlin-latest.osrm"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the galton package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js "berlin-latest.osrm"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs galton
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls galton
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/yerkebulan/Projects/NodeJs/Galton/npm-debug.log

Could you help me to cape with this problem?

from galton.

stepankuzmin avatar stepankuzmin commented on June 18, 2024

Hi @Yerkewka! It seems that you are using a beta release of galton. A newer version has a different command-line interface, you can see it in help:

Galton. Lightweight Node.js isochrone server.

Usage:
  galton extract [--useBestMatch] <name>
  galton build [--profile=<profileName>] <filename>
  galton run [options] (--sharedMemory | <filename>)
  galton extract build run [--useBestMatch --profile=<profileName>] [options] <name>
  galton -h | --help
  galton --version

Options:
  --cellSize=<cellSize>               Distance across each cell [default: 0.2].
  --concavity=<concavity>             Concaveman relative measure of concavity [default: 2].
  --deintersect                       Whether or not to deintersect the final isochrones [default: true].
  --intervals=<intervals>             Isochrones intervals in minutes [default: 10,20,30].
  --lengthThreshold=<lengthThreshold> Concaveman length threshold [default: 0].
  --port=<port>                       Port to run on [default: 3000].
  --algorithm=<algorithm>             Algorithm used by OSRM (CH or MLD) [default: CH].
  --radius=<radius>                   Isochrone buffer radius [default: 6].
  --sharedMemory                      Use shared memory [default: false].
  --units=<units>                     Either 'kilometers' or 'miles' [default: kilometers].
  --useBestMatch                      Geocoder will use the best match for the query
  -p --profile=<profileName>          OSRM profile name that will be used for graph building
  -h --help                           Show this screen.
  --version                           Show version.

To start galton with contracted OSRM graph you need to run it as

galton run berlin-latest.osrm

from galton.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.