FS#58638 - [pdal] When using tab completion for subcommands, pdal 1.6.0-3complains of missing libhexer.so.1.1.0

Attached to Project: Community Packages
Opened by Jester2 (jester2) - Thursday, 17 May 2018, 13:50 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 20 May 2018, 20:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

libhexer-hobu is an optional package, but When running pdal with a tab completion for a file without libhexher-hobu, pdal will complain of the following error:

(PDAL Error) Can't load library /usr/lib/libpdal_plugin_kernel_density.so: Failed to load "/usr/lib/libpdal_plugin_kernel_density.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory(PDAL Error) Plugin '/usr/lib/libpdal_plugin_kernel_density.so' found but failed to load: Failed to load "/usr/lib/libpdal_plugin_kernel_density.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory

So I must install libhexer-hobu to get rid of the error messages.

Additional info:
* package version(s)
libhexer-hobu-1.4.0-1
pdal-1.6.0-3

Steps to reproduce:

type pdal info in terminal and when doing a double tab for file tab completion when searching for a .las file:

$pdal info ~/Dow(PDAL Error) Can't load library /usr/lib/libpdal_plugin_filter_hexbin.so: Failed to load "/usr/lib/libpdal_plugin_filter_hexbin.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory(PDAL Error) Plugin '/usr/lib/libpdal_plugin_filter_hexbin.so' found but failed to load: Failed to load "/usr/lib/libpdal_plugin_filter_hexbin.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Sunday, 20 May 2018, 20:05 GMT
Reason for closing:  Fixed
Comment by Doug Newgard (Scimmia) - Thursday, 17 May 2018, 15:07 GMT
So optional dep that's not really optional?
Comment by Eli Schwartz (eschwartz) - Thursday, 17 May 2018, 15:29 GMT
[root@eschwartz ~]# pdal --list-commands
Usage:
[...]


The following commands are available:
(PDAL Error) Can't load library /root/../lib/libpdal_plugin_filter_hexbin.so: Failed to load "/root/../lib/libpdal_plugin_filter_hexbin.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory(PDAL Error) Plugin '/root/../lib/libpdal_plugin_filter_hexbin.so' found but failed to load: Failed to load "/root/../lib/libpdal_plugin_filter_hexbin.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory
(PDAL Error) Can't load library /root/../lib/libpdal_plugin_kernel_density.so: Failed to load "/root/../lib/libpdal_plugin_kernel_density.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory(PDAL Error) Plugin '/root/../lib/libpdal_plugin_kernel_density.so' found but failed to load: Failed to load "/root/../lib/libpdal_plugin_kernel_density.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory
(PDAL Error) Can't load library /usr/lib/libpdal_plugin_filter_hexbin.so: Failed to load "/usr/lib/libpdal_plugin_filter_hexbin.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory(PDAL Error) Plugin '/usr/lib/libpdal_plugin_filter_hexbin.so' found but failed to load: Failed to load "/usr/lib/libpdal_plugin_filter_hexbin.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory
(PDAL Error) Can't load library /usr/lib/libpdal_plugin_kernel_density.so: Failed to load "/usr/lib/libpdal_plugin_kernel_density.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory(PDAL Error) Plugin '/usr/lib/libpdal_plugin_kernel_density.so' found but failed to load: Failed to load "/usr/lib/libpdal_plugin_kernel_density.so": libhexer.so.1.1.0: cannot open shared object file: No such file or directory
- kernels.delta
- kernels.diff
- kernels.ground
- kernels.hausdorff
- kernels.info
- kernels.merge
- kernels.pipeline
- kernels.random
- kernels.sort
- kernels.split
- kernels.tindex
- kernels.translate
See http://pdal.io/apps/ for more detail

...

Interesting, it seems to detect I'm not in a subdirectory of /home/ (because this is a minimal chroot) and tries looking in $PWD/../lib/ before repeating the same errors for /usr/lib

Does upstream officially support optional plugins like this? If so, then their API commands should not throw errors.
Comment by Jester2 (jester2) - Thursday, 17 May 2018, 17:49 GMT
Scimmia, I don't know enough about the package to say whether libhexer-hobu is required or not, but I just know that installing the package will get rid of the error.
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 20 May 2018, 20:05 GMT
I just made hexer-hobu a hard dep. Seems reasonable.

Loading...