Closed hugobuddel closed 4 years ago
Perhaps fixing this properly requires adding sphinx to the requirements in setup.py. E.g.
install_requires=[
'sphinx'
],
setup.py has 'sphinx' in install_requires. can not figure out why this is ignored by pip. will look a bit later
if you have any ideas, please share too.
I tried this in a fresh conda env with both Python 3.8.0 and Python 3.7.3 from conda-forge (OSX), and 3.8.0 failed with the above behavior while 3.7.3 works ok. So it's probably not related to this package.
I'm testing in a clean ubuntu 18.04 and can confirm sphinx is not installed by pip3, despite it's listed in install_requires.
Tested it with 3.7.3 and 3.8.something from conda on Ubuntu 16.04.6 and both failed for me.
Maybe from sphinxcontrib import asciinema as pkg
does not work? (As in, it should not work if the file is executed at requirement-gathering time because that will import not-yet-installed dependencies. But I'm not sure what pip actually does; maybe the file is only executed when the package is made, and everything should be fine then.)
fixed, installs fine now (0.1.7)
Installation through pip fails if sphinx is not available in the pip cache. E.g., explicitly disabling the cache:
The error also occurs without
--no-cache-dir
if sphinx has not been installed earlier through pip, e.g. on a freshly installed machine, which is harder to reproduce.The same error occurs when installing sphinx at the same time:
This can be resolved by first installing sphinx:
It would be better if the both sphinx and the asciinema extension can be installed with a single pip command. If that's not possible, then the documentation should be updated to mention that sphinx must be installed first before installing this plugin.