Olivia5k / doge

wow very terminal doge

Home Page:https://pypi.python.org/pypi/doge/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apparent missing dep on argparse

RSTJNII opened this issue · comments

No investigation has been done, this was immediately fixed with a 'pip install argparse'. This failure happened on a new Ubuntu 10.04 install. (10.04, I know...)

root@cp2014Practice:~# pip install doge
Downloading/unpacking doge
  Downloading doge-3.4.0.tar.gz
  Running setup.py egg_info for package doge
Installing collected packages: doge
  Running setup.py install for doge
    changing mode of build/scripts-2.6/doge from 644 to 755
    changing mode of /usr/local/bin/doge to 755
Successfully installed doge
root@cp2014Practice:~# doge
Traceback (most recent call last):
  File "/usr/local/bin/doge", line 14, in <module>
    from doge import core
  File "/usr/local/lib/python2.6/dist-packages/doge/core.py", line 11, in <module>
    import argparse
ImportError: No module named argparse

I'll take a look at this later today. I need to find if I have any old 10.04 or equivalent machines anywhere. :>

Yea, it looks like this is due to argparse being added in Python 2.7. I did a test install on Ubuntu 12.04, Ubuntu 13.10, and CentOS 6.5 and all were OK. 10.04 is running Python 2.6, which is why I had to install argparse. (I also tried CentOS 5.10, but that was running Python 2.4 so it failed quite badly...)

I think maybe a note in the readme that Python >= 2.7 is recommended and Python 2.6 requires argparse to be installed (or a similar note) will be fine. I don't see the need to change code to support Python 2.6.