Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The colab notebook is broken #34

Open
Patchwork53 opened this issue Jun 15, 2024 · 3 comments
Open

The colab notebook is broken #34

Patchwork53 opened this issue Jun 15, 2024 · 3 comments

Comments

@Patchwork53
Copy link

!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
Copy link

hey ! did you find a workaround for this problem ?

@eatPizza311
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants