Skip to content

blurb uses system python, but expect python 3 #153

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

Closed
nirs opened this issue Jul 6, 2017 · 4 comments
Closed

blurb uses system python, but expect python 3 #153

nirs opened this issue Jul 6, 2017 · 4 comments
Labels

Comments

@nirs
Copy link
Contributor

nirs commented Jul 6, 2017

After installing blurb:

pip install --user blurb

It fails, using system python:

$ blurb
Traceback (most recent call last):
  File "/home/nsoffer/.local/bin/blurb", line 9, in <module>
    load_entry_point('blurb==1.0.0.post1', 'console_scripts', 'blurb')()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2575, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2235, in load
    return self.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2241, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/home/nsoffer/.local/lib/python2.7/site-packages/blurb.py", line 125
    def textwrap_body(body, *, subsequent_indent=''):
                             ^
SyntaxError: invalid syntax
@nirs
Copy link
Contributor Author

nirs commented Jul 6, 2017

Strangely, it fails also with python 3:

$ pip3 install --user blurb
...
Successfully installed blurb
$ blurb
Traceback (most recent call last):
  File "/home/nsoffer/.local/bin/blurb", line 7, in <module>
    from blurb import main
  File "/home/nsoffer/.local/lib/python3.5/site-packages/blurb.py", line 166
    return input(f"[{prompt}> ")
                              ^
SyntaxError: invalid syntax

@Mariatta
Copy link
Member

Mariatta commented Jul 6, 2017

The version of blurb that is in PyPI right now requires Python 3.6.

@Mariatta Mariatta added the blurb label Jul 6, 2017
@nirs
Copy link
Contributor Author

nirs commented Jul 7, 2017

Maybe the metadata in pypi is not correct, or this is pip issue, letting the user install a version which is not compatible with the current python version?

@brettcannon
Copy link
Member

@nirs if your version of pip is too old -- which is quite possible if you're using a system-installed Python -- then it won't have the logic to check for python-requires as set on PyPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants