ryanfox / sphinx-markdown-tables

A markdown table plugin for Sphinx
GNU General Public License v3.0
59 stars 15 forks source link

Cannot install current version (0.0.8) with pip install sphinx-markdown-tables #13

Closed johncrossland closed 4 years ago

johncrossland commented 6 years ago

Should I install an earlier version from: https://pypi.org/project/sphinx-markdown-tables/#history ?

See the attached screenshot of the error I get running pip install sphinx-markdown-tables for 0.0.8

cannot_pip_install_sphinx-markdown-tables

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-VVCrfn/sphinx-markdown-tables/

sphinx-markdown-tables worked for HTML output (end-June) but I cannot install it now (end-Aug).

johncrossland commented 6 years ago

I successfully installed an earlier version (0.0.3) with a pip install sphinx-markdown-tables==0.0.3

used_pip_install_sphinx-markdown-tables 0 0 3_successfully

I'm running Python 3.5.2 and sphinx-markdown-tables 0.0.3 works with it fine. I'll update my build script to run pip install sphinx-markdown-tables==0.0.3 to keep my build system portable between new VMs.

ryanfox commented 6 years ago

Couple things:

You're likely installing the package into python 2 - root's default pip is almost certainly python 2. You need to pip3 install ... to install in python 3. There was an issue with circular imports in python 2 - my guess is that is what you're seeing.

That said, it's probably a bad idea to pip install as root. A virtual environment works well for this kind of thing, and pipenv is designed for it.

Finally, the issue should be fixed in v0.0.9 regardless.