Skip to content

[Bug] Python Requirements Fail To Install: Python 3.12 #10

@samueljmello

Description

@samueljmello

What are you really trying to do?

Walk through the partner training tutorial called "Interacting with Workflows with Python - Partners" using this repository.

Describe the bug

Setting up a local environment fails when attempting to install python dependencies with python -m pip install -r requirements.txt on python 3.12 for MacOS.

Specifically you get ERROR: Failed building wheel for multidict and ERROR: Failed building wheel for frozenlist. The versions in the requirements.txt file seem to be outdated. Updating them fixes it.

Borrowing the versions for multidict and frozenlist from the Versioning Python Code repo seems to fix the issue.

My requirements.txt ended up looking like:

aiosignal==1.3.1
async-timeout==4.0.2
attrs==23.2.0
blinker==1.8.2
charset-normalizer==3.1.0
click==8.1.7
docopt==0.6.2
frozenlist==1.4.1
idna==3.7
iniconfig==2.0.0
itsdangerous==2.2.0
Jinja2==3.1.4
MarkupSafe==2.1.5
multidict==6.0.5
packaging==24.0
pluggy==1.5.0
pytest==8.2.2
temporalio==1.6.0
types-protobuf==5.26.0.20240422
typing_extensions==4.12.1
Werkzeug==3.0.3
yarl==1.9.4

Minimal Reproduction

On an Apple Silicon Mac:

  • Install Python 3.12
  • Clone this repo
  • CD into this repo
  • Run python -m venv env && source env/bin/activate
  • Run python -m pip install -r requirements.txt

If you do not have an alias set up for python to python3, you may need to do so.

Environment/Versions

  • OS and processor: M3 Macbook Pro, November 2023
  • Temporal Version: Python SDK 1.6.0
  • Are you using Docker or Kubernetes or building Temporal from source? N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions