Discussion:
[Meep-discuss] Version problem with dynamic library
John Weiner
2018-10-11 07:22:01 UTC
Permalink
Dear Meep users, developers and maintainers,

Trying to invoke h5topng today, while running python meep, I ran into this problem. Is there an updated version of libpng?

Best regards, John

dyld: Library not loaded: @rpath/libpng16.16.dylib
Referenced from: /Users/johnweiner/miniconda3/envs/pmp/bin/h5topng
Reason: Incompatible library version: h5topng requires version 52.0.0 or later, but libpng16.16.dylib provides version 51.0.0
Abort trap: 6
Christopher Hogan
2018-10-11 12:58:53 UTC
Permalink
Hi John,

When I create a new environment with pymeep-parallel, and run `otool -L
/path/to/miniconda/envs/pmp/bin/h5topng` , I see

@rpath/libpng16.16.dylib (compatibility version 52.0.0, current version
52.0.0)

And everything works as expected. Could you try recreating the environment?

$ source deactivate
$ conda env remove -n pmp
$ conda create -n pmp -c chogan/label/dev -c chogan -c conda-forge
pymeep-parallel
$ source activate pmp

It's also possible that you installed a package that required a different
version of libpng. `conda list` should show

libpng 1.6.35 ha92aebf_2 conda-forge

If the "conda-forge" channel is missing in the `conda list` output for
libpng, then you have a version from the "defaults" channel.

Chris
Post by John Weiner
Dear Meep users, developers and maintainers,
Trying to invoke h5topng today, while running python meep, I ran into this
problem. Is there an updated version of libpng?
Best regards, John
Referenced from: /Users/johnweiner/miniconda3/envs/pmp/bin/h5topng
Reason: Incompatible library version: h5topng requires version 52.0.0 or
later, but libpng16.16.dylib provides version 51.0.0
Abort trap: 6
John Weiner
2018-10-11 13:38:57 UTC
Permalink
Hi Chris:

Before “recreation” here is the output from the otool -L command:

otool -L /Users/johnweiner/miniconda3//envs/pmp/bin/h5topng
/Users/johnweiner/miniconda3//envs/pmp/bin/h5topng:
@rpath/libpng16.16.dylib (compatibility version 52.0.0, current version 52.0.0)
@rpath/libhdf5.101.dylib (compatibility version 103.0.0, current version 103.0.0)
@rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)

After “recreation” here is the output from the otool -L command:

otool -L /Users/johnweiner/miniconda3//envs/pmp/bin/h5topng
/Users/johnweiner/miniconda3//envs/pmp/bin/h5topng:
@rpath/libpng16.16.dylib (compatibility version 52.0.0, current version 52.0.0)
@rpath/libhdf5.101.dylib (compatibility version 103.0.0, current version 103.0.0)
@rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)

It appears to be unchanged with the libpng16.16.dylib as the up-to-date compatibility version. The conda list command checks out ok
conda-forge is where it should be.

I didn’t carry out the conda list command prior to recreation so I don’t have a before and after comparison, but the good news is that h5topng is now working without error so it appears I have my h5utils back in action.

Many thanks for your prompt and pertinent instructions
.saved my day!

Best regards,

John
Post by Christopher Hogan
Hi John,
When I create a new environment with pymeep-parallel, and run `otool -L /path/to/miniconda/envs/pmp/bin/h5topng` , I see
@rpath/libpng16.16.dylib (compatibility version 52.0.0, current version 52.0.0)
And everything works as expected. Could you try recreating the environment?
$ source deactivate
$ conda env remove -n pmp
$ conda create -n pmp -c chogan/label/dev -c chogan -c conda-forge pymeep-parallel
$ source activate pmp
It's also possible that you installed a package that required a different version of libpng. `conda list` should show
libpng 1.6.35 ha92aebf_2 conda-forge
If the "conda-forge" channel is missing in the `conda list` output for libpng, then you have a version from the "defaults" channel.
Chris
Dear Meep users, developers and maintainers,
Trying to invoke h5topng today, while running python meep, I ran into this problem. Is there an updated version of libpng?
Best regards, John
Referenced from: /Users/johnweiner/miniconda3/envs/pmp/bin/h5topng
Reason: Incompatible library version: h5topng requires version 52.0.0 or later, but libpng16.16.dylib provides version 51.0.0
Abort trap: 6
Continue reading on narkive:
Loading...