Rok Mandeljc
Rok Mandeljc
For the executables, wouldn't it be safer if we just resolved each and every one using `shutil.which` instead of trying to resolve their directory and collecting them from it?
Sounds like you need to collect binaries from the `torchtext` package. Either by adding `--collect-binaries torchtext` or by writing a custom hook. And since you're trying to use `torch` and...
FWIW, I plan to implement proper official hooks for `torch` and `torch{vision,audio,text}`, once pyinstaller/pyinstaller#7619 is finished and we have symlink support in place, so we can avoid duplication issues discussed...
Can we see the whole run-time error message, then? Also, what versions of `torch` libraries are you using, and how did you install them (via conda or via pip)?
> 7. ln -s /Users/tong/opt/anaconda3/envs/scikit_xgb/lib/python3.11/site-packages/torchtext/lib/libtorchtext.so . > 8. install_name_tool -add_rpath @loader_path/.. torchtext/lib/libtorchtext.so Don't do this. Symlinking a system-installed file into application bundle make the application bundle non-portable.
If `torchtext/lib/libtorchtext.so` was collected, then you probably need to just create symlink to it into top-level directory: `ln -s ./torchtext/lib/libtorchtext.dylib .` If it was not collected, you might need to...
It is killed because of dylib duplication - that's why you need to also apply steps from https://github.com/pyinstaller/pyinstaller-hooks-contrib/issues/375.
The sqlalchemy plugins are discovered via entry-points, so you need to collect metadata and add the module to hiddenimports. In the case of `ibm_db_sa`, add `--copy-metadata ibm-db-sa --hiddenimport ibm_db_sa` to...
> Still having this issue with torch 1.12.1, pyinstaller 5.6.2 and pyinstaller-hooks-contrib 2022.13: > > `pyimod03_ctypes.install..PyInstallerImportError: Failed to load dynlib/dll '/.../dist/.../libtorch_global_deps.dylib'. Most likely this dynlib/dll was not found when the...
So first, unless you absolutely have to use Anaconda, I suggest you to switch to python.org python + pip-installed packages when building with PyInstaller - because in addition to spotty...