Skip to content

single folder output runs correctly, but --onefile output fails on linux x64 #8632

Answered by rokm
imavo asked this question in PyInstaller
Discussion options

You must be logged in to vote

The most elegant (and canonical) way would be to create a hook for ibm_db that looks up the package path, then checks if ibm_db.libs exists in the same directory, and collect files from it.

Typically, PyInstaller.utils.hooks.collect_dynamic_libs helper would be used for this, but in this case, ibm_db.libs is not a valid package name, so a custom implementation is required (and even if it could be used, the search patterns would need to be overridden, to include versioned .so files).

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@rokm
Comment options

rokm Jun 28, 2024
Maintainer

@rokm
Comment options

rokm Jun 28, 2024
Maintainer

Comment options

You must be logged in to vote
1 reply
@rokm
Comment options

rokm Jun 28, 2024
Maintainer

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@rokm
Comment options

rokm Jul 1, 2024
Maintainer

Answer selected by imavo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants