bob.io.image issues
https://gitlab.idiap.ch/bob/bob.io.image/-/issues
2017-10-26T00:54:05Z
https://gitlab.idiap.ch/bob/bob.io.image/-/issues/17
libjpeg does not get is rpath correctly set inside a conda environment
2017-10-26T00:54:05Z
André Anjos
libjpeg does not get is rpath correctly set inside a conda environment
For some reason, after compiling this module on a conda-based environment on Mac OSX, libjpeg does not get correctly compiled inside the resulting library:
```sh
$ otool -L bob/io/image/libbob_io_image.dylib
bob/io/image/libbob_io_i...
For some reason, after compiling this module on a conda-based environment on Mac OSX, libjpeg does not get correctly compiled inside the resulting library:
```sh
$ otool -L bob/io/image/libbob_io_image.dylib
bob/io/image/libbob_io_image.dylib:
@rpath/libbob_io_image.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
@rpath/libbob_io_base.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libbob_core.dylib (compatibility version 0.0.0, current version 0.0.0)
libjpeg.8.dylib (compatibility version 13.0.0, current version 13.0.0)
@rpath/libtiff.5.dylib (compatibility version 8.0.0, current version 8.4.0)
@rpath/libgif.7.dylib (compatibility version 8.0.0, current version 8.0.0)
@rpath/libboost_system.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libboost_filesystem.dylib (compatibility version 0.0.0, current version 0.0.0)
@rpath/libpng16.16.dylib (compatibility version 39.0.0, current version 39.0.0)
@rpath/libblitz.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)
```
As you can see, the `libjpeg.8.dylib` misses the `@rpath` entry. It is a bit annoying as the generated library will not run inside gdb and will require a `DYLD_LIBRARY_PATH` setting before it can run.
The reference environment for this is the one currently provided by bob/bob.admin `from_scratch.sh` scripts.
@amohammadi: any clues about this one?
Refactoring 2016 and gitlab migration milestone
https://gitlab.idiap.ch/bob/bob.io.image/-/issues/16
If an extension is not registered, ``bob.io.base.load`` with crash the Python...
2017-10-26T00:54:05Z
André Anjos
If an extension is not registered, ``bob.io.base.load`` with crash the Python interpreter
The following script will reproduce the issue:
```sh
$ touch test.jpg
```
And then the script that will cause the crash:
```python
import bob.io.base
bob.io.base.load('test.jpg')
```
Result:
```sh
$ python test.py
t...
The following script will reproduce the issue:
```sh
$ touch test.jpg
```
And then the script that will cause the crash:
```python
import bob.io.base
bob.io.base.load('test.jpg')
```
Result:
```sh
$ python test.py
terminate called after throwing an instance of 'std::runtime_error'
what(): unregistered extension: .jpg
Aborted (core dumped)
```
Expected result: Script is interrupted with a Python exception and does **not** core dump.
Refactoring 2016 and gitlab migration milestone