Skip to content

ImportError: generic_type: type "Car" is already registered! #21

@oxrock

Description

@oxrock

I'm posting the error log from running a bot with only the sample code provided here: https://github.com/samuelpmish/RLUtilities/blob/master/python/examples/7_Aerial/agent.py

This is using the python release rlutilities_1_0_2 and the unedited example aerial code

Traceback (most recent call last):
File "D:\python3.7.3\lib\site-packages\rlbot\gui\qt_root.py", line 193, in load_preset_toplevel
preset = self.agent_customisation.load_preset_cfg()
File "D:\python3.7.3\lib\site-packages\rlbot\gui\preset_editors.py", line 399, in load_preset_cfg
return super().load_preset_cfg()
File "D:\python3.7.3\lib\site-packages\rlbot\gui\preset_editors.py", line 132, in load_preset_cfg
preset = self.preset_class(self.validate_name(pathlib.Path(file_path).stem, None), file_path)
File "D:\python3.7.3\lib\site-packages\rlbot\gui\presets.py", line 103, in init
self.agent_class = import_agent(python_file_path).get_loaded_class()
File "D:\python3.7.3\lib\site-packages\rlbot\utils\class_importer.py", line 40, in import_agent
return import_class_with_base(python_file, BaseAgent)
File "D:\python3.7.3\lib\site-packages\rlbot\utils\class_importer.py", line 52, in import_class_with_base
return ExternalClassWrapper(python_file, base_class)
File "D:\python3.7.3\lib\site-packages\rlbot\utils\class_importer.py", line 21, in init
self.loaded_class, self.loaded_module = load_external_class(self.python_file, self.base_class)
File "D:\python3.7.3\lib\site-packages\rlbot\utils\class_importer.py", line 59, in load_external_class
loaded_module = load_external_module(python_file)
File "D:\python3.7.3\lib\site-packages\rlbot\utils\class_importer.py", line 86, in load_external_module
loaded_module = importlib.import_module(module_name)
File "D:\python3.7.3\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in call_with_frames_removed
File "D:\coding projects\RLBot\RLBotPythonExample-master\mac-n-cheese\macNcheese.py", line 8, in
from rlutilities.linear_algebra import *
File "D:\coding projects\RLBot\RLBotPythonExample-master\mac-n-cheese\rlutilities_init
.py", line 2, in
from .rlutilities import mechanics, simulation, linear_algebra
ImportError: generic_type: type "Car" is already registered!

There are no import errors when run individually without without the rlbot framework but it errors without fail if trying to start a match.

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