Dear Experts,
I’ve installed the new LTS version (20.04) of ubuntu and aliBuild (also aliDoctor) crashes. Here is the log:
Traceback (most recent call last): File "/usr/local/bin/aliBuild", line 128, in <module> doMain(args, parser) File "/usr/local/bin/aliBuild", line 43, in doMain "ALIBUILD_ARCHITECTURE": args.architecture AttributeError: 'Namespace' object has no attribute 'architecture' Traceback (most recent call last): File "/usr/local/bin/aliBuild", line 135, in <module> report_exception(e) File "/usr/local/lib/python3.8/dist-packages/alibuild_helpers/analytics.py", line 104, in report_exception report("exception", File "/usr/local/lib/python3.8/dist-packages/alibuild_helpers/analytics.py", line 73, in report architecture = os.environ["ALIBUILD_ARCHITECTURE"] File "/usr/lib/python3.8/os.py", line 675, in __getitem__ raise KeyError(key) from None KeyError: 'ALIBUILD_ARCHITECTURE'
I’m not fluent in python but managed to track down the problem to detectArch() function in file utilities.py. The package platform, that’s used there, has been deprecated since python 3.5 and removed in python 3.8. Consequently, on my system with python 3.8.2, the function returns nothing, the architecture is not detected properly and everything else fails.
I know I’m using a very new distribution, but I guess soon it will become a problem for more people and other platforms with newer python. Would it be possible to fix within a reasonable timescale, or should I think about a workaround (downgrading python / using alidock, etc… )?