uchicago-cs/chisubmit

chisubmit targets the wrong version on PyPi

Closed this issue · 0 comments

My default pip points to

pip 1.5.6 from /usr/local/lib/python3.4/dist-packages (python 3.4)

After running sudo pip install chisubmit, attempting to run chisubmit causes the following error:

Traceback (most recent call last):
  File "/usr/local/bin/chisubmit", line 9, in <module>
    load_entry_point('chisubmit==0.9.2', 'console_scripts', 'chisubmit')()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python3.4/dist-packages/chisubmit/cli/__init__.py", line 110
    except BadRequestError, bre:

which looks like the Python 2 handling for exceptions. Taking a look at the entry on PyPi, it looks like the egg is labeled to target 2.7 but the source allows any version. Using pip2 in place of pip fixes the problem.