Skip to content

Amaranth-boards version not specified causing py requirements installation to fail. #78

Open

Description

@timoksn

Hello - This is a really nice project, the debug module and able to debug is really nice.

I cloned this repo today and started to follow the quickstart but i ran into an issue installing the requirements. This is on a clean machine where amaranth has not been installed before. The current issue is getting the installation of amaranth-boards (main lastet version) which is not compatible with the amaranth v0.4 specified in the pyproject.toml

Any info on what amaranth-boards commit would work with your main branch ? or any branch that I can use?

Thank You

**pip install .**
Defaulting to user installation because normal site-packages is not writeable
Processing /home/rootadmin/fpga/amaranth/mtkcpu
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting amaranth@ git+https://github.com/amaranth-lang/amaranth@a2f3c544eef8d55f29f115663eb33a467cc01178 (from mtkcpu==0.1.1)
  Cloning https://github.com/amaranth-lang/amaranth (to revision a2f3c544eef8d55f29f115663eb33a467cc01178) to /tmp/pip-install-tx_au4b3/amaranth_daed6748d76f4c52b1b7bb515b3b87d6
  Running command git clone --filter=blob:none --quiet https://github.com/amaranth-lang/amaranth /tmp/pip-install-tx_au4b3/amaranth_daed6748d76f4c52b1b7bb515b3b87d6
  Running command git rev-parse -q --verify 'sha^a2f3c544eef8d55f29f115663eb33a467cc01178'
  Running command git fetch -q https://github.com/amaranth-lang/amaranth a2f3c544eef8d55f29f115663eb33a467cc01178
  Running command git checkout -q a2f3c544eef8d55f29f115663eb33a467cc01178
  Resolved https://github.com/amaranth-lang/amaranth to commit a2f3c544eef8d55f29f115663eb33a467cc01178
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting amaranth-boards@ git+https://github.com/amaranth-lang/amaranth-boards.git@main (from mtkcpu==0.1.1)
  Cloning https://github.com/amaranth-lang/amaranth-boards.git (to revision main) to /tmp/pip-install-tx_au4b3/amaranth-boards_36305f9ee50248df89e744dd092c42b9
  Running command git clone --filter=blob:none --quiet https://github.com/amaranth-lang/amaranth-boards.git /tmp/pip-install-tx_au4b3/amaranth-boards_36305f9ee50248df89e744dd092c42b9
  Resolved https://github.com/amaranth-lang/amaranth-boards.git to commit c26a72e59c786b38e0e989ae64c6c2560ca7c29c
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting riscv-model@ git+https://github.com/bieganski/riscv-python-model@master (from mtkcpu==0.1.1)
  Cloning https://github.com/bieganski/riscv-python-model (to revision master) to /tmp/pip-install-tx_au4b3/riscv-model_71aa2a894c9645a085184074d16c6799
  Running command git clone --filter=blob:none --quiet https://github.com/bieganski/riscv-python-model /tmp/pip-install-tx_au4b3/riscv-model_71aa2a894c9645a085184074d16c6799
  Resolved https://github.com/bieganski/riscv-python-model to commit 4441f5c44387dc7b005e0759b01f8e78b02a5f24
  Preparing metadata (setup.py) ... done
Collecting MarkupSafe==2.0.1 (from mtkcpu==0.1.1)
  Downloading MarkupSafe-2.0.1.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Collecting bitstring<4.0.0,>=3.1.7 (from mtkcpu==0.1.1)
  Downloading bitstring-3.1.9-py3-none-any.whl.metadata (3.5 kB)
Collecting colorlog<7.0.0,>=6.7.0 (from mtkcpu==0.1.1)
  Downloading colorlog-6.9.0-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: numpy<2.0.0,>=1.19.2 in /usr/lib/python3/dist-packages (from mtkcpu==0.1.1) (1.26.4)
Collecting ppci<0.6.0,>=0.5.8 (from mtkcpu==0.1.1)
  Downloading ppci-0.5.8-py3-none-any.whl.metadata (6.4 kB)
