Skip to content

Python lib error: undefined symbol: btrfs_util_subvolume_is_valid #995

Open
@mhkarimi1383

Description

@mhkarimi1383

Getting

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/rawfile/rawfile.py", line 5, in <module>
    import bd2fs
  File "/rawfile/bd2fs.py", line 24, in <module>
    from filesystem import get_from_device_or_fallback
  File "/rawfile/filesystem/__init__.py", line 4, in <module>
    from .btrfs import BTRFS
  File "/rawfile/filesystem/btrfs.py", line 11, in <module>
    from btrfsutil import (
    ...<6 lines>...
    )
ImportError: /opt/pysetup/.venv/lib/python3.13/site-packages/btrfsutil.cpython-313-x86_64-linux-gnu.so: undefined symbol: btrfs_util_subvolume_is_valid

while using ‍btrfsutil in python

Here is my complete import statement

from btrfsutil import (
    create_subvolume,
    set_default_subvolume,
    get_default_subvolume,
    subvolume_path,
    create_snapshot,
    delete_subvolume,
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions