Closed icodebot closed 5 years ago
While not a full solution, if you don't need a local copy of the documentation built, you can comment out these 2 lines under the "setup_requires" block in setup.py, which should get you past this error:
"Sphinx>=1.8.5",
"recommonmark>=0.5.0",
My guess is that your install is pulling in too new a version of Sphinx, which no longer works with python 2. You can try adjusting the range allowed on Sphinx to pull in an older, still-compatible version if needed. I will say that I've never built a python 2 version on Mac. There's a personal (i.e. currently unsupported/unofficial) python 3 branch here that you might have better luck with, which has been built successfully on OSX before.
your install is pulling in too new a version of Sphinx, which no longer works with python 2.
Indeed, that was my mileage when installing into RHEL 7.6. I did that prescribed bit to allow a setup to work. I didn't look deeply enough about finding a specific Sphinx that would work under 2.7 and usdmanager.
This issue should be resolved with 0004ca2299735e7bc849369cf696994bf7d40d90 That commit moves Sphinx and recommonmark out of setup.py's setup_requires section and into docs/requirements.txt (which readthedocs uses for building documentation with the readthedocs.yaml file).
It will no longer attempt to install Sphinx during a python setup.py install
command, which was the cause of the above issue.
python setup.py install fails for me with:
ERROR: Sphinx requires at least Python 3.5 to run. Traceback (most recent call last): File "setup.py", line 75, in <module> dependency_links=[], File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 111, in setup _setup_distribution = dist = klass(attrs) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 268, in __init__ self.fetch_build_eggs(attrs['setup_requires']) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 313, in fetch_build_eggs replace_conflicting=True, File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 843, in resolve dist = best[req.key] = env.best_match(req, ws, installer) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1088, in best_match return self.obtain(req, installer) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1100, in obtain return installer(requirement) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/dist.py", line 380, in fetch_build_egg return cmd.easy_install(req) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 638, in easy_install return self.install_item(spec, dist.location, tmpdir, deps) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 668, in install_item dists = self.install_eggs(spec, download, tmpdir) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 851, in install_eggs return self.build_and_install(setup_script, setup_base) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 1079, in build_and_install self.run_setup(setup_script, setup_base, args) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/setuptools/command/easy_install.py", line 1067, in run_setup raise DistutilsError("Setup script exited with %s" % (v.args[0],)) distutils.errors.DistutilsError: Setup script exited with 1