Seeed-Studio / ModelAssistant

Seeed SenseCraft Model Assistant is an open-source project focused on embedded AI. 🔥🔥🔥
https://sensecraftma.seeed.cc/
Apache License 2.0
403 stars 46 forks source link

Can't work on Colab Anymore due error installing Ethos-U Library #251

Closed djairjr closed 3 months ago

djairjr commented 3 months ago

Describe the bug Since this monday (August 5th) I cant use SSCMA with Google Colab.

Environment Google Colab Pro

INFO: pip is looking at multiple versions of ethos-u-vela to determine which version is compatible with other requirements. This could take a while. Collecting ethos-u-vela (from -r requirements/export.txt (line 8)) Downloading ethos-u-vela-3.11.0.tar.gz (404 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 404.8/404.8 kB 27.2 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Downloading ethos-u-vela-3.10.0.tar.gz (394 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 394.2/394.2 kB 20.0 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Downloading ethos-u-vela-3.9.0.tar.gz (386 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 386.5/386.5 kB 24.8 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Downloading ethos-u-vela-3.8.0.tar.gz (373 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 373.7/373.7 kB 23.9 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Downloading ethos-u-vela-3.7.0.tar.gz (349 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 349.0/349.0 kB 21.5 MB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Downloading ethos-u-vela-3.6.0.tar.gz (350 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 350.0/350.0 kB 21.0 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Downloading ethos-u-vela-3.5.0.tar.gz (339 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 339.3/339.3 kB 25.5 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done INFO: pip is still looking at multiple versions of ethos-u-vela to determine which version is compatible with other requirements. This could take a while. Downloading ethos-u-vela-3.4.0.tar.gz (337 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 338.0/338.0 kB 21.1 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Downloading ethos-u-vela-3.3.0.tar.gz (327 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 327.5/327.5 kB 21.4 MB/s eta 0:00:00 error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (setup.py) ... error error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details. Install base deps failed... Exiting

Additional context Add any other context about the problem here.

djairjr commented 3 months ago

A solution that works to me is at the very beginning of notebook I've put this: %env PYTHON_EXEC=python3.8 !git clone https://review.mlplatform.org/ml/ethos-u/ethos-u-vela.git %cd ethos-u-vela !pip install . %cd ..