-
Notifications
You must be signed in to change notification settings - Fork 511
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
show_doc
errors if a dependency in the nbdev
group has a sub-dependency that isn't installed
#1097
Comments
I'm unable to reproduce this issue. Could you please help me figure out what I'm missing? Details: |
In a new environment I cloned test-pillow-simd and the notebook ran without issue. I then installed PyTorch^ and the notebook ran without issue. After installing fastai^ I was able to reproduce the original error in the new environment while running the test-pillow-simd notebook. ^ Both of these steps required uninstalling pillow and reinstalling pillow-simd, since these packages will install pillow as a dependency. |
I was able to repro the issue as you said. Starting from the repo above: pip install -e '.[dev]'
pip install fastai
pip uninstall Pillow
nbdev_test IIUC the error is raised because doclinks uses |
show_doc
errors out if pillow-simd is installed instead of pillowshow_doc
errors if a dependency in the nbdev
group has a sub-dependency that isn't installed
In a working env with pillow-simd installed instead of pillow, the following minimal code (split into separate notebook cells) will error out with a
DistributionNotFound
error whether pillow-simd is imported, referenced by any code in the module, or neither imported nor referenced.show_doc
also errors out on pillow-simd in all library nbdev notebooks, including when runningnbdev_test
andnbdev_preview
. However, importing and running code from the subset of modules which use pillow-simd doesn't trigger any errors, suggesting this is exclusively a nbdev2 issue.Full stack trace of the error:
The text was updated successfully, but these errors were encountered: