chalk-diagrams / chalk

A declarative drawing API in Python
MIT License
267 stars 13 forks source link

Preparing metadata (setup.py) ... error error: metadata-generation-failed. #139

Open musram opened 2 weeks ago

musram commented 2 weeks ago

Hi Sasha,

I am running colab note book as given in https://github.com/srush/GPU-Puzzles.

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

gives an error

Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done 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 is happening because of git+https://github.com/danoneata/chalk@srush-patch-1. I think recent changes to setup.py is breaking.

danoneata commented 2 weeks ago

Hey! I think I've fixed now the problem! Indeed, it was related to the last update, which changed the name of the planar package to chalk-planar. I didn't realise this would break existing notebooks 🙁 @srush Are there are branches (apart from srush-patch-1) that you use in your notebooks? I can modify their setup.py to include chalk-planar instead of planar.

srush commented 2 weeks ago

I think that is the only one. I'll try to go through my repos and have them all use HEAD.