Skip to content

PEX documentation and Makefile is unclear on supported Python versions #12806

@Cagrosso

Description

@Cagrosso

I am unable to build a PEX file as described in the documentation.

I am attempting to build the PEX file in a docker container for my version of Python (3.6). According to the Makefile, that version of Python is the default $PYVER. I come across multiple errors from the default $SPACY_EXTRAS and final packaging that point to Python 3.6 being incompatible.

My docker-compose.yml

version: '3.3'

services:
  build:
    image: python:3.6-bullseye
    volumes: 
      - ./spaCy:/spacy
    working_dir: /spacy
    command: tail -f /dev/null

The docker file exists in a directory with the SpaCy repo cloned into a folder spaCy ex:

- docker-compose.yml
- spaCy
| --- ... SpaCy repo root

After launching through a docker compose up -d I have to install the rust compiler following their instructions here.

Once the rust compiler is installed, run make in the working directory. This will result in the $SPACY_EXTRAS failing to build properly. For example, when attempting to build sudachipy, it fails with error: the configured Python interpreter version (3.6) is lower than PyO3's minimum supported version (3.7)

Even dropping the extras that I don't need still results in a failed build at the 'packaging' stage saying that Python3.6 is not supported.

If there is a different version of SpaCy that supports python3.6, or a different method of packaging, I would greatly appreciate being pointed in the correct direction.

Which page or section is this issue related to?

documentation source

Metadata

Metadata

Assignees

No one assigned

    Labels

    scalingScaling, serving and parallelizing spaCy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions