conda-forge / vtk-feedstock

A conda-smithy repository for vtk.
BSD 3-Clause "New" or "Revised" License
13 stars 64 forks source link

libjpeg could not read file #98

Closed banesullivan closed 2 years ago

banesullivan commented 4 years ago

Issue:

There are issues with libjpeg when reading image files for this build of VTK:

>>> import vtk
>>> r = vtk.vtkJPEGReader()
>>> r.SetFileName("/Users/bane/Software/pyvista/pyvista/pyvista/examples/2k_earth_daymap.jpg")
>>> r.Update()
ERROR: In ../IO/Image/vtkJPEGReader.cxx, line 170
vtkJPEGReader (0x7ffb3d406f10): libjpeg could not read file: /Users/bane/Software/pyvista/pyvista/pyvista/examples/2k_earth_daymap.jpg

ERROR: In ../IO/Image/vtkJPEGReader.cxx, line 359
vtkJPEGReader (0x7ffb3d406f10): libjpeg could not read file: /Users/bane/Software/pyvista/pyvista/pyvista/examples/2k_earth_daymap.jpg


Environment (conda list):

``` (dev) ➜ pyvista git:(master) ✗ conda list # packages in environment at /Users/bane/anaconda3/envs/dev: # # Name Version Build Channel alabaster 0.7.12 py_0 conda-forge appdirs 1.4.3 py_1 conda-forge argh 0.26.2 py37_1001 conda-forge astroid 2.3.3 py37_0 conda-forge attrs 19.3.0 py_0 conda-forge autopep8 1.4.4 py_0 conda-forge babel 2.7.0 py_0 conda-forge beautifulsoup4 4.8.1 py37_0 conda-forge bzip2 1.0.8 h0b31af3_2 conda-forge ca-certificates 2019.11.28 hecc5488_0 conda-forge certifi 2019.11.28 py37_0 conda-forge cffi 1.13.2 py37h33e799b_0 conda-forge chardet 3.0.4 py37_1003 conda-forge cmocean 2.0 py_1 conda-forge colorcet 2.0.1 py_0 conda-forge colorspacious 1.1.2 pyh24bf2e0_0 conda-forge conda 4.7.12 py37_1 conda-forge conda-build 3.18.11 py37_0 conda-forge conda-package-handling 1.6.0 py37h0b31af3_1 conda-forge coverage 4.5.4 py37h0b31af3_0 conda-forge cryptography 2.8 py37hafa8578_1 conda-forge curl 7.65.3 h22ea746_0 conda-forge cycler 0.10.0 py_2 conda-forge dbus 1.13.6 h2f22bb5_0 conda-forge docutils 0.15.2 py37_0 conda-forge entrypoints 0.3 py37_1000 conda-forge expat 2.2.5 h4a8c4bd_1004 conda-forge ffmpeg 4.2 h5c2b479_0 conda-forge filelock 3.0.10 py_0 conda-forge flake8 3.7.9 py37_0 conda-forge freetype 2.10.0 h24853df_1 conda-forge future 0.18.2 py37_0 conda-forge gettext 0.19.8.1 h46ab8bc_1002 conda-forge glib 2.58.3 py37h577aef8_1002 conda-forge glob2 0.7 py_0 conda-forge gmp 6.1.2 h0a44026_1000 conda-forge gnutls 3.6.5 h53004b3_1002 conda-forge hdf4 4.2.13 h84186c3_1003 conda-forge hdf5 1.10.5 nompi_h3e39495_1104 conda-forge icu 64.2 h6de7cb9_1 conda-forge idna 2.8 py37_1000 conda-forge imageio 2.6.1 py37_0 conda-forge imageio-ffmpeg 0.3.0 py_0 conda-forge imagesize 1.1.0 py_0 conda-forge importlib_metadata 1.3.0 py37_0 conda-forge intel-openmp 2019.4 233 isort 4.3.21 py37_0 conda-forge jedi 0.15.1 py37_0 conda-forge jinja2 2.10.3 py_0 conda-forge jpeg 9c h1de35cc_1001 conda-forge jsoncpp 1.8.4 ha1b3eb9_1002 conda-forge kiwisolver 1.1.0 py37ha1b3eb9_0 conda-forge krb5 1.16.3 hcfa6398_1001 conda-forge lame 3.100 h1de35cc_1001 conda-forge lazy-object-proxy 1.4.3 py37h0b31af3_0 conda-forge libarchive 3.3.3 h8912c15_1007 conda-forge libblas 3.8.0 14_openblas conda-forge libcblas 3.8.0 14_openblas conda-forge libclang 8.0.1 h770b8ee_1 conda-forge libcurl 7.65.3 h16faf7d_0 conda-forge libcxx 9.0.0 h89e68fa_1 conda-forge libedit 3.1.20170329 hcfe32e1_1001 conda-forge libffi 3.2.1 h6de7cb9_1006 conda-forge libgfortran 4.0.0 2 conda-forge libiconv 1.15 h01d97ff_1005 conda-forge liblapack 3.8.0 14_openblas conda-forge liblief 0.9.0 h3e78482_1 conda-forge libllvm8 8.0.1 h770b8ee_0 conda-forge libnetcdf 4.7.1 nompi_hec86efb_102 conda-forge libopenblas 0.3.7 h3d69b6c_5 conda-forge libpng 1.6.37 h2573ce8_0 conda-forge libssh2 1.8.2 hcdc9a53_2 conda-forge libtiff 4.1.0 ha78913b_1 conda-forge libxml2 2.9.10 h53d96d6_0 conda-forge libxslt 1.1.33 h320ff13_0 conda-forge livereload 2.6.1 py_0 conda-forge llvm-openmp 9.0.0 h40edb58_0 conda-forge lxml 4.4.2 py37he54a443_0 conda-forge lz4-c 1.8.3 h6de7cb9_1001 conda-forge lzo 2.10 h1de35cc_1000 conda-forge markupsafe 1.1.1 py37h0b31af3_0 conda-forge matplotlib 3.1.2 py37_1 conda-forge matplotlib-base 3.1.2 py37h11da6c2_1 conda-forge mccabe 0.6.1 py_1 conda-forge meshio 3.3.0 pypi_0 pypi mkl 2019.4 233 more-itertools 8.0.2 py_0 conda-forge ncurses 6.1 h0a44026_1002 conda-forge nettle 3.4.1 h3efe00b_1002 conda-forge nspr 4.20 h0a44026_1000 conda-forge nss 3.47 hcec2283_0 conda-forge numpy 1.17.3 py37hde6bac1_0 conda-forge olefile 0.46 py_0 conda-forge openh264 1.8.0 hd9629dc_1000 conda-forge openssl 1.1.1d h0b31af3_0 conda-forge packaging 19.2 py_0 conda-forge param 1.9.2 py_0 conda-forge parso 0.5.1 py_0 conda-forge pathtools 0.1.2 py_1 conda-forge pcre 8.43 h4a8c4bd_0 conda-forge pillow 6.2.1 py37h43b43f3_1 conda-forge pip 19.3.1 py37_0 conda-forge pkginfo 1.5.0.1 py_0 conda-forge pluggy 0.13.0 py37_0 conda-forge pockets 0.9.1 py_0 conda-forge port-for 0.4 py_1 conda-forge psutil 5.6.7 py37h0b31af3_0 conda-forge py 1.8.0 py_0 conda-forge py-lief 0.9.0 py37h0ceac7d_1 conda-forge pycodestyle 2.5.0 py_0 conda-forge pycosat 0.6.3 py37h0b31af3_1002 conda-forge pycparser 2.19 py37_1 conda-forge pyct 0.4.6 py_0 conda-forge pyct-core 0.4.6 py_0 conda-forge pydocstyle 5.0.1 py_0 conda-forge pyflakes 2.1.1 py_0 conda-forge pygments 2.5.2 py_0 conda-forge pylint 2.4.4 py37_0 conda-forge pyopenssl 19.1.0 py37_0 conda-forge pyparsing 2.4.5 py_0 conda-forge pyqt 5.12.3 py37he22c54c_1 conda-forge pyqt5-sip 4.19.18 pypi_0 pypi pyqtwebengine 5.12.1 pypi_0 pypi pysocks 1.7.1 py37_0 conda-forge pytest 5.3.1 py37_0 conda-forge pytest-cov 2.8.1 py_0 conda-forge pytest-memprof 0.2.0 pypi_0 pypi pytest-qt 3.3.0 py_0 conda-forge pytest-sphinx 0.2.2 pypi_0 pypi python 3.7.3 h5c2c468_2 conda-forge python-dateutil 2.8.1 py_0 conda-forge python-jsonrpc-server 0.3.2 py_0 conda-forge python-language-server 0.31.2 py37_0 conda-forge python-libarchive-c 2.9 py37_0 conda-forge pytz 2019.3 py_0 conda-forge pyyaml 5.2 py37h0b31af3_0 conda-forge qt 5.12.5 h1b46049_0 conda-forge readline 8.0 hcfe32e1_0 conda-forge requests 2.22.0 py37_1 conda-forge ripgrep 11.0.2 h01d97ff_3 conda-forge rope 0.14.0 py_0 conda-forge ruamel_yaml 0.15.80 py37h0b31af3_1000 conda-forge scipy 1.3.2 py37h82752d6_0 conda-forge setuptools 42.0.2 py37_0 conda-forge six 1.13.0 py37_0 conda-forge snowballstemmer 2.0.0 py_0 conda-forge soupsieve 1.9.4 py37_0 conda-forge sphinx 2.2.2 py_0 conda-forge sphinx-autobuild 0.7.1 py_2 conda-forge sphinx-copybutton 0.2.6 py_0 conda-forge sphinx-gallery 0.5.0 py_0 conda-forge sphinx-notfound-page 0.4 pypi_0 pypi sphinx-rtd-theme 0.4.3 pypi_0 pypi sphinxcontrib-applehelp 1.0.1 py_0 conda-forge sphinxcontrib-devhelp 1.0.1 py_0 conda-forge sphinxcontrib-htmlhelp 1.0.2 py_0 conda-forge sphinxcontrib-jsmath 1.0.1 py_0 conda-forge sphinxcontrib-napoleon 0.7 py_0 conda-forge sphinxcontrib-qthelp 1.0.2 py_0 conda-forge sphinxcontrib-serializinghtml 1.1.3 py_0 conda-forge sphinxcontrib-websupport 1.1.2 py_0 conda-forge sqlite 3.30.1 h93121df_0 conda-forge tbb 2019.9 ha1b3eb9_1 conda-forge tk 8.6.10 hbbe82c9_0 conda-forge tornado 6.0.3 py37h0b31af3_0 conda-forge tqdm 4.40.2 py_0 conda-forge ujson 1.35 py37h0b31af3_1001 conda-forge urllib3 1.25.7 py37_0 conda-forge viscm 0.7 pyh24bf2e0_0 conda-forge vtk 8.2.0 py37h19d254c_206 conda-forge watchdog 0.9.0 py37_1 conda-forge wcwidth 0.1.7 py_1 conda-forge wheel 0.33.6 py37_0 conda-forge wrapt 1.11.2 py37h0b31af3_0 conda-forge x264 1!152.20180806 h1de35cc_0 conda-forge xz 5.2.4 h1de35cc_1001 conda-forge yaml 0.2.2 h0b31af3_1 conda-forge yapf 0.28.0 py_0 conda-forge zipp 0.6.0 py_0 conda-forge zlib 1.2.11 h0b31af3_1006 conda-forge zstd 1.4.4 he7fca8b_1 conda-forge ```


