You are not logged in.
Error Message:
Traceback (most recent call last):
File "/usr/bin/powerline-shell", line 5, in <module>
from powerline_shell import main
ModuleNotFoundError: No module named 'powerline_shell'Here is my .bashrc:
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
# powerline
function _update_ps1() {
PS1=$(powerline-shell $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# alias section
alias la="ls -la" # longhand list
alias clr="clear" # clear term
alias termconf="vim ~/.config/termite/config" # open termite config
alias bashconf="vim ~/.bashrc" # open the bash configuration
clear
neofetchI was adding a couple aliases and I think I deleted something. I can't tell what is wrong though.
If I try the powerline script on the archwiki, I get weird boxes instead of the chevron lookign things.
Last edited by AirsoftHamster (2020-12-03 19:07:55)
Offline
Contents of /usr/bin/powerline-shell:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from powerline_shell import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())Offline
The error indicates that it can't find the python module named powerline_shell. Python was recently upgraded to version 3.9 so all python modules need to be rebuilt for the new version. AUR packages are your responsibility so you need to rebuild and re-install the powerline-shell package yourself.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
Are you sure this doesn't have anything to do with yesterday's Python update?
Where is your powerline-shell package installed?
EDIT: Xyne beat me
Last edited by flyingscorpio (2020-12-03 18:20:11)
Offline
Upon running yay -S powerline powerline-shell, it errors out with the message:
error: failed to commit transaction (conflicting files)
powerline-shell: /usr/bin/powerline-shell exists in filesystem
Errors occurred, no packages were upgraded.What should I do?
Offline
You need to force a rebuild
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
upon running pacman -Qo powerline-shell, no packages own it. I don't understand what I have to do from here.
EDIT: wait, I think I understand.
Last edited by AirsoftHamster (2020-12-03 18:51:10)
Offline
What did you do to install it in the first place? It's your system this should be an easy answer. Irrespective of how it got there, Trilby's links will show you how to overwrite existing files that are unknown to pacman.
"the wind-blown way, wanna win? don't play"
Offline
Before this snowballs into more problems using forced overwrites, take a moment to remember how you installed powerline-shell.
If you installed it manually without pacman, then you should remove it manually and then re-install it with pacman, yay or whatever AUR helper you use.
If you installed it with pacman/yay/whatever, then you need to check your pacman database for corruption (e.g. does pacman -Qq list all of your packages), and maybe even check your hard disk for errors with smart.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
thanks Xyne! I was able to rename powerline-shell and then have yay reinstall it. I ran the two error checking commands and got no errors back! marking as solved.
Offline