Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error loading script: infinity_grid.py. An update to the issue. #134

Closed
blu3nh opened this issue Apr 9, 2024 · 1 comment
Closed

Error loading script: infinity_grid.py. An update to the issue. #134

blu3nh opened this issue Apr 9, 2024 · 1 comment

Comments

@blu3nh
Copy link

blu3nh commented Apr 9, 2024

Update to this error saga:
#132

*** Error loading script: infinity_grid.py
    Traceback (most recent call last):
      File "B:\A1111\modules\scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "B:\A1111\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "B:\A1111\extensions\sd-infinity-grid-generator-script\scripts\infinity_grid.py", line 22, in <module>
        import gridgencore as core
      File "B:\A1111\extensions\sd-infinity-grid-generator-script\gridgencore.py", line 256, in <module>
        YamlIncludeConstructor.add_to_loader_class(loader_class=GridYamlLoader, base_dir=ASSET_DIR)
    AttributeError: type object 'Constructor' has no attribute 'add_to_loader_class'

---

Updated A1111, updated the infinity script extension, deleted and recreated venv.
Error still persists x_x

try:
    from yamlinclude import YamlIncludeConstructor
except:
    from yaml_include import Constructor as YamlIncludeConstructor

^ this code is already present, but only changed the error :/

@mcmonkey4eva
Copy link
Member

duplicate of #133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants