Skip to content

Unable to Install aspose-words in Docker with x86_64 Platform on Mac (Python 3.12) #80

@KianChavoshiNejad

Description

@KianChavoshiNejad

Hello,

I’m encountering an issue installing aspose-words (version 25.6.0) inside a Docker container on my Mac (M-series chip). I’ve configured the container to run as linux/amd64 to match our production environment. Here’s the relevant part of my docker-compose.yml:

services:
app name:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile

The container uses Python 3.12, and I install dependencies using Poetry. However, during docker compose build --no-cache, I consistently receive this error:

Unable to find installation candidates for aspose-words (25.6.0)

at /usr/local/lib/python3.12/site-packages/poetry/installation/chooser.py:74 in choose_for
raise RuntimeError(f"Unable to find installation candidates for {package}")

I’ve verified that the architecture inside the container is x86_64. Still, installation fails, even though documentation and PyPI indicate support for both Mac ARM and Linux x86_64.

could you please let me know how I can fix this issue?

Thank you for your help!
best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions