tezos-setup fails on Ubuntu 20.04 with Python version mismatch:
tezos-setup
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tezos_baking/tezos_setup_wizard.py", line 1074, in main
setup_logger("tezos-setup.log")
File "/usr/lib/python3/dist-packages/tezos_baking/wizard_structure.py", line 101, in setup_logger
logging.basicConfig(
File "/usr/lib/python3.8/logging/__init__.py", line 2009, in basicConfig
raise ValueError('Unrecognised argument(s): %s' % keys)
ValueError: Unrecognised argument(s): encoding
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/tezos-setup", line 11, in <module>
load_entry_point('tezos-baking==0.0.0', 'console_scripts', 'tezos-setup')()
File "/usr/lib/python3/dist-packages/tezos_baking/tezos_setup_wizard.py", line 1098, in main
if "network" in setup.config:
UnboundLocalError: local variable 'setup' referenced before assignment
tezos-setup requires python3.9, but the default version on Ubuntu focal is 3.8.10. We should provide a workaround for it as we did for bionic previously.
To Reproduce
Install tezos-baking package on Ubuntu 20.04 and run the tezos-setup command.
Description
tezos-setup
fails on Ubuntu 20.04 with Python version mismatch:tezos-setup
requirespython3.9
, but the default version on Ubuntufocal
is3.8.10
. We should provide a workaround for it as we did forbionic
previously.To Reproduce
Install
tezos-baking
package on Ubuntu 20.04 and run thetezos-setup
command.