I'm trying to install django-tables2==1.21.1 on my Heroku dyno. Below is the error logs when I try to install it:
~ $ pip install django-tables2
Collecting django-tables2
Using cached django-tables2-1.21.1.tar.gz
Complete output from command python setup.py egg_info:
/app/.heroku/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'extras_require'
warnings.warn(msg)
/app/.heroku/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'include_package_data'
warnings.warn(msg)
/app/.heroku/python/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'egg_info'
----------------------------------------
The installation works fine on my local virtual env, I am running python 2.7.14 and django 1.11.11 on both. All other packages install without any issues.
Any ideas on what the issue could be? Thanks
Update:
Updating to python==3.6.4 and Django==2.0.3 fixed the issue.