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

jasper missing in pillow yaml file #927

Open
robertsawko opened this issue Feb 16, 2016 · 4 comments
Open

jasper missing in pillow yaml file #927

robertsawko opened this issue Feb 16, 2016 · 4 comments

Comments

@robertsawko
Copy link

It seems that pillow cannot see JPEG2000 codecs.

[pillow] Traceback (most recent call last):
[pillow]   File "<string>", line 1, in <module>
[pillow]   File "<string>", line 760, in <module>
[pillow]   File "/home/robert/.hashdist/bld/python/bdccyvxhqdm7/lib/python2.7/distutils/core.py", line 151, in setup
[pillow]     dist.run_commands()
[pillow]   File "/home/robert/.hashdist/bld/python/bdccyvxhqdm7/lib/python2.7/distutils/dist.py", line 953, in run_commands
[pillow]     self.run_command(cmd)
[pillow]   File "/home/robert/.hashdist/bld/python/bdccyvxhqdm7/lib/python2.7/distutils/dist.py", line 972, in run_command
[pillow]     cmd_obj.run()
[pillow]   File "/home/robert/.hashdist/bld/python/bdccyvxhqdm7/lib/python2.7/distutils/command/build_ext.py", line 337, in run
[pillow]     self.build_extensions()
[pillow]   File "<string>", line 507, in build_extensions
[pillow] ValueError: --enable-jpeg2000 requested but jpeg2000 not found, aborting.
[pillow|ERROR] Command '[u'/bin/bash', '_hashdist/build.sh']' returned non-zero exit status 1
[pillow|ERROR] command failed (code=1); raising

I've already added jasper to build in yaml file and added the include and lib directories, but that has not resolved it.

@robertsawko
Copy link
Author

I really cannot figure out what's going wrong here. For now I removed the --enable-jpeg2000 flag and it got passed it, but I am afraid I will lose some functionality and it will hit me back later.

It seems that the compilation of pillow is executed from within Python, so it must be that setup.py or a related script doesn't carry over the information about jasper.

@cekees
Copy link
Contributor

cekees commented Feb 17, 2016

It looks like grib_api and pillow need different versions of openjpeg. grib_api needs 1.5 or earlier whereas pillow works with openjpeg 2.1. I looked more closely at why things work on my machine, and it's because I use openjpeg 2.1 in hashstack but the grib_api configure script is finding openjpeg 1.5 on my system. For now I would just try things without jpeg support in pillow.

@robertsawko
Copy link
Author

Yes, I can confirm that if I install openjpeg2 on my system, pillow works. I was mislead into thinking that it's due to jasper. I am installing on a very fresh system, so it doesn't have very many things installed. It's a bit of a test for hashdist. Wouldn't it be just enough then to actually create a separate package openjpeg2 and add it as a dependency?

@cekees
Copy link
Contributor

cekees commented Feb 17, 2016

Yes, that would work. I was just trying to eliminate possible sources of confusion with multiple openjpeg packages, but I don't see a good way around it.

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

No branches or pull requests

2 participants