Details about conda and system ( conda info ):

``` (dev) ➜ pyvista git:(master) ✗ conda info active environment : dev active env location : /Users/bane/anaconda3/envs/dev shell level : 2 user config file : /Users/bane/.condarc populated config files : /Users/bane/.condarc conda version : 4.7.12 conda-build version : 3.18.9 python version : 3.7.3.final.0 virtual packages : base environment : /Users/bane/anaconda3 (writable) channel URLs : https://conda.anaconda.org/conda-forge/osx-64 https://conda.anaconda.org/conda-forge/noarch https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /Users/bane/anaconda3/pkgs /Users/bane/.conda/pkgs envs directories : /Users/bane/anaconda3/envs /Users/bane/.conda/envs platform : osx-64 user-agent : conda/4.7.12 requests/2.22.0 CPython/3.7.3 Darwin/19.0.0 OSX/10.15.1 UID:GID : 501:20 netrc file : None offline mode : False ```
jakirkham commented 4 years ago

@banesullivan, I think we will need the file as well. Otherwise we can't reproduce it.

Edit: Or at least an equivalent file that you can share and will reproduce the issue.

banesullivan commented 4 years ago

Any JPEG file should reproduce this. Here is the one I'm using: 2k_earth_daymap

banesullivan commented 2 years ago

I'm pretty sure this has resolved itself