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
AttributeError: 'dict' object has no attribute 'index' #205
Comments
Instead of typing gnome you should have hit '2'. That said, looking up the index by value on an error might work to recover from a situation where a user inputs the value instead of number. |
Agreed, this option was meant to be a number-input, but it should also support by name, so this is a mistake on my end :) |
It looks like the line that threw the error already tries to account for this, in the way you said. I think the I was using numbers up until that point, but what threw me off was the installer asking for "Enter a pre-programmed profile name". Anyway, it's a cool installer, thanks for writing it! |
We, and by we I mean me, should really start using generic_select() which supports both numbers and text-input. |
Note that this issue persists for the graphics driver selection, and I would rework it in master, but there are substantial changes to this GPU driver selection logic being made in 2.2.0, so it'll probably get fixed in that version :) |
This should be fixed in the latest RC, and 2.2.0 with its reworked graphics driver selections. Please test the ISO on https://github.com/archlinux/archinstall/releases/tag/v2.1.4-RC2 |
This was fixed in v2.1.4 (released yesterday). Generally we did a lot of improvements to the selection process and this specific error shouldn't happen anymore. If it does, feel free to poke me and I'll re-open! :) |
I got this error when typing "gnome" when asked for what profile to install. It is thrown on this line:
archinstall/archinstall/lib/user_interaction.py
Line 254 in 1a09ad7
Would a
selected_profile = options[list(options).index(selected_profile)]
solve this one?can't copy text from this VMjust remembered screenshots existThe text was updated successfully, but these errors were encountered: