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

eqllib/docs/guides/index.rst says eqllib supports python2.7 which is no longer true #25

Closed
anna-seppala opened this issue Dec 23, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@anna-seppala
Copy link

Describe the bug

This is not really a bug, just outdated info in the docs.
eqllib needs the more_itertools package, which requires python3:
ERROR: Package 'more-itertools' requires a different Python: 2.7.17 not in '>=3.5'

This dependency makes eqllib fails at launch if using python2.7:

Traceback (most recent call last):
File "/usr/local/bin/eqllib", line 11, in
load_entry_point('eqllib==0.2.0', 'console_scripts', 'eqllib')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2852, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2443, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/home/seppala/devel/src/coursera/exercises/holiday_hack/eqllib/eqllib/init.py", line 4, in
from .loader import Configuration
File "/home/seppala/devel/src/coursera/exercises/holiday_hack/eqllib/eqllib/loader.py", line 12, in
from .schemas import Analytic, BaseNormalization, make_normalization_schema
File "/home/seppala/devel/src/coursera/exercises/holiday_hack/eqllib/eqllib/schemas.py", line 4, in
import jsonschema
File "/usr/local/lib/python2.7/dist-packages/jsonschema-3.2.0-py2.7.egg/jsonschema/init.py", line 33, in
import importlib_metadata as metadata
File "/usr/local/lib/python2.7/dist-packages/importlib_metadata-1.3.0-py2.7.egg/importlib_metadata/init.py", line 9, in
import zipp
File "/usr/local/lib/python2.7/dist-packages/zipp-0.6.0-py2.7.egg/zipp.py", line 12, in
import more_itertools
File "build/bdist.linux-x86_64/egg/more_itertools/init.py", line 1, in
File "/usr/local/lib/python2.7/dist-packages/more_itertools-8.0.2-py2.7.egg/more_itertools/more.py", line 460
yield from iterable
^
SyntaxError: invalid syntax

To Reproduce

Steps to reproduce the behavior:

  1. git clone https://github.com/endgameinc/eqllib.git
  2. cd eqllib
  3. (sudo) python setup.py install
  4. eqllib -h
  5. error

Just pointing this out in case anyone (like me) is still living in the past and using python2.7.

Best,
Anna

@anna-seppala anna-seppala added the bug Something isn't working label Dec 23, 2019
@rw-access
Copy link
Contributor

It looks like the version of jsonschema wasn't pinned well, so this pulled in a version of jsonschema that is incompatible. I'll still keep support for Python 2.7, and a fix will be in shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants