Skip to content

Fix requirements for a working fresh install (networkx>=3.4, add yt-dlp)#2

Open
SungFeng-Huang wants to merge 1 commit into
voidful:mainfrom
SungFeng-Huang:fix/requirements-fresh-install
Open

Fix requirements for a working fresh install (networkx>=3.4, add yt-dlp)#2
SungFeng-Huang wants to merge 1 commit into
voidful:mainfrom
SungFeng-Huang:fix/requirements-fresh-install

Conversation

@SungFeng-Huang

Copy link
Copy Markdown

What

Two dependency declarations break a fresh pip install -r requirements.txt:

  • networkx>=3.0networkx>=3.4: scripts/hungyi_graph.py calls node_link_data(..., edges="links") / node_link_graph(..., edges="links"). The edges= keyword was only added in NetworkX 3.4, so installing 3.0–3.3 makes graph build/query/report raise TypeError.
  • add yt-dlp: scripts/hungyi_kb.py (sync-metadata) shells out to the yt-dlp CLI via subprocess. On a clean install without it, the command fails with FileNotFoundError.

Why

Both graph * and sync-metadata are documented maintenance commands, so a fresh install following the README currently can't run them.

Test

requirements.txt change only; no code changed.

🤖 Generated with Claude Code

- networkx>=3.4: graph scripts call node_link_data/node_link_graph with
  the edges="links" kwarg, which only exists in NetworkX >= 3.4. Installing
  3.0-3.3 makes `graph build/query/report` raise TypeError.
- add yt-dlp: sync-metadata shells out to the `yt-dlp` CLI, so a fresh
  `pip install -r requirements.txt` otherwise fails with FileNotFoundError.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

1 participant