Skip to content

Commit

Permalink
fix!: zope-interface conflicts with python>3.9
Browse files Browse the repository at this point in the history
60.90 Using cached zope.interface-6.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (255 kB)
61.51 Building wheels for collected packages: backports-zoneinfo
61.51   Building wheel for backports-zoneinfo (pyproject.toml): started
61.93   Building wheel for backports-zoneinfo (pyproject.toml): finished with status 'error'
61.94   error: subprocess-exited-with-error
61.94
61.94   × Building wheel for backports-zoneinfo (pyproject.toml) did not run successfully.
61.94   │ exit code: 1
61.94   ╰─> [41 lines of output]
61.94       running bdist_wheel
61.94       running build
61.94       running build_py
61.94       creating build
61.94       creating build/lib.linux-x86_64-cpython-312
61.94       creating build/lib.linux-x86_64-cpython-312/backports
61.94       copying src/backports/__init__.py -> build/lib.linux-x86_64-cpython-312/backports
61.94       creating build/lib.linux-x86_64-cpython-312/backports/zoneinfo
61.94       copying src/backports/zoneinfo/_common.py -> build/lib.linux-x86_64-cpython-312/backports/zoneinfo
61.94       copying src/backports/zoneinfo/_version.py -> build/lib.linux-x86_64-cpython-312/backports/zoneinfo
61.94       copying src/backports/zoneinfo/_zoneinfo.py -> build/lib.linux-x86_64-cpython-312/backports/zoneinfo
61.94       copying src/backports/zoneinfo/__init__.py -> build/lib.linux-x86_64-cpython-312/backports/zoneinfo
61.94       copying src/backports/zoneinfo/_tzpath.py -> build/lib.linux-x86_64-cpython-312/backports/zoneinfo
61.94       running egg_info
61.94       writing src/backports.zoneinfo.egg-info/PKG-INFO
61.94       writing dependency_links to src/backports.zoneinfo.egg-info/dependency_links.txt
61.94       writing requirements to src/backports.zoneinfo.egg-info/requires.txt
61.94       writing top-level names to src/backports.zoneinfo.egg-info/top_level.txt
61.94       reading manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
61.94       reading manifest template 'MANIFEST.in'
61.94       warning: no files found matching '*.png' under directory 'docs'
61.94       warning: no files found matching '*.svg' under directory 'docs'
61.94       no previously-included directories found matching 'docs/_build'
61.94       no previously-included directories found matching 'docs/_output'
61.94       adding license file 'LICENSE'
61.94       adding license file 'licenses/LICENSE_APACHE'
61.94       writing manifest file 'src/backports.zoneinfo.egg-info/SOURCES.txt'
61.94       copying src/backports/zoneinfo/__init__.pyi -> build/lib.linux-x86_64-cpython-312/backports/zoneinfo
61.94       copying src/backports/zoneinfo/py.typed -> build/lib.linux-x86_64-cpython-312/backports/zoneinfo
61.94       running build_ext
61.94       building 'backports.zoneinfo._czoneinfo' extension
61.94       creating build/temp.linux-x86_64-cpython-312
61.94       creating build/temp.linux-x86_64-cpython-312/lib
61.94       gcc -pthread -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/openedx/venv/include -I/opt/pyenv/versions/3.12.2/include/python3.12 -c lib/zoneinfo_module.c -o build/temp.linux-x86_64-cpython-312/lib/zoneinfo_module.o -std=c99
61.94       lib/zoneinfo_module.c: In function ‘zoneinfo_fromutc’:
61.94       lib/zoneinfo_module.c:600:19: error: ‘_PyLong_One’ undeclared (first use in this function); did you mean ‘_PyLong_New’?
61.94         600 |             one = _PyLong_One;
61.94             |                   ^~~~~~~~~~~
61.94             |                   _PyLong_New
61.94       lib/zoneinfo_module.c:600:19: note: each undeclared identifier is reported only once for each function it appears in
61.94       error: command '/usr/bin/gcc' failed with exit code 1
61.94       [end of output]
61.94
61.94   note: This error originates from a subprocess, and is likely not a problem with pip.
61.94   ERROR: Failed building wheel for backports-zoneinfo
61.94 Failed to build backports-zoneinfo
61.95 ERROR: Could not build wheels for backports-zoneinfo, which is required to install pyproject.toml-based projects
------
Dockerfile:83
--------------------
  81 |
  82 |     # python requirements
  83 | >>> RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} pip install -r requirements.txt
  84 |     # https://pypi.org/project/uWSGI/
  85 |     RUN --mount=type=cache,target=/openedx/.cache/pip,sharing=shared,uid=${APP_USER_ID} pip install uwsgi==2.0.24
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -r requirements.txt" did not complete successfully: exit code: 1
  • Loading branch information
Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Apr 19, 2024
1 parent d37f44e commit 80c8aef
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 2 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ babel==2.14.0
# via django-oscar
backoff==1.10.0
# via analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# celery
# djangorestframework
# kombu
Expand Down
4 changes: 4 additions & 0 deletions requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ pylint==2.12.2
mccabe<0.7
# pylint==2.12.2 requires wrapt<1.14
wrapt<1.14

# backports-zoneinfo comes by-default in newer versions of python
# it gives error while building wheel with python>=3.9
backports.zoneinfo ; python_version < "3.9"
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ backoff==1.10.0
# via
# -r requirements/test.txt
# analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -r requirements/test.txt
# celery
Expand Down
3 changes: 2 additions & 1 deletion requirements/production.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ babel==2.14.0
# via django-oscar
backoff==1.10.0
# via analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# celery
# djangorestframework
# kombu
Expand Down
3 changes: 2 additions & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ backoff==1.10.0
# via
# -r requirements/base.txt
# analytics-python
backports-zoneinfo[tzdata]==0.2.1
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# -r requirements/base.txt
# celery
# djangorestframework
Expand Down

0 comments on commit 80c8aef

Please sign in to comment.