Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crossbar-requirements: add Python 3.12 compatible requirements
Browse files Browse the repository at this point in the history
eth-utils<2.3.0 required to circumvent the following error:

  Traceback (most recent call last):
    File "/home/runner/work/labgrid/labgrid/crossbar-venv/bin/crossbar", line 5, in <module>
      from crossbar import run
    File "/home/runner/work/labgrid/labgrid/crossbar-venv/lib/python3.12/site-packages/crossbar/__init__.py", line 19, in <module>
      import eth_abi
    File "/home/runner/work/labgrid/labgrid/crossbar-venv/lib/python3.12/site-packages/eth_abi/__init__.py", line 15, in <module>
      from eth_abi.abi import (  # NOQA
    File "/home/runner/work/labgrid/labgrid/crossbar-venv/lib/python3.12/site-packages/eth_abi/abi.py", line 1, in <module>
      from eth_abi.codec import (
    File "/home/runner/work/labgrid/labgrid/crossbar-venv/lib/python3.12/site-packages/eth_abi/codec.py", line 12, in <module>
      from eth_abi.decoding import (
    File "/home/runner/work/labgrid/labgrid/crossbar-venv/lib/python3.12/site-packages/eth_abi/decoding.py", line 8, in <module>
      from eth_utils import (
    File "/home/runner/work/labgrid/labgrid/crossbar-venv/lib/python3.12/site-packages/eth_utils/__init__.py", line 86, in <module>
      from .network import (
    File "/home/runner/work/labgrid/labgrid/crossbar-venv/lib/python3.12/site-packages/eth_utils/network.py", line 7, in <module>
      from eth_typing import ChainId
  ImportError: cannot import name 'ChainId' from 'eth_typing' (/home/runner/work/labgrid/labgrid/crossbar-venv/lib/python3.12/site-packages/eth_typing/__init__.py)

Signed-off-by: Bastian Krause <bst@pengutronix.de>
Bastian-Krause committed Dec 11, 2023
1 parent c4a0867 commit b74aff7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crossbar-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
crossbar==21.3.1
autobahn<=22.4.1
crossbar==21.3.1; python_version<"3.9"
# includes https://github.com/crossbario/crossbar/pull/2091 and https://github.com/crossbario/crossbar/pull/2093
crossbar @ git+https://github.com/Bastian-Krause/crossbar@bst/python3.12; python_version>="3.9"
autobahn==22.4.1; python_version<"3.9"
eth-utils<2.3.0

0 comments on commit b74aff7

Please sign in to comment.