cdll.LoadLibrary() error

13 views
Skip to first unread message

Jerome Ibanes

unread,
Sep 29, 2020, 3:33:22 AM9/29/20
to PyInstaller
Please see the attached traceback, the system is running Debian 10 on Linux x86_64.

Traceback (most recent call last):
  File "server.py", line 174, in <module>
    main()
  File "server.py", line 147, in main
    libabc = ctypes.cdll.LoadLibrary("libabc.so")
  File "ctypes/__init__.py", line 442, in LoadLibrary
  File "site-packages/PyInstaller/loader/pyiboot01_bootstrap.py", line 149, in __init__
  File "site-packages/PyInstaller/loader/pyiboot01_bootstrap.py", line 135, in _frozen_name
AttributeError: 'function' object has no attribute 'path'
[20149] Failed to execute script server

I have read the cdll.LoadLibrary() workarounds from https://pyinstaller.readthedocs.io/en/stable/feature-notes.html , and here, not using a "leading path" in the string used as an argument to cdll.LoadLibrary().

I am building the binary with the --add-binary "libabc.so:." option.

Thank you for looking,
Jerome
Reply all
Reply to author
Forward
0 new messages