Xilinx / finn

Dataflow compiler for QNN inference on FPGAs
https://xilinx.github.io/finn
BSD 3-Clause "New" or "Revised" License
684 stars 219 forks source link

run-docker.sh has Pip dependency conflict on wsl2 ubuntu 22.04 #887

Closed canxin121 closed 9 months ago

canxin121 commented 10 months ago

Prerequisites

Please make sure to check off these prerequisites before submitting a bug report.

Quick summary

I used the main branch of this repo. I just run the ./run-docker.sh notebook on my wsl2 ubuntu 22.04,and this error occurs.

Found Vitis HLS at /mnt/d/xilinx//Vitis_HLS/2023.1
Traceback (most recent call last):
  File "/opt/conda/bin/jupyter-notebook", line 5, in <module>
    from notebook.app import main
  File "/opt/conda/lib/python3.8/site-packages/notebook/app.py", line 9, in <module>
    from jupyter_server.base.handlers import JupyterHandler
  File "/opt/conda/lib/python3.8/site-packages/jupyter_server/base/handlers.py", line 23, in <module>
    from jupyter_events import EventLogger
  File "/opt/conda/lib/python3.8/site-packages/jupyter_events/__init__.py", line 3, in <module>
    from .logger import EVENTS_METADATA_VERSION, EventLogger
  File "/opt/conda/lib/python3.8/site-packages/jupyter_events/logger.py", line 13, in <module>
    from jsonschema import ValidationError
  File "/opt/conda/lib/python3.8/site-packages/jsonschema/__init__.py", line 13, in <module>
    from jsonschema._format import FormatChecker
  File "/opt/conda/lib/python3.8/site-packages/jsonschema/_format.py", line 11, in <module>
    from jsonschema.exceptions import FormatError
  File "/opt/conda/lib/python3.8/site-packages/jsonschema/exceptions.py", line 14, in <module>
    from attrs import define
  File "/opt/conda/lib/python3.8/site-packages/attrs/__init__.py", line 3, in <module>
    from attr import (
ImportError: cannot import name 'AttrsInstance' from 'attr' (/tmp/home_dir/.local/lib/python3.8/site-packages/attr/__init__.py)
Ba1tu3han commented 10 months ago

I have the same attr library issue. I could not solve it. https://github.com/Xilinx/finn/discussions/889

@canxin121 did you check this issue? https://github.com/Xilinx/finn/issues/870

gb16001 commented 9 months ago

the same issue with ubuntu18.04.6 and vivado2022.1 running cmd: bash ./run-docker.sh notebook without prebuilt img it will come out:

Installing collected packages: numpy, toposort, qonnx, attrs
  WARNING: The scripts f2py, f2py3 and f2py3.8 are installed in '/tmp/home_dir/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Running setup.py develop for qonnx
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

referencing 0.30.2 requires attrs>=22.2.0, but you'll have attrs 19.3.0 which is incompatible.
jsonschema 4.19.1 requires attrs>=22.2.0, but you'll have attrs 19.3.0 which is incompatible.

and so will it come with the same err,when i tryed to run the same cmd with the self-prebuild img. i think it maybe caused by pypi upgrade and huppened when the Container trying to install conda env for jupyter not book with pip

smtalds commented 9 months ago

@gb16001 and @canxin121 Check #870 , we used dev branch for this issue and it solved.

gb16001 commented 9 months ago

it works for me, thanks a lot