<diagnostics> 2023-04-02 07:09:39,337 - [ERROR] - hm_pyhelper.miner_param - (ecc_diagnostic.py).perform_test -- /opt/python-dependencies/hw_diag/diagnostics/ecc_diagnostic.py:(43) - cannot access local variable 'ecc_location' where it is not associated with a value
<diagnostics> Traceback (most recent call last):
<diagnostics> File "/opt/python-dependencies/hw_diag/diagnostics/ecc_diagnostic.py", line 21, in perform_test
<diagnostics> ecc_tests = get_gateway_mfr_test_result()
<diagnostics> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/miner_param.py", line 207, in get_gateway_mfr_test_result
<diagnostics> return run_gateway_mfr("test")
<diagnostics> ^^^^^^^^^^^^^^^^^^^^^^^
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/lock_singleton.py", line 71, in wrapper_lock_ecc
<diagnostics> raise ex
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/lock_singleton.py", line 60, in wrapper_lock_ecc
<diagnostics> raise ex
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/lock_singleton.py", line 57, in wrapper_lock_ecc
<diagnostics> value = func(*args, **kwargs)
<diagnostics> ^^^^^^^^^^^^^^^^^^^^^
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/miner_param.py", line 32, in run_gateway_mfr
<diagnostics> command = get_gateway_mfr_command(sub_command, slot=slot)
<diagnostics> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/miner_param.py", line 167, in get_gateway_mfr_command
<diagnostics> get_ecc_location()
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/miner_param.py", line 150, in get_ecc_location
<diagnostics> if not ecc_location:
<diagnostics> ^^^^^^^^^^^^
<diagnostics> UnboundLocalError: cannot access local variable 'ecc_location' where it is not associated with a value
<diagnostics> ERROR:hm_pyhelper.miner_param:cannot access local variable 'ecc_location' where it is not associated with a value
<diagnostics> Traceback (most recent call last):
<diagnostics> File "/opt/python-dependencies/hw_diag/diagnostics/ecc_diagnostic.py", line 21, in perform_test
<diagnostics> ecc_tests = get_gateway_mfr_test_result()
<diagnostics> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/miner_param.py", line 207, in get_gateway_mfr_test_result
<diagnostics> return run_gateway_mfr("test")
<diagnostics> ^^^^^^^^^^^^^^^^^^^^^^^
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/lock_singleton.py", line 71, in wrapper_lock_ecc
<diagnostics> raise ex
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/lock_singleton.py", line 60, in wrapper_lock_ecc
<diagnostics> raise ex
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/lock_singleton.py", line 57, in wrapper_lock_ecc
<diagnostics> value = func(*args, **kwargs)
<diagnostics> ^^^^^^^^^^^^^^^^^^^^^
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/miner_param.py", line 32, in run_gateway_mfr
<diagnostics> command = get_gateway_mfr_command(sub_command, slot=slot)
<diagnostics> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/miner_param.py", line 167, in get_gateway_mfr_command
<diagnostics> get_ecc_location()
<diagnostics> File "/opt/python-dependencies/hm_pyhelper/miner_param.py", line 150, in get_ecc_location
<diagnostics> if not ecc_location:
<diagnostics> ^^^^^^^^^^^^
<diagnostics> UnboundLocalError: cannot access local variable 'ecc_location' where it is not associated with a value
This is the error:
Ref https://github.com/NebraLtd/helium-syncrobit/issues/2#issuecomment-1493305615