Package Base Details: python-powerline-git

Git Clone URL: https://aur.archlinux.org/python-powerline-git.git (read-only)
Submitter: Lokaltog
Maintainer: gbs
Last Packager: gbs
Votes: 134
Popularity: 0.001473
First Submitted: 2013-01-23 07:28
Last Updated: 2018-10-10 20:08

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 ... Next › Last »

pablox commented on 2014-11-15 23:34

¬_¬. You weren't showing status bar at all... this wasn't a python-powerline issue xD. Well, I'm glad you sort it out :)

fixles commented on 2014-11-15 17:13

Ok so after a lot of reading I worked it out.

I needed to add two lines to my vimrc
let $PYTHONPATH='/usr/lib/python3.4/site-packages'
set laststatus=2

The last one set laststatus=2 is what actually makes powerline show up.

I'm using urxvt so I needed to install otf-inconsolata-powerline-git from the AUR and add the following line to my .Xdefaults.

urxvt*font: xft:Monospace:size=11,xft:Inconsolata for Powerline:pixelsize=20

fixles commented on 2014-11-15 02:28

When I type echo $PYTHONPATH its blank.
When I export PYTHONPATH='/usr/lib/python3.4/site-packages' vim opens fine but no bar
I tried moving my .bashrc and .vimrc but still nothing. I've just rebuilt the package again and still doesnt work.

Am i missing a dependency or something? Would really like to get this to work.

pablox commented on 2014-11-11 00:09

Could it be that you have the $PYTHONPATH variable exported somewhere else, or that you have another python runtime installed?

fixles commented on 2014-11-10 23:09

@pablox Thanks that stopped the error but just get the default vim line at the bottom?

pablox commented on 2014-11-10 00:20

Add the following:

let $PYTHONPATH='/usr/lib/python3.4/site-packages'

in your .vimrc file. That should do it.

fixles commented on 2014-11-09 23:22

Didnt work for me

>>> ~ vim .Xdefaults
Traceback (most recent call last):
File "<string>", line 9, in <module>
ImportError: No module named powerline.vim
An error occurred while importing powerline module.
This could be caused by invalid sys.path setting,
or by an incompatible Python version (powerline requires
Python 2.6, 2.7 or 3.2 and later to work). Please consult
the troubleshooting section in the documentation for
possible solutions.
Unable to import powerline, is it installed?
Press ENTER or type command to continue

7kry commented on 2014-10-20 05:06

To use battery module, `upower' seems to be required.
Then I think optdepends should include `upower'.

Lokaltog commented on 2014-10-15 10:25

There's been *a lot* of updates since the last PKGBUILD update. Please search the GitHub issue tracker at https://github.com/Lokaltog/powerline/issues, and report any issues there as I'm not currently contributing to Powerline development. I think you have to update your config file, as it appears several backwards-incompatible changes have been introduced since the previous PKGBUILD update.

See https://github.com/Lokaltog/powerline/issues/995 and https://github.com/Lokaltog/powerline/issues/1054 for similar issues. Also try running powerline-lint to debug your config files.

qifei9 commented on 2014-10-15 10:19

After this update, powerline does not work for me. Get many errors like :

2014-10-15 12:02:41,925:ERROR:vim:matcher_generator:Failed to import attr nerdtree from module powerline.matchers.plugin.nerdtree: No module named 'powerline.matchers.plugin'
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/powerline/__init__.py", line 315, in get_module_attr
return getattr(__import__(module, fromlist=(attr,)), attr)
ImportError: No module named 'powerline.matchers.plugin'

...

2014-10-15 12:02:41,989:ERROR:vim:segment_generator:Failed to generate segment from {'name': 'virtcol_current', 'priority': 20, 'draw_soft_divider': False, 'before': ':', 'width': 3, 'align': 'l'}: 'function'
Traceback (most recent call last):
File "/usr/lib/python3.4/site-packages/powerline/segment.py", line 298, in get
contents, _contents_func, module, function_name, name = get_segment_info(data, segment)
File "/usr/lib/python3.4/site-packages/powerline/segment.py", line 62, in get_function
function_name = segment['function']
KeyError: 'function'