dmacias72 / unRAID-NerdPack

GNU General Public License v2.0
77 stars 33 forks source link

Python 3.9.0 update breaks borgbackup #33

Closed michaeldonovan closed 4 years ago

michaeldonovan commented 4 years ago

After updating Python to 3.9.0 and installing borg 1.1.14, running borg now causes an exception to be thrown. Looks like borg is still being installed under /usr/lib64/python3.8 so 3.9's pkg_resources can't find it.

Let me know if there's any additional information I can provide.

Thanks!

Traceback (most recent call last):
  File "/usr/bin/borg", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.9/site-packages/pkg_resources/__init__.py", line 3239, in <module>
    def _initialize_master_working_set():
  File "/usr/lib64/python3.9/site-packages/pkg_resources/__init__.py", line 3222, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/pkg_resources/__init__.py", line 3251, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib64/python3.9/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/lib64/python3.9/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.9/site-packages/pkg_resources/__init__.py", line 770, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'borgbackup==1.1.14' distribution was not found and is required by the application
dmacias72 commented 4 years ago

Recompiled with python 3.9 Should work now

michaeldonovan commented 4 years ago

Yep, it works now. Thanks for the quick turnaround!

dmacias72 commented 4 years ago

And thank you.