bl3-cli-saveedit icon indicating copy to clipboard operation
bl3-cli-saveedit copied to clipboard

Python error when trying to parse inventory contents

Open hihanhoesj opened this issue 4 months ago • 3 comments

Hi,

First off, thank you for the project.

Not sure if this is just me, but I am getting the following error when I try to list the inventory contents

Traceback (most recent call last):
  File "/home/ianc/BL3-saveeditor-venv/bin/bl3-profile-info", line 8, in <module>
    sys.exit(main())
  File "/home/ianc/BL3-saveeditor-venv/lib/python3.9/site-packages/bl3save/cli_prof_info.py", line 94, in main
    if item.eng_name:
  File "/home/ianc/BL3-saveeditor-venv/lib/python3.9/site-packages/bl3save/datalib.py", line 525, in eng_name
    self._parse_serial()
  File "/home/ianc/BL3-saveeditor-venv/lib/python3.9/site-packages/bl3save/datalib.py", line 326, in _parse_serial
    if self._version > self.serial_db.max_version:
  File "/home/ianc/BL3-saveeditor-venv/lib/python3.9/site-packages/bl3save/datalib.py", line 789, in max_version
    self._initialize()
  File "/home/ianc/BL3-saveeditor-venv/lib/python3.9/site-packages/bl3save/datalib.py", line 772, in _initialize
    with lzma.open(io.BytesIO(importlib.resources.files(__name__).joinpath(
  File "/home/ianc/.pyenv/versions/3.9.20/lib/python3.9/importlib/resources.py", line 147, in files
    return _common.from_package(_get_package(package))
  File "/home/ianc/.pyenv/versions/3.9.20/lib/python3.9/importlib/resources.py", line 51, in _get_package
    raise TypeError('{!r} is not a package'.format(package))
TypeError: 'bl3save.datalib' is not a package

I am running on Debian 12 and have tried running in Python 3.9, 3.10 and the native 3.11. Same error in all of them.

Error is reported in both the profile and save info modules.

Error can also be triggered when you try and save with -o items

Any assistance will be appreciated.

hihanhoesj avatar Oct 01 '24 07:10 hihanhoesj