Skip to content

ModuleNotFoundError: No module named 'packaging' #2188

@andreagrandi

Description

@andreagrandi

Description

Hello 👋

I noticed this morning that in Vorta, the last backup was done 4 days ago (it's scheduled to run daily and I have 4 backups configured that way)

Screenshot 2025-01-12 at 07 44 18

So I checked logs and found this error:

2025-01-11 01:12:36,422 - vorta.borg.borg_job - WARNING - ModuleNotFoundError: No module named 'packaging'

I tried to start the backup manually, by clicking on "Start Backup" button, but the procedure exits almost immediately and I see the same error:

Screenshot 2025-01-12 at 07 47 57

It looks like the installation is broken (since it was working before).

Do you have any advice on how to make it work again?

Also: I found out this only because I manually looked at the archives window, there was no error shown in front of me. I could have lost files and not know I didn't have a recent backup.

Cheers

Reproduction

  • I tried to reproduce the issue.
  • I was able to reproduce the issue.

OS

MacOS 15.2

Version of Vorta

0.10.3

What did you install Vorta with?

Homebrew

Version of Borg

1.4.0

Logs

2025-01-12 07:46:51,403 - vorta.keyring.abc - DEBUG - No module named 'secretstorage'
2025-01-12 07:46:51,405 - vorta.keyring.abc - DEBUG - Using VortaDarwinKeyring
2025-01-12 07:46:51,405 - vorta.borg.borg_job - DEBUG - Using VortaDarwinKeyring keyring to store passwords.
2025-01-12 07:46:51,408 - vorta.keyring.darwin - DEBUG - Retrieved password for repo ssh://ybo9lp8h@ybo9lp8h.repo.borgbase.com/./repo
2025-01-12 07:46:51,470 - root - DEBUG - Command ipconfig getpacket en4 failed
2025-01-12 07:46:51,481 - root - DEBUG - Command ipconfig getpacket en5 failed
2025-01-12 07:46:51,491 - root - DEBUG - Command ipconfig getpacket en6 failed
2025-01-12 07:46:51,501 - root - DEBUG - Command ipconfig getpacket bridge0 failed
2025-01-12 07:46:51,519 - root - DEBUG - Command ipconfig getpacket en1 failed
2025-01-12 07:46:51,528 - root - DEBUG - Command ipconfig getpacket en2 failed
2025-01-12 07:46:51,537 - root - DEBUG - Command ipconfig getpacket en3 failed
2025-01-12 07:46:51,543 - vorta.borg.jobs_manager - DEBUG - Add job for site 6
2025-01-12 07:46:51,543 - vorta.borg.jobs_manager - DEBUG - Start job on site: 6
2025-01-12 07:46:51,544 - vorta.borg.borg_job - INFO - Running command /opt/homebrew/bin/borg create --list --progress --info --log-json --json --filter=AM -C lz4 --exclude-from /var/folders/fn/nhnw48js0tsfm61322107hqr0000gn/T/tmpfqc5zu06 ssh://ybo9lp8h@ybo9lp8h.repo.borgbase.com/./repo::Mac-2025-01-12-074651 /Users/andrea/Documents /Users/andrea/Projects /Users/andrea/Music /Users/andrea/.ssh /Users/andrea/Pictures/Lightroom /Users/andrea/Library/Mobile\ Documents/iCloud~md~obsidian/Documents
2025-01-12 07:46:51,565 - vorta.borg.borg_job - WARNING - Traceback (most recent call last):
2025-01-12 07:46:51,565 - vorta.borg.borg_job - WARNING - File "/opt/homebrew/bin/borg", line 5, in <module>
2025-01-12 07:46:51,565 - vorta.borg.borg_job - WARNING - from borg.archiver import main
2025-01-12 07:46:51,565 - vorta.borg.borg_job - WARNING - File "/opt/homebrew/Cellar/borgbackup-fuse/1.4.0/libexec/lib/python3.11/site-packages/borg/__init__.py", line 1, in <module>
2025-01-12 07:46:51,565 - vorta.borg.borg_job - WARNING - from packaging.version import parse as parse_version
2025-01-12 07:46:51,565 - vorta.borg.borg_job - WARNING - ModuleNotFoundError: No module named 'packaging'
2025-01-12 07:46:51,676 - vorta.borg.jobs_manager - DEBUG - Finish job for site: 6
2025-01-12 07:46:51,676 - vorta.borg.jobs_manager - DEBUG - No more jobs for site: 6
2025-01-12 07:46:51,677 - vorta.scheduler - INFO - Setting timer for profile 4
2025-01-12 07:46:51,678 - vorta.scheduler - DEBUG - Scheduling next run for 2025-01-13 04:00:00

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