rdiff-backup - cannot mport name 'C'

14 views
Skip to first unread message

Admin Kebler

unread,
Jan 25, 2021, 4:09:42 AM1/25/21
to PyInstaller

On a prayer I though I might get rdiff-backup to be bundled with pysintaller.

I ran `pyinstaller src/rdiff-backup`


and it completed.  but when It try to run it from the dist folder

ImportError: cannot import name 'C' from 'rdiff_backup' (/mnt/AllData/hacking/eval/rdiff-backup/dist/rdiff-backup/rdiff_backup/__init__.pyc)
[21167] Failed to execute script rdiff-backup

:(.   Since I am neither the rdiff-backup dev nor really a python coder I'm not going to track this down.  Is it some C code/library that didn't get compiled?

Anyone tried rdiff-backup?  or have a quick fix for this issue?  Otherwise I'll give up.

running V4.2 over python 3.8.7



Admin Kebler

unread,
Jan 25, 2021, 12:04:00 PM1/25/21
to PyInstaller
Well poking around,  I now see many missing modules.   Fixing them is probably beyond my ability and motivation.

Below are just the top-level ones

The worst being a missing module for PyInstaller itself which apparently does the imports which might explain why so many are missing.  I had installed PyInstaller via pip.

missing module named pyimod03_importers - imported by /usr/local/lib/python3.8/dist-packages/PyInstaller/hooks/rthooks/pyi_rth_pkgres.py (top-level)
missing module named 'pkg_resources.extern.pyparsing' - imported by pkg_resources._vendor.packaging.markers (top-level), pkg_resources._vendor.packaging.requirements (top-level)
missing module named _winapi - imported by encodings (delayed, conditional, optional), subprocess (optional), test.support (delayed, conditional), multiprocessing.connection (optional), multiprocessing.spawn (delayed, conditional), multiprocessing.reduction (conditional), multiprocessing.shared_memory (conditional), multiprocessing.heap (conditional), multiprocessing.popen_spawn_win32 (top-level), asyncio.windows_events (top-level), asyncio.windows_utils (top-level)
missing module named _overlapped - imported by asyncio.windows_events (top-level)
missing module named multiprocessing.set_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named multiprocessing.get_start_method - imported by multiprocessing (top-level), multiprocessing.spawn (top-level)
missing module named _frozen_importlib_external - imported by importlib._bootstrap (delayed), importlib (optional), importlib.abc (optional), zipimport (top-level)
excluded module named _frozen_importlib - imported by importlib (optional), importlib.abc (optional), zipimport (top-level)
missing module named multiprocessing.get_context - imported by multiprocessing (top-level), multiprocessing.pool (top-level), multiprocessing.managers (top-level), multiprocessing.sharedctypes (top-level)
missing module named multiprocessing.TimeoutError - imported by multiprocessing (top-level), multiprocessing.pool (top-level)
missing module named multiprocessing.BufferTooShort - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named multiprocessing.AuthenticationError - imported by multiprocessing (top-level), multiprocessing.connection (top-level)
missing module named pkg_resources.extern.packaging - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named pkg_resources.extern.appdirs - imported by pkg_resources.extern (top-level), pkg_resources (top-level)
missing module named msvcrt - imported by subprocess (optional), getpass (optional), test.support (delayed, conditional, optional), multiprocessing.spawn (delayed, conditional), multiprocessing.popen_spawn_win32 (top-level), asyncio.windows_events (top-level), asyncio.windows_utils (top-level), /mnt/AllData/hacking/eval/rdiff-backup/src/rdiff-backup (optional)
missing module named rdiff_backup._librsync - imported by rdiff_backup (top-level), rdiff_backup.librsync (top-level)
missing module named rdiff_backup.C - imported by rdiff_backup (top-level), rdiff_backup.rpath (top-level), rdiff_backup.robust (top-level), rdiff_backup.eas_acls (top-level), rdiff_backup.win_acls (top-level), rdiff_backup.regress (top-level), rdiff_backup.Main (top-level)
missing module named macresource - imported by MacOS (top-level)
missing module named _yaml - imported by yaml.cyaml (top-level)

Reply all
Reply to author
Forward
0 new messages