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

AttributeError: 'NoneType' object has no attribute 'encryption password' #1715

Closed
ghost opened this issue Apr 1, 2023 · 11 comments
Closed

Comments

@ghost
Copy link

ghost commented Apr 1, 2023

When I finished configuring the Disk layout item, the Disk encryption item was empty, I saw on bloggers who used this script that the item said "None". I think that's why I can't use the script. I tried to run it on a Virtual Machine and on a laptop, but there and there was this error.

@tuxdotrs
Copy link

tuxdotrs commented Apr 2, 2023

The current archinstall script on Arch Live ISO is broken. The issue has been fixed in this repo though. You should clone this repo in live ISO and exec the install script.

@Torxed
Copy link
Member

Torxed commented Apr 2, 2023

Duplicate of #1704, fixed in #1705 and published in v2.5.5 a few minutes ago :)

Temporary workaround as mentioned in #1712 (comment):
nano +74 /usr/lib/python3.10/site-packages/archinstall/lib/configuration.py

- if key == 'disk_encryption':
+ if key == 'disk_encryption' and self._config[key]:

@Torxed Torxed closed this as completed Apr 2, 2023
@jalovisko
Copy link

Sorry for bumping the closed issue, but I just want to add that simply updating archinstall with pacman also seems to do the trick.

@Torxed
Copy link
Member

Torxed commented Apr 4, 2023

Yepp, you can access it by doing pacman -Sy archinstall : )

@llllOllOOll
Copy link

llllOllOOll commented Apr 5, 2023

@Torxed

nano +74 /usr/lib/python3.10/site-packages/archinstall/lib/configuration.py

  • if key == 'disk_encryption':
  • if key == 'disk_encryption' and self._config[key]:

Thank you, guys! That's solve my problem!

@Lokesh-Wankhede
Copy link

Oh my! this is my first-time installing arch, wasted 5 hours trying to get the solution for this error. and the install-script was the culprit.

@Apoorv012
Copy link

This is my first time too. Faced the issue too. updating archlinux fixed. :)

@HubKing
Copy link

HubKing commented Apr 27, 2023

This was an embarrassing bug. I think, to prevent future cases like this, archinstall, at the start if Internet connection is available, should check if the current version has a critical bug like this and tell users to run pacman -Sy archinstall to update it and exit.

@ipaqmaster
Copy link

Yeah not fantastic. I fired up a VM today for a test and tried archinstall only to hit AttributeError: 'NoneType' object has no attribute 'encryption password' without going near that area. Immediately came here to see what's going on and there's already fix discussion early in the thread.

What's confusing me is how there hasn't been an emergency/new archiso build to replace the broken package from the April 1st 2023 ISO. So most people trying Archlinux for the first time this month expecting to use archinstall would've gotten stuck, only a percentage searching and finding this thread with the answer where many wouldn't have.

This was on archlinux-2023.04.01-x86_64.iso and there doesn't seem to be a newer version despite this problem being baked in for the whole month. A whole month of the latest archiso without people being able to use archinstall without tinkering. Maybe this serves as a good introduction for new Arch users to the experience? (I kid 😉)

There should be a pipeline and tests for the archinstall scripts so they can be tagged as working before being built into archiso. Tests would've caught this problem before the problematic commit made it to the ISO.

@Apoorv012
Copy link

Little mistakes happen. I like the idea of suggesting to update the version, if internet access is available.
Apart from that, probably just making a minor update to the iso will also be great.

@MALossov
Copy link

MALossov commented May 2, 2023

This error still appears in ISO(2023.4), thanks so much for your idea.

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

9 participants