Collecting pyelftools<0.28,>=0.27 (from mtkcpu==0.1.1)
  Downloading pyelftools-0.27-py2.py3-none-any.whl.metadata (408 bytes)
Collecting pytest<7.0.0,>=6.2.4 (from mtkcpu==0.1.1)
  Downloading pytest-6.2.5-py3-none-any.whl.metadata (7.5 kB)
Collecting pytest-xdist<3.0.0,>=2.2.1 (from mtkcpu==0.1.1)
  Downloading pytest_xdist-2.5.0-py3-none-any.whl.metadata (21 kB)
Collecting termcolor<2.0.0,>=1.1.0 (from mtkcpu==0.1.1)
  Downloading termcolor-1.1.0.tar.gz (3.9 kB)
  Preparing metadata (setup.py) ... done
Collecting typer<0.4.0,>=0.3.2 (from mtkcpu==0.1.1)
  Downloading typer-0.3.2-py3-none-any.whl.metadata (12 kB)
Requirement already satisfied: attrs>=19.2.0 in /usr/lib/python3/dist-packages (from pytest<7.0.0,>=6.2.4->mtkcpu==0.1.1) (23.2.0)
Collecting iniconfig (from pytest<7.0.0,>=6.2.4->mtkcpu==0.1.1)
  Downloading iniconfig-2.1.0-py3-none-any.whl.metadata (2.7 kB)
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from pytest<7.0.0,>=6.2.4->mtkcpu==0.1.1) (24.0)
Collecting pluggy<2.0,>=0.12 (from pytest<7.0.0,>=6.2.4->mtkcpu==0.1.1)
  Downloading pluggy-1.6.0-py3-none-any.whl.metadata (4.8 kB)
Collecting py>=1.8.2 (from pytest<7.0.0,>=6.2.4->mtkcpu==0.1.1)
  Downloading py-1.11.0-py2.py3-none-any.whl.metadata (2.8 kB)
Collecting toml (from pytest<7.0.0,>=6.2.4->mtkcpu==0.1.1)
  Downloading toml-0.10.2-py2.py3-none-any.whl.metadata (7.1 kB)
Collecting execnet>=1.1 (from pytest-xdist<3.0.0,>=2.2.1->mtkcpu==0.1.1)
  Downloading execnet-2.1.1-py3-none-any.whl.metadata (2.9 kB)
Collecting pytest-forked (from pytest-xdist<3.0.0,>=2.2.1->mtkcpu==0.1.1)
  Downloading pytest_forked-1.6.0-py3-none-any.whl.metadata (3.5 kB)
Collecting click<7.2.0,>=7.1.1 (from typer<0.4.0,>=0.3.2->mtkcpu==0.1.1)
  Downloading click-7.1.2-py2.py3-none-any.whl.metadata (2.9 kB)
Collecting pyvcd<0.5,>=0.2.2 (from amaranth@ git+https://github.com/amaranth-lang/amaranth@a2f3c544eef8d55f29f115663eb33a467cc01178->mtkcpu==0.1.1)
  Downloading pyvcd-0.4.1-py2.py3-none-any.whl.metadata (4.2 kB)
Requirement already satisfied: Jinja2~=3.0 in /usr/lib/python3/dist-packages (from amaranth@ git+https://github.com/amaranth-lang/amaranth@a2f3c544eef8d55f29f115663eb33a467cc01178->mtkcpu==0.1.1) (3.1.2)
INFO: pip is looking at multiple versions of amaranth-boards to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install mtkcpu and mtkcpu==0.1.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    mtkcpu 0.1.1 depends on amaranth 0.4.0 (from git+https://github.com/amaranth-lang/amaranth@a2f3c544eef8d55f29f115663eb33a467cc01178)
    **amaranth-boards 0.1.dev258+gc26a72e depends on amaranth<0.7 and >=0.5**

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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