When I try to install the dbf package, I need to manually install enum34.
$ mkvirtualenv testenv
New python executable in testenv/bin/python
Installing setuptools, pip, wheel...done.
(testenv)$ pip install -U pip
You are using pip version 7.1.0, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip
Using cached pip-8.1.2-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 7.1.0
Uninstalling pip-7.1.0:
Successfully uninstalled pip-7.1.0
Successfully installed pip-8.1.2
(testenv)$ pip install dbf
Collecting dbf
Using cached dbf-0.96.8-py2-none-any.whl
Collecting aenum (from dbf)
Using cached aenum-1.4.5-py2-none-any.whl
Installing collected packages: aenum, dbf
Successfully installed aenum-1.4.5 dbf-0.96.8
(testenv)$ python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/oscargarcia/.virtualenvs/testenv/lib/python2.7/site-packages/dbf/__init__.py", line 11, in <module>
from dbf import ver_2 as _dbf
File "/Users/oscargarcia/.virtualenvs/testenv/lib/python2.7/site-packages/dbf/ver_2.py", line 49, in <module>
from enum import Enum, IntEnum
ImportError: No module named enum
>>> ^D
(testenv)$ pip install enum34
Collecting enum34
Downloading enum34-1.1.6-py2-none-any.whl
Installing collected packages: enum34
Successfully installed enum34-1.1.6
(testenv)$ python
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbf
>>>
>>> ^D
(testenv)$