Skip to content

When the OS PATH variable cannot be retrieved, decord will fail. #357

@rootzh

Description

@rootzh

File "/home/snuser/.local/lib/python3.11/site-packages/decord/init.py", line 4, in
from ._ffi.runtime_ctypes import TypeCode
File "/home/snuser/.local/lib/python3.11/site-packages/decord/_ffi/runtime_ctypes.py", line 8, in
from .base import _LIB, check_call
File "/home/snuser/.local/lib/python3.11/site-packages/decord/_ffi/base.py", line 47, in
_LIB, _LIB_NAME = _load_lib()
^^^^^^^^^^^
File "/home/snuser/.local/lib/python3.11/site-packages/decord/_ffi/base.py", line 38, in _load_lib
os.environ['PATH'] += os.pathsep + os.path.dirname(lib_path[0])
~~~~~~~~~~^^^^^^^^
File "", line 679, in getitem
KeyError: 'PATH'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions