Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latest sphinx version breaks pip install #515

Closed
kaiehrhardt opened this issue May 9, 2023 · 7 comments
Closed

latest sphinx version breaks pip install #515

kaiehrhardt opened this issue May 9, 2023 · 7 comments

Comments

@kaiehrhardt
Copy link

error

ModuleNotFoundError: No module named 'sphinx.setup_command'

test env docker

FROM python:3
RUN pip install --upgrade pip && \
    pip install sphinx && \
    pip install -v BobBuildTool

root cause

sphinx-doc/sphinx#11363

tmp fix

FROM python:3
RUN pip install --upgrade pip && \
    pip install sphinx==6.2.1 && \
    pip install packaging==20.9 && \
    pip install -v BobBuildTool
@rhubert
Copy link
Contributor

rhubert commented May 9, 2023

Same as #513 ?

@kaiehrhardt
Copy link
Author

I was not sure if this is really the same problem. It's a similar error pattern at different times. Just wanted to share my findings on this. In addition it is present in every python version.

@jkloetzke
Copy link
Member

Thanks for the report. Unfortunately Bobs installation process heavily relies on setup.py. This will require some larger refactoring I guess....

@kolewu
Copy link
Contributor

kolewu commented May 26, 2023

Better: build the PyPi package for python 3.11 then there is no need to build it locally and sphinx is no longer needed!

jkloetzke added a commit to jkloetzke/bob that referenced this issue Jun 4, 2023
The Sphinx project removed the setuptools integration with version 7.
Call sphinx-build directly. We don't declare it as dependency because it
is not required during runtime.

Fixes BobBuildTool#513 and BobBuildTool#515.
@jkloetzke
Copy link
Member

Should be fixed by #516

@kolewu
Copy link
Contributor

kolewu commented Jun 17, 2023

Could you please push a new 0.22.0 release with python 3.11 wheel to pypi? Then at least the build problem is fixed with a workaround, because no local build is necessary and the sphinx problem thus not triggered.

@jkloetzke
Copy link
Member

Sure, can do that. I'd wait for #517 to be merged, though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants