Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Unable to import PyNvCodec as nvc #566

Open
KevinZ-718 opened this issue Apr 12, 2024 · 1 comment
Open

Unable to import PyNvCodec as nvc #566

KevinZ-718 opened this issue Apr 12, 2024 · 1 comment

Comments

@KevinZ-718
Copy link

Python 3.11.5 (main, Sep 11 2023, 13:54:46) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import PyNvCodec as nvc
Traceback (most recent call last):
File "/home/kevin/anaconda3/lib/python3.11/site-packages/PyNvCodec/init.py", line 17, in
from ._PyNvCodec import * # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: /lib/x86_64-linux-gnu/libp11-kit.so.0: undefined symbol: ffi_type_pointer, version LIBFFI_BASE_7.0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/home/kevin/anaconda3/lib/python3.11/site-packages/PyNvCodec/init.py", line 21, in
raise RuntimeError("Failed to import native module _PyNvCodec! "
RuntimeError: Failed to import native module _PyNvCodec! Please check whether "/home/kevin/anaconda3/lib/python3.11/site-packages/PyNvCodec/_PyNvCodec.cpython-311-x86_64-linux-gnu.so" exists and can find all library dependencies (CUDA, ffmpeg).
On Unix systems, you can use ldd on the file to see whether it can find all dependencies.
On Windows, you can use "dumpbin /dependents" in a Visual Studio command prompt or
https://github.com/lucasg/Dependencies/releases.

@RomanArzumanyan
Copy link
Contributor

Hi @KevinZ-718

Please check out https://github.com/RomanArzumanyan/VALI which is actively developed and maintained VPF spin-off. It has compatible API and module naming. In case your issue reproduces with VALI, just duplicate it there.

Unfortunately there's no active development going in VPF public repo now, so I won't be able to help you here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants