srush / GPU-Puzzles

Solve puzzles. Learn CUDA.
MIT License
5.34k stars 303 forks source link

The colab notebook is broken #34

Open Patchwork53 opened 2 weeks ago

Patchwork53 commented 2 weeks ago

!pip install git+https://github.com/danoneata/chalk@srush-patch-1 to throws the following error:

Collecting git+https://github.com/danoneata/chalk@srush-patch-1
  Cloning https://github.com/danoneata/chalk (to revision srush-patch-1) to /tmp/pip-req-build-rkqwruae
  Running command git clone --filter=blob:none --quiet https://github.com/danoneata/chalk /tmp/pip-req-build-rkqwruae
  Running command git checkout -b srush-patch-1 --track origin/srush-patch-1
  Switched to a new branch 'srush-patch-1'
  Branch 'srush-patch-1' set up to track remote branch 'srush-patch-1' from 'origin'.
  Resolved https://github.com/danoneata/chalk to commit fe0e7057192c6420a99b4229ad38aa405b219537
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: toolz in /usr/local/lib/python3.10/dist-packages (from chalk-diagrams==0.1.2) (0.12.1)
Requirement already satisfied: colour in /usr/local/lib/python3.10/dist-packages (from chalk-diagrams==0.1.2) (0.1.5)
Collecting svgwrite (from chalk-diagrams==0.1.2)
  Downloading svgwrite-1.4.3-py3-none-any.whl (67 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.1/67.1 kB 1.6 MB/s eta 0:00:00
Requirement already satisfied: Pillow in /usr/local/lib/python3.10/dist-packages (from chalk-diagrams==0.1.2) (9.4.0)
Collecting loguru (from chalk-diagrams==0.1.2)
  Downloading loguru-0.7.2-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.5/62.5 kB 3.7 MB/s eta 0:00:00
Collecting planar (from chalk-diagrams==0.1.2)
  Downloading planar-0.4.zip (622 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 622.5/622.5 kB 7.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.

This might be related to a a recent commit on the chalk-diagram/planer repo changed the package name from planer to chalk-planer.

Prabhat1308 commented 2 weeks ago

hey ! did you find a workaround for this problem ?

eatPizza311 commented 2 weeks ago

It seems that changing planar to chalk-planar within the install_requires section of the setup.py file might resolve the problem for now. I've tried with a forked version, and it works: 圖片

mtreviso commented 2 weeks ago

A simple solution is to install planar from a previous commit:

!pip install -qqq git+https://github.com/chalk-diagrams/planar@1e06d5894af31984323532092848d87a98278235
!pip install -qqq git+https://github.com/danoneata/chalk@srush-patch-1
!wget -q https://github.com/srush/GPU-Puzzles/raw/main/robot.png
!wget -q https://github.com/srush/GPU-Puzzles/raw/main/lib.py