You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We encountered compatibility issues when using the coredump-uploader with Python 3.12 in archlinux docker image due to the dependency on watchdog version <1.0.0(0.10.4 to be specific). The version of watchdog specified (^0.x.x) uses pathtools, which is incompatible with Python 3.12 because imp(a dependency of watchdog 0.10.4) is deprecated and removed in Python 3.12. It is also not compatible with PEP 517 build system.
To resolve this, we updated the pyproject.toml file to use watchdog version 1.0.0, which replaces pathtools with pathlib. This change resolves the compatibility issue.
Python version in tool.poetry.dependencies also needs to be adjusted( I use python = ">=3.6,<4.0").
Steps to Reproduce:
Set up a Python 3.12 environment.
Clone the coredump-uploader repository.
Get poetry(I use ENV POETRY_HOME=/app/poetryInstallation && RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3 && ENV PATH="$PATH:$POETRY_HOME/bin"
Run poetry install.
Observed Behavior:
poetry install fails with errors related to pathtools compatibility. (Note: This error originates from the build backend, and is likely not a problem with poetry but with pathtools (0.1.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "pathtools (==0.1.2)"')
I tried pip install --no-use-pep517 "pathtools==0.1.2" then got: ModuleNotFoundError: No module named 'imp'
My solution:
Update the pyproject.toml to use a newer watchdog version(I use 1.0.0).
Adjust the Python version accordingly( I use python = ">=3.6,<4.0")
Thank you for your attention to this issue. Please let me know if you need any further information.
The text was updated successfully, but these errors were encountered:
We encountered compatibility issues when using the coredump-uploader with Python 3.12 in archlinux docker image due to the dependency on
watchdog
version <1.0.0(0.10.4 to be specific). The version ofwatchdog
specified (^0.x.x) usespathtools
, which is incompatible with Python 3.12 becauseimp
(a dependency of watchdog 0.10.4) is deprecated and removed in Python 3.12. It is also not compatible with PEP 517 build system.To resolve this, we updated the
pyproject.toml
file to use watchdog version 1.0.0, which replaces pathtools with pathlib. This change resolves the compatibility issue.Python version in
tool.poetry.dependencies
also needs to be adjusted( I usepython = ">=3.6,<4.0"
).Steps to Reproduce:
ENV POETRY_HOME=/app/poetryInstallation
&&RUN curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
&&ENV PATH="$PATH:$POETRY_HOME/bin"
poetry install
.Observed Behavior:
Note: This error originates from the build backend, and is likely not a problem with poetry but with pathtools (0.1.2) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "pathtools (==0.1.2)"'
)pip install --no-use-pep517 "pathtools==0.1.2"
then got:ModuleNotFoundError: No module named 'imp'
My solution:
python = ">=3.6,<4.0"
)Thank you for your attention to this issue. Please let me know if you need any further information.
The text was updated successfully, but these errors were encountered: