Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT Error when try to run npm test #71

Closed
mutantNeko opened this issue Nov 14, 2018 · 4 comments · Fixed by #131
Closed

ENOENT Error when try to run npm test #71

mutantNeko opened this issue Nov 14, 2018 · 4 comments · Fixed by #131

Comments

@mutantNeko
Copy link

result after run npm test on terminal.

2 failing

  1. RGB-tests should work with YCbCr files:
    Error: ENOENT: no such file or directory, open 'test/data/ycbcr.tif'

  2. RGB-tests should work with paletted files:
    Error: ENOENT: no such file or directory, open 'test/data/rgb_paletted.tiff'

npm ERR! Test failed. See above for more details.

I have checked the package, and those 2 files are not included

@DanielJDufour
Copy link
Contributor

Hi, @mutantNeko . Great question! I think you have to run setup_data.sh.

On Linux:

cd test/data
bash setup_data.sh

My hunch is that the decision to not include those files in the package were intentional as to not make the package size too large. I'm not sure though.

@mutantNeko
Copy link
Author

Hi @DanielJDufour ! thanks for the reply. I already run

cd test/data
sh setup_data.sh

and tried to run it with bash also, but I still got the same error.
It got me thinking, does npm have any conflict with Django?

@DanielJDufour
Copy link
Contributor

@mutantNeko , What is the output when you run the following?

cd test/data
rgb2pct.py rgb.tiff rgb_paletted.tiff
rgb2ycbcr rgb.tiff ycbcr.tif -h 1 -v 1

Also, could you run gdalinfo --version and show that output, too?

In the interim, I zipped up all of the data and it put in an S3 bucket if you want to download it that way. The link is https://s3.amazonaws.com/geotiff.js/data.zip

If you prefer to download just the two missing files you can do that here:

@mutantNeko
Copy link
Author

@DanielJDufour apparently I don't have python-gdal and libtiff-tools install. npm test works well now. but I can't run npm start, I got npm ERR! missing script: start. And as for gdal using GDAL 2.3.2, released 2018/09/21 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants