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

UnboundLocalError: local variable 'avax_rpcchainvm_proto_version' referenced before assignment #136

Open
leopaul36 opened this issue Nov 29, 2024 · 1 comment

Comments

@leopaul36
Copy link
Contributor

vm_version_compat.py seems to have trouble with this setup:

avalancheNodeConfig:
  avalanchego_version: 1.12.0-fuji
  avalanchego_vms_install:
    subnet-evm: 0.6.12

Logs:

TASK [ash.avalanche.node : Check that subnet-evm=0.6.12 is compatible with avalanchego=1.12.0-fuji] ***
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: UnboundLocalError: local variable 'avax_rpcchainvm_proto_version' referenced before assignment
fatal: [node]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tmp-1732881722.6489441-3792633-175731504954772/AnsiballZ_vm_version_compat.py\", line 107, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1732881722.6489441-3792633-175731504954772/AnsiballZ_vm_version_compat.py\", line 99, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1732881722.6489441-3792633-175731504954772/AnsiballZ_vm_version_compat.py\", line 47, in invoke_module\n    runpy.run_module(mod_name='ansible_collections.ash.avalanche.plugins.modules.vm_version_compat', init_globals=dict(_module_fqn='ansible_collections.ash.avalanche.plugins.modules.vm_version_compat', _modlib_path=modlib_path),\n  File \"/usr/lib/python3.10/runpy.py\", line 224, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib/python3.10/runpy.py\", line 96, in _run_module_code\n    _run_code(code, mod_globals, init_globals,\n  File \"/usr/lib/python3.10/runpy.py\", line 86, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_ash.avalanche.vm_version_compat_payload_v4kpm08c/ansible_ash.avalanche.vm_version_compat_payload.zip/ansible_collections/ash/avalanche/plugins/modules/vm_version_compat.py\", line 94, in <module>\n  File \"/tmp/ansible_ash.avalanche.vm_version_compat_payload_v4kpm08c/ansible_ash.avalanche.vm_version_compat_payload.zip/ansible_collections/ash/avalanche/plugins/modules/vm_version_compat.py\", line 90, in main\n  File \"/tmp/ansible_ash.avalanche.vm_version_compat_payload_v4kpm08c/ansible_ash.avalanche.vm_version_compat_payload.zip/ansible_collections/ash/avalanche/plugins/modules/vm_version_compat.py\", line 74, in run_module\nUnboundLocalError: local variable 'avax_rpcchainvm_proto_version' referenced before assignment\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
@Nuttymoon
Copy link
Contributor

Possible that it doesn't like the -fuji part that is non standard

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