Pin quantecon_book_networks==1.6 to unblock input_output + networks#777
Merged
Conversation
quantecon_book_networks 1.6 migrates off the removed `pkg_resources` module to the stdlib `importlib.resources`, so the package imports again on the anaconda 2026.06 stack (and remains compatible with 2025.12). This unblocks the input_output and networks lectures, whose execution aborted with `ModuleNotFoundError: No module named 'pkg_resources'` under the 2026.06 upgrade. Picks up the upstream fix from QuantEcon/quantecon_book_networks#21. Addresses cause 2 of #775. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ Deploy Preview for taupe-gaufre-c4e660 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Pins quantecon_book_networks / quantecon-book-networks to version 1.6 in the relevant lecture notebooks to avoid pkg_resources import failures after the anaconda 2026.06 upgrade, restoring execution of the affected lectures.
Changes:
- Pin
quantecon_book_networksto==1.6ininput_output.md. - Pin
quantecon-book-networksto==1.6innetworks.md.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| lectures/input_output.md | Pins the in-notebook install to ==1.6 to avoid the pkg_resources import issue. |
| lectures/networks.md | Pins the in-notebook install to ==1.6 to avoid the pkg_resources import issue. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| :tags: [hide-output] | ||
|
|
||
| !pip install quantecon_book_networks | ||
| !pip install quantecon_book_networks==1.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pins
quantecon_book_networks==1.6in theinput_outputandnetworkslectures, picking up the upstreampkg_resourcesfix released today.Why
Under the anaconda 2026.06 upgrade (#773),
input_output.mdandnetworks.mdfailed to execute becausequantecon_book_networks/data.pyranimport pkg_resourcesat module load, andpkg_resourcesis no longer present on the 2026.06 stack:quantecon_book_networks1.6 (published 2026-06-26) migratesdata.pyoffpkg_resourcesto the stdlibimportlib.resources, so the package imports cleanly again.importlib.resources.filesis available on all supported Python versions, so 1.6 also works on the current 2025.12 stack — there is no regression onmain. This ports the upstream fix from QuantEcon/quantecon_book_networks#21.Changes
lectures/input_output.md!pip install quantecon_book_networks!pip install quantecon_book_networks==1.6lectures/networks.md!pip install quantecon-book-networks pandas-datareader!pip install quantecon-book-networks==1.6 pandas-datareaderThe package is installed via in-cell
!pip installrather thanenvironment.yml, so the pin lives in the lecture cells. #775 explicitly called for the fixed version to be pinned here.Context
This addresses cause 2 of #775 (the
quantecon_book_networks/pkg_resourcesfailures). Cause 1 — the pandas 3.0 read-only array ininequality.md— is handled separately in #776. With both merged, a re-run of the "Build Cache" workflow validating the anaconda 2026.06 bump (#773) should go green.🤖 Generated with Claude Code