Problem when creating image docker, python\r is missing


#1

Hi,
Im new to redash and docker and i need help…

When installing redash from docker i got this message

redash-client@6.0.0-beta bundle /app
bin/bundle-extensions

/usr/bin/env: ‘python\r’: No such file or directory

npm ERR! Linux 4.9.93-boot2docker
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “run” “bundle”
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! redash-client@6.0.0-beta bundle: bin/bundle-extensions
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the redash-client@6.0.0-beta bundle script ‘bin/bundle-extensions’.
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 redash-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bin/bundle-extensions
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs redash-client
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls redash-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /app/npm-debug.log
ERROR: Service ‘server’ failed to build: The command ‘/bin/sh -c npm install && npm run bundle && npm run build && rm -rf node_modules’ returned a non-zero code: 1

how i install?
from https://redash.io/help/open-source/dev-guide/docker

Thanks


#2

This looks like a Windows line-end sort of thing. Did you download the Dockerfile or git repo on a Windows machine (or edit it there)?

You could try stripping the line endings, e.g.

dos2unix Dockerfile

But better to find out how they got in there in the first place.


#3

Yes i did download it on a windows machine


#4

I execute dos2unix Dockerfile
but i get same error…

/usr/bin/env: ‘python\r’: No such file or directory

npm ERR! Linux 4.9.125-linuxkit
npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “run” “bundle”
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! redash-client@6.0.0-beta bundle: bin/bundle-extensions
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the redash-client@6.0.0-beta bundle script ‘bin/bundle-extensions’.
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 redash-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bin/bundle-extensions
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs redash-client
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls redash-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /app/npm-debug.log
ERROR: Service ‘server’ failed to build: The command ‘/bin/sh -c npm install && npm run bundle && npm run build && rm -rf node_modules’ returned a non-zero code: 1


#5

Have you success with this problem?