Powerline: setup.py syntax error

Created on 7 Jan 2013  ·  5Comments  ·  Source: powerline/powerline

Hello,

I think in last version posted to pipy, there's a glitch in the setup file. It looks like you put two times the zip_safe in the setup.py file.

Downloading/unpacking powerline
  Downloading powerline-0.2.4.zip (79kB): 79kB downloaded
  Running setup.py egg_info for package powerline
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/var/folders/pm/pmEvZQRMFJ8H9Sfw2IZGgU+++TM/-Tmp-/pip-build/powerline/setup.py", line 27
        zip_safe = False,
    SyntaxError: keyword argument repeated
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/var/folders/pm/pmEvZQRMFJ8H9Sfw2IZGgU+++TM/-Tmp-/pip-build/powerline/setup.py", line 27

    zip_safe = False,

SyntaxError: keyword argument repeated

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /var/folders/pm/pmEvZQRMFJ8H9Sfw2IZGgU+++TM/-Tmp-/pip-build/powerline

here's a little patch, if that helps:

diff --git a/setup.py b/setup.py.patched
index 41b8b12..048d2f9 100644
--- a/setup.py
+++ b/setup.py.a
@@ -24,7 +24,6 @@ setup(
                        'templates/data/images/*'
                ]
        },
-   zip_safe = False,

        install_requires = [
                'setuptools>=0.6b1',

HTH

Most helpful comment

dammit, you then should add to the documentation "/!\ don't use pip install powerline which is totally something else"... I went into much trouble because of that :-s

All 5 comments

That's another package with the same name unfortunately, I haven't uploaded anything to the PyPI because of it. You have to install the tarball from github as described in the docs.

dammit, you then should add to the documentation "/!\ don't use pip install powerline which is totally something else"... I went into much trouble because of that :-s

Indeed. This is still a problem in 2018!

No it's not. pip install powerline-status

https://powerline.readthedocs.io/en/latest/installation.html#pip-installation

Fair enough.

Was this page helpful?
0 / 5 - 0 ratings