Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Bug]: Docker images failing to build

Open ConnorYoh opened this issue 10 months ago • 0 comments

Installation Method

None

The Problem

The issue was raised with Alpine GitHub project. see below: https://github.com/alpinelinux/docker-alpine/issues/442

Docker images aren't building. The issue is with py-opencv in Alpine v3.21. The issue does not seem present in the edge version of Alpine.

Version of Stirling-PDF

0.41.0

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

No response

Docker Configuration

FROM alpine:3.21.2

RUN apk add  py3-pip
RUN apk add  py3-opencv
RUN pip install --break-system-packages --no-cache-dir --upgrade unoconv

Relevant Log Output

ERROR [4/4] RUN pip install --break-system-packages --no-cache-dir --upgrade unoconv                                                                                                                                2.1s
------
 > [4/4] RUN pip install --break-system-packages --no-cache-dir --upgrade unoconv:
1.605 Collecting unoconv
1.704   Downloading unoconv-0.9.0-py2.py3-none-any.whl.metadata (12 kB)
1.727 Downloading unoconv-0.9.0-py2.py3-none-any.whl (29 kB)
1.765 WARNING: Error parsing dependencies of opencv: Invalid version: 'python-4.10.0'
1.775 Installing collected packages: unoconv
2.024 ERROR: Exception:
2.024 Traceback (most recent call last):
2.024   File "/usr/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
2.024     status = _inner_run()
2.024              ^^^^^^^^^^^^
2.024   File "/usr/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
2.024     return self.run(options, args)
2.024            ^^^^^^^^^^^^^^^^^^^^^^^
2.024   File "/usr/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
2.024     return func(self, options, args)
2.024            ^^^^^^^^^^^^^^^^^^^^^^^^^
2.024   File "/usr/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 483, in run
2.024     installed_versions[distribution.canonical_name] = distribution.version
2.024                                                       ^^^^^^^^^^^^^^^^^^^^
2.024   File "/usr/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py", line 167, in version
2.024     return parse_version(version)
2.024            ^^^^^^^^^^^^^^^^^^^^^^
2.024   File "/usr/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 56, in parse
2.024     return Version(version)
2.024            ^^^^^^^^^^^^^^^^
2.024   File "/usr/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 202, in __init__
2.024     raise InvalidVersion(f"Invalid version: '{version}'")
2.024 pip._vendor.packaging.version.InvalidVersion: Invalid version: 'python-4.10.0'
------
Dockerfile.test:6
--------------------
   4 |     RUN apk add  py3-pip
   5 |     RUN apk add  py3-opencv
   6 | >>> RUN pip install --break-system-packages --no-cache-dir --upgrade unoconv
   7 |
--------------------

Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

  • [x] I have verified that there are no existing issues raised related to my problem.

ConnorYoh avatar Feb 11 '25 17:02 ConnorYoh