Skip to content

Bump pyyaml to 6.0.1#816

Merged
mxsasha merged 2 commits into
irrdnet:mainfrom
MattKobayashi:patch-1
Aug 1, 2023
Merged

Bump pyyaml to 6.0.1#816
mxsasha merged 2 commits into
irrdnet:mainfrom
MattKobayashi:patch-1

Conversation

@MattKobayashi
Copy link
Copy Markdown
Contributor

Temporary workaround for wheel build issue on Cython versions >= 3 (yaml/pyyaml#702)

MattKobayashi and others added 2 commits July 29, 2023 14:19
Temporary workaround for wheel build issue on Cython versions >= 3 (yaml/pyyaml#702)
@mxsasha mxsasha enabled auto-merge (squash) August 1, 2023 13:59
@mxsasha mxsasha merged commit 383dfbd into irrdnet:main Aug 1, 2023
@Justin-APNIC
Copy link
Copy Markdown
Contributor

Hi, I had this issue when installing the irrd in docker (pypy:3.10-7.3.12-slim-bullseye). It looks like the latest version still depends on 6.0. Any idea when the release can be updated?
irrd 4.3.0.post1 depends on PyYAML==6.0

@MattKobayashi
Copy link
Copy Markdown
Contributor Author

Hi @Justin-APNIC, you can ask pip to install the current release version with this PR included, like this: pip install git+https://github.com/irrdnet/irrd.git@refs/pull/816/head.

More info: https://pip.pypa.io/en/stable/topics/vcs-support/

@Justin-APNIC
Copy link
Copy Markdown
Contributor

@MattKobayashi Thanks for the reply. I did use the main branch, but got missing module error.
I tried run pip3 install setuptools before installing the irrd, but not working.

Step 6/9 : RUN /home/irrd/irrd-venv/bin/pip3 install --no-cache-dir "irrd @ git+https://github.com/irrdnet/irrd.git@main"
 ---> Running in ab24dd82ffff
Collecting irrd@ git+https://github.com/irrdnet/irrd.git@main
  Cloning https://github.com/irrdnet/irrd.git (to revision main) to /tmp/pip-install-_wc22lm1/irrd_1ab442b637fe45609e71c3c987e2e70e
  Running command git clone --filter=blob:none --quiet https://github.com/irrdnet/irrd.git /tmp/pip-install-_wc22lm1/irrd_1ab442b637fe45609e71c3c987e2e70e
  Resolved https://github.com/irrdnet/irrd.git to commit 6ffc56bcdd67e89a317d2a37c356483b32347148
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
ERROR: Exception:
Traceback (most recent call last):
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/cli/req_command.py", line 248, in wrapper
    return func(self, options, args)
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/commands/install.py", line 377, in run
    requirement_set = resolver.resolve(
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 73, in resolve
    collected = self.factory.collect_root_requirements(root_reqs)
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 491, in collect_root_requirements
    req = self._make_requirement_from_install_req(
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 453, in _make_requirement_from_install_req
    cand = self._make_candidate_from_link(
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 293, in __init__
    super().__init__(
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 156, in __init__
    self.dist = self._prepare()
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 225, in _prepare
    dist = self._prepare_distribution()
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/operations/prepare.py", line 538, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/operations/prepare.py", line 653, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/distributions/sdist.py", line 48, in prepare_distribution_metadata
    self._install_build_reqs(finder)
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/distributions/sdist.py", line 118, in _install_build_reqs
    build_reqs = self._get_build_requires_wheel()
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/distributions/sdist.py", line 95, in _get_build_requires_wheel
    return backend.get_requires_for_build_wheel()
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_internal/utils/misc.py", line 697, in get_requires_for_build_wheel
    return super().get_requires_for_build_wheel(config_settings=cs)
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 166, in get_requires_for_build_wheel
    return self._call_hook('get_requires_for_build_wheel', {
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/home/irrd/irrd-venv/lib/pypy3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/opt/pypy/lib/pypy3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'

My current Dockerfile:

FROM pypy:3.10-7.3.12-slim-bullseye AS pypy

RUN apt update &&   \
  apt install -y git

RUN pypy -m venv /home/irrd/irrd-venv
RUN . /home/irrd/irrd-venv/bin/activate
RUN /home/irrd/irrd-venv/bin/pip3 install --no-cache-dir -U pip
RUN /home/irrd/irrd-venv/bin/pip3 install --no-cache-dir "irrd @ git+https://github.com/irrdnet/irrd.git@main"

mergify Bot pushed a commit that referenced this pull request Aug 16, 2023
* Bump pyyaml to 6.0.1

Temporary workaround for wheel build issue on Cython versions >= 3 (yaml/pyyaml#702)

* Pin black to prevent breakage on updates

(cherry picked from commit 383dfbd)

# Conflicts:
#	poetry.lock
#	pyproject.toml
mergify Bot pushed a commit that referenced this pull request Aug 16, 2023
* Bump pyyaml to 6.0.1

Temporary workaround for wheel build issue on Cython versions >= 3 (yaml/pyyaml#702)

* Pin black to prevent breakage on updates

(cherry picked from commit 383dfbd)

# Conflicts:
#	poetry.lock
#	pyproject.toml
mxsasha added a commit that referenced this pull request Aug 16, 2023
mxsasha added a commit that referenced this pull request Aug 16, 2023
mxsasha pushed a commit that referenced this pull request Aug 16, 2023
mxsasha pushed a commit that referenced this pull request Aug 16, 2023
* Bump pyyaml to 6.0.1

Temporary workaround for wheel build issue on Cython versions >= 3 (yaml/pyyaml#702)

* Pin black to prevent breakage on updates

(cherry picked from commit 383dfbd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants