Skip to content

KeyError and no bcml on Ubuntu #28

Description

@MooneMan

Xubuntu 24.04.1
Python 3.8.10 in virtual environment
BCML 3.10.14

I have the folder and the mod on an different partition named INT128

When i use the virtual environment i get KeyError: 'formatters' error

other@other-dvalin:~$ source venv/bin/activate
(venv) other@other-dvalin:~$ convert_to_switch /media/other/INT128/linkle__kunoichi_kimono-cosplay15.bnp
Traceback (most recent call last):
  File "/home/other/venv/bin/convert_to_switch", line 5, in <module>
    from ubotw_converter.converter import main
  File "/home/other/venv/lib/python3.8/site-packages/ubotw_converter/converter.py", line 60, in <module>
    logging.config.fileConfig(fname=LOG_CONF, defaults={"logfilename": ERROR_LOG, "loglevel": args.log_level.upper()})
  File "/usr/local/lib/python3.8/logging/config.py", line 71, in fileConfig
    formatters = _create_formatters(cp)
  File "/usr/local/lib/python3.8/logging/config.py", line 104, in _create_formatters
    flist = cp["formatters"]["keys"]
  File "/usr/local/lib/python3.8/configparser.py", line 960, in __getitem__
    raise KeyError(key)
KeyError: 'formatters'
(venv) other@other-dvalin:~$ 

Screenshot_2024-12-27_22-48-45

and when I go to the folder to use the python script I get told that the BOTW dump isn't set or doesn't exist

Saving data....
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.Globalization.CultureInfo.get_InvariantCulture()
   at CommandLine.ParserSettings..ctor()
   at CommandLine.Parser..ctor(System.Action`1<CommandLine.ParserSettings>)
   at HKXConvert.Program.Main(System.String[])
Converting Armor_210_Upper.hkcl
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.Globalization.CultureInfo.get_InvariantCulture()
   at CommandLine.ParserSettings..ctor()
   at CommandLine.Parser..ctor(System.Action`1<CommandLine.ParserSettings>)
   at HKXConvert.Program.Main(System.String[])
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
   at System.Environment.FailFast(System.String)
   at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
   at System.Globalization.GlobalizationMode..cctor()
   at System.Globalization.CultureData.CreateCultureWithInvariantData()
   at System.Globalization.CultureData.get_Invariant()
   at System.Globalization.CultureInfo..cctor()
   at System.Globalization.CultureInfo.get_InvariantCulture()
   at CommandLine.ParserSettings..ctor()
   at CommandLine.Parser..ctor(System.Action`1<CommandLine.ParserSettings>)
   at HKXConvert.Program.Main(System.String[])
Finding modified files...
Found 52 modified files...
Found 60 modified files in SARCs...
Traceback (most recent call last):
  File "converter.py", line 319, in convert
    warnings = convert_mod(mod_path, False, True)
  File "/home/other/.local/lib/python3.8/site-packages/bcml/dev.py", line 796, in convert_mod
    merger.log_diff(mod, files)
  File "/home/other/.local/lib/python3.8/site-packages/bcml/mergers/rstable.py", line 293, in log_diff
    diff_material = self.generate_diff(mod_dir, diff_material)
  File "/home/other/.local/lib/python3.8/site-packages/bcml/mergers/rstable.py", line 245, in generate_diff
    self._table = get_stock_rstb()
  File "/home/other/.local/lib/python3.8/site-packages/bcml/mergers/rstable.py", line 92, in get_stock_rstb
    util.get_game_file(
  File "/home/other/.local/lib/python3.8/site-packages/bcml/util.py", line 948, in get_game_file
    game_dir = get_game_dir()
  File "/home/other/.local/lib/python3.8/site-packages/bcml/util.py", line 676, in get_game_dir
    raise FileNotFoundError(
FileNotFoundError: The BOTW game dump directory has not been set or does not exist.

It seems some files could not be converted. Please check error.log for more info.
other@other-dvalin:/media/other/INT128/UBotWConverterv1.3.4$ 

Screenshot_2024-12-27_22-57-31

Meanwhile BCML has the folders set:

Screenshot_2024-12-27_22-58-43

Is there anything I can do to fix this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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