sphinx-contrib / sphinx-contrib/openapi

Cant' install `sphinxcontrib-openapi` with latest version of sphinx and pipenv

Open
#121 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
126
Forks
88
PR merge metrics
No merged PRs in 30d

Description

Trying to install with the latest version of Sphinx via pipenv.
Removing the sphinxcontrib-openapi dependency allows the other libs to install without issue.

Pipfile:

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
sphinx = "*"
sphinxcontrib-seqdiag = "*"
sphinxcontrib-openapi = "*
sphinxcontrib-blockdiag = "*"
funcparserlib= ">=1.0.0a0"

[requires]
python_version = "3.9"

[pipenv]
allow_prereleases = true

Installation Error:

Installing initially failed dependencies...
[InstallError]:   File "/home/shane/.pyenv/versions/3.9.6/lib/python3.9/site-packages/pipenv/cli/command.py", line 233, in install
[InstallError]:       retcode = do_install(
[InstallError]:   File "/home/shane/.pyenv/versions/3.9.6/lib/python3.9/site-packages/pipenv/core.py", line 2052, in do_install
[InstallError]:       do_init(
[InstallError]:   File "/home/shane/.pyenv/versions/3.9.6/lib/python3.9/site-packages/pipenv/core.py", line 1304, in do_init
[InstallError]:       do_install_dependencies(
[InstallError]:   File "/home/shane/.pyenv/versions/3.9.6/lib/python3.9/site-packages/pipenv/core.py", line 899, in do_install_dependencies
[InstallError]:       batch_install(
[InstallError]:   File "/home/shane/.pyenv/versions/3.9.6/lib/python3.9/site-packages/pipenv/core.py", line 796, in batch_install
[InstallError]:       _cleanup_procs(procs, failed_deps_queue, retry=retry)
[InstallError]:   File "/home/shane/.pyenv/versions/3.9.6/lib/python3.9/site-packages/pipenv/core.py", line 703, in _cleanup_procs
[InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: Collecting m2r==0.2.1
[pipenv.exceptions.InstallError]:   Using cached m2r-0.2.1.tar.gz (16 kB)
[pipenv.exceptions.InstallError]:   Preparing metadata (setup.py): started
[pipenv.exceptions.InstallError]:   Preparing metadata (setup.py): finished with status 'error'
[pipenv.exceptions.InstallError]:   ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:    command: /home/shane/.local/share/virtualenvs/kobashi-specifications-_0DhKfNE/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-g1vgu8_u/m2r_f0b1c08b729f43fb86793ad8df0ab045/setup.py'"'"'; __file__='"'"'/tmp/pip-install-g1vgu8_u/m2r_f0b1c08b729f43fb86793ad8df0ab045/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-osly6xvj
[pipenv.exceptions.InstallError]:        cwd: /tmp/pip-install-g1vgu8_u/m2r_f0b1c08b729f43fb86793ad8df0ab045/
[pipenv.exceptions.InstallError]:   Complete output (7 lines):
[pipenv.exceptions.InstallError]:   Traceback (most recent call last):
[pipenv.exceptions.InstallError]:     File "<string>", line 1, in <module>
[pipenv.exceptions.InstallError]:     File "/tmp/pip-install-g1vgu8_u/m2r_f0b1c08b729f43fb86793ad8df0ab045/setup.py", line 14, in <module>
[pipenv.exceptions.InstallError]:       from m2r import parse_from_file
[pipenv.exceptions.InstallError]:     File "/tmp/pip-install-g1vgu8_u/m2r_f0b1c08b729f43fb86793ad8df0ab045/m2r.py", line 59, in <module>
[pipenv.exceptions.InstallError]:       class RestBlockGrammar(mistune.BlockGrammar):
[pipenv.exceptions.InstallError]:   AttributeError: module 'mistune' has no attribute 'BlockGrammar'
[pipenv.exceptions.InstallError]:   ----------------------------------------
[pipenv.exceptions.InstallError]: WARNING: Discarding https://files.pythonhosted.org/packages/39/e7/9fae11a45f5e1a3a21d8a98d02948e597c4afd7848a0dbe1a1ebd235f13e/m2r-0.2.1.tar.gz#sha256=bf90bad66cda1164b17e5ba4a037806d2443f2a4d5ddc9f6a5554a0322aaed99 (from https://pypi.org/simple/m2r/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
[pipenv.exceptions.InstallError]: ERROR: Could not find a version that satisfies the requirement m2r==0.2.1 (from versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.2.0, 0.2.1)
[pipenv.exceptions.InstallError]: ERROR: No matching distribution found for m2r==0.2.1
ERROR: Couldn't install package: m2r

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied Pipfile and reproduce the pipenv installation using Python 3.9. Trace the m2r==0.2.1 failure involving mistune.BlockGrammar and verify that sphinxcontrib-openapi installs successfully with the reported Sphinx setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.