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

fix readthedocs build #1945

Closed
gsemet opened this issue Oct 22, 2021 · 2 comments
Closed

fix readthedocs build #1945

gsemet opened this issue Oct 22, 2021 · 2 comments

Comments

@gsemet
Copy link
Member

gsemet commented Oct 22, 2021

{code}
git clone --no-single-branch --depth 50 https://github.com/Guake/guake.git .
git checkout --force origin/master
git clean -d -f -f
python3.7 -mvirtualenv /home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest
/home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest/bin/python -m pip install --upgrade --no-cache-dir pip setuptools
/home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest/bin/python -m pip install --upgrade --no-cache-dir mock==1.0.1 pillow==5.4.1 alabaster>=0.7,<0.8,!=0.7.5 commonmark==0.8.1 recommonmark==0.5.0 sphinx<2 sphinx-rtd-theme<0.5 readthedocs-sphinx-ext<2.2
/home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest/bin/python -m pip install --exists-action=w --no-cache-dir -r requirements-dev.txt
Obtaining file:///home/docs/checkouts/readthedocs.org/user_builds/guake/checkouts/latest (from -r requirements-dev.txt (line 13))
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build editable: started
Getting requirements to build editable: finished with status 'done'
Preparing editable metadata (pyproject.toml): started
Preparing editable metadata (pyproject.toml): finished with status 'done'
Build backend does not support editables, falling back to setup.py egg_info.
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/docs/checkouts/readthedocs.org/user_builds/guake/checkouts/latest/setup.py'"'"'; file='"'"'/home/docs/checkouts/readthedocs.org/user_builds/guake/checkouts/latest/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-c6e1ltqz
cwd: /home/docs/checkouts/readthedocs.org/user_builds/guake/checkouts/latest/
Complete output (31 lines):
/home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest/bin/python: No module named pip
Traceback (most recent call last):
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/setuptools/installer.py", line 75, in fetch_build_egg
subprocess.check_call(cmd)
File "/home/docs/.pyenv/versions/3.7.9/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp970cgy9v', '--quiet', 'pbr']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 1, in
File "/home/docs/checkouts/readthedocs.org/user_builds/guake/checkouts/latest/setup.py", line 17, in
setuptools.setup(pbr=True)
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/setuptools/init.py", line 152, in setup
_install_setup_requires(attrs)
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/setuptools/init.py", line 147, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 809, in fetch_build_eggs
replace_conflicting=True,
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/pkg_resources/init.py", line 768, in resolve
replace_conflicting=replace_conflicting
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/pkg_resources/init.py", line 1051, in best_match
return self.obtain(req, installer)
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/pkg_resources/init.py", line 1063, in obtain
return installer(requirement)
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/setuptools/dist.py", line 877, in fetch_build_egg
return fetch_build_egg(self, req)
File "/tmp/pip-build-env-abbrstqn/overlay/lib/python3.7/site-packages/setuptools/installer.py", line 77, in fetch_build_egg
raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp970cgy9v', '--quiet', 'pbr']' returned non-zero exit status 1.

WARNING: Discarding file:///home/docs/checkouts/readthedocs.org/user_builds/guake/checkouts/latest. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
{code}

@Davidy22
Copy link
Collaborator

Davidy22 commented Oct 23, 2021

So, pretty sure this is the problem:
/home/docs/checkouts/readthedocs.org/user_builds/guake/envs/latest/bin/python: No module named pip

I am somewhat curious how this suddenly stopped working a few years back, how did this script suddenly stop being able to install/detect pip on its own when it worked before? Well, I can't find these commands in this repo so I assume this is a script on the readthedocs account that you have or something and I can't fix this myself because I don't have access to it, but it looks like you just need to install pip before running the pip installs in this script.

@gsemet
Copy link
Member Author

gsemet commented Oct 23, 2021

Probably the base docker image evolved. I guess a apt get install python3-pip can be enough.
That I can look at if I find time this week end…

@Davidy22 Davidy22 closed this as completed Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants