Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commits on Apr 19, 2024

  1. feat!: upgrade requirements for python3.12 compatibility

    Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    346d7dc View commit details
    Browse the repository at this point in the history
  2. fix!: router error due to already existed basename

    Exception in thread django-main-thread:
    2024-04-15 14:56:18 Traceback (most recent call last):
    2024-04-15 14:56:18   File "/opt/pyenv/versions/3.12.2/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
    2024-04-15 14:56:18     self.run()
    2024-04-15 14:56:18   File "/opt/pyenv/versions/3.12.2/lib/python3.12/threading.py", line 1010, in run
    2024-04-15 14:56:18     self._target(*self._args, **self._kwargs)
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/utils/autoreload.py", line 64, in wrapper
    2024-04-15 14:56:18     fn(*args, **kwargs)
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/core/management/commands/runserver.py", line 118, in inner_run
    2024-04-15 14:56:18     self.check(display_num_errors=True)
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/core/management/base.py", line 419, in check
    2024-04-15 14:56:18     all_issues = checks.run_checks(
    2024-04-15 14:56:18                  ^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/core/checks/registry.py", line 76, in run_checks
    2024-04-15 14:56:18     new_errors = check(app_configs=app_configs, databases=databases)
    2024-04-15 14:56:18                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/core/checks/urls.py", line 13, in check_url_config
    2024-04-15 14:56:18     return check_resolver(resolver)
    2024-04-15 14:56:18            ^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/core/checks/urls.py", line 23, in check_resolver
    2024-04-15 14:56:18     return check_method()
    2024-04-15 14:56:18            ^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 416, in check
    2024-04-15 14:56:18     for pattern in self.url_patterns:
    2024-04-15 14:56:18                    ^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/utils/functional.py", line 48, in __get__
    2024-04-15 14:56:18     res = instance.__dict__[self.name] = self.func(instance)
    2024-04-15 14:56:18                                          ^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 602, in url_patterns
    2024-04-15 14:56:18     patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
    2024-04-15 14:56:18                        ^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/utils/functional.py", line 48, in __get__
    2024-04-15 14:56:18     res = instance.__dict__[self.name] = self.func(instance)
    2024-04-15 14:56:18                                          ^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/urls/resolvers.py", line 595, in urlconf_module
    2024-04-15 14:56:18     return import_module(self.urlconf_name)
    2024-04-15 14:56:18            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/opt/pyenv/versions/3.12.2/lib/python3.12/importlib/__init__.py", line 90, in import_module
    2024-04-15 14:56:18     return _bootstrap._gcd_import(name[level:], package, level)
    2024-04-15 14:56:18            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    2024-04-15 14:56:18   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    2024-04-15 14:56:18   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    2024-04-15 14:56:18   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
    2024-04-15 14:56:18   File "<frozen importlib._bootstrap_external>", line 995, in exec_module
    2024-04-15 14:56:18   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    2024-04-15 14:56:18   File "/openedx/ecommerce/ecommerce/urls.py", line 23, in <module>
    2024-04-15 14:56:18     from ecommerce.extensions.urls import urlpatterns as extensions_patterns
    2024-04-15 14:56:18   File "/openedx/ecommerce/ecommerce/extensions/urls.py", line 11, in <module>
    2024-04-15 14:56:18     url(r'^api/', include(('ecommerce.extensions.api.urls', 'api'))),
    2024-04-15 14:56:18                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/urls/conf.py", line 34, in include
    2024-04-15 14:56:18     urlconf_module = import_module(urlconf_module)
    2024-04-15 14:56:18                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/opt/pyenv/versions/3.12.2/lib/python3.12/importlib/__init__.py", line 90, in import_module
    2024-04-15 14:56:18     return _bootstrap._gcd_import(name[level:], package, level)
    2024-04-15 14:56:18            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/ecommerce/ecommerce/extensions/api/urls.py", line 6, in <module>
    2024-04-15 14:56:18     url(r'^v2/', include(('ecommerce.extensions.api.v2.urls', 'v2'))),
    2024-04-15 14:56:18                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/django/urls/conf.py", line 34, in include
    2024-04-15 14:56:18     urlconf_module = import_module(urlconf_module)
    2024-04-15 14:56:18                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/opt/pyenv/versions/3.12.2/lib/python3.12/importlib/__init__.py", line 90, in import_module
    2024-04-15 14:56:18     return _bootstrap._gcd_import(name[level:], package, level)
    2024-04-15 14:56:18            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/ecommerce/ecommerce/extensions/api/v2/urls.py", line 175, in <module>
    2024-04-15 14:56:18     router.register(r'partners', partner_views.PartnerViewSet, basename='partner') \
    2024-04-15 14:56:18     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/rest_framework_extensions/routers.py", line 57, in register
    2024-04-15 14:56:18     self._register(*args, **kwargs)
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/rest_framework_extensions/routers.py", line 54, in _register
    2024-04-15 14:56:18     return super().register(*args, **kwargs)
    2024-04-15 14:56:18            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    2024-04-15 14:56:18   File "/openedx/venv/lib/python3.12/site-packages/rest_framework/routers.py", line 59, in register
    2024-04-15 14:56:18     raise ImproperlyConfigured(msg)
    2024-04-15 14:56:18 django.core.exceptions.ImproperlyConfigured: Router with basename "partner" is already registered. Please provide a unique basename for viewset "<class 'ecommerce.extensions.api.v2.views.partners.PartnerViewSet'>"
    Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    118bad7 View commit details
    Browse the repository at this point in the history
  3. refactor!: remove unnecessary contraint requirement and add a comment…

    … for xmlsec
    Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    d37f44e View commit details
    Browse the repository at this point in the history
  4. fix!: zope-interface conflicts with python>3.9

    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
    Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    80c8aef View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. fix!: transifex-client compatibilty with python 3.12

    Muhammad Faraz Maqsood authored and Muhammad Faraz Maqsood committed May 2, 2024
    Configuration menu
    Copy the full SHA
    12dd9ac View commit details
    Browse the repository at this point in the history