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

Python 3.12 No module named 'pkg_resources' #1423

Open
fanuch opened this issue Jul 12, 2024 · 4 comments
Open

Python 3.12 No module named 'pkg_resources' #1423

fanuch opened this issue Jul 12, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@fanuch
Copy link

fanuch commented Jul 12, 2024

Python 3.12.4 on Mac

➜ pip install nbdev

➜ nbdev_new
Traceback (most recent call last):
  File "/Users/user/Documents/Code/Shell/NBDev_Tutorial/venv/bin/nbdev_new", line 5, in <module>
    from nbdev.cli import nbdev_new
  File "/Users/user/Documents/Code/Shell/NBDev_Tutorial/venv/lib/python3.12/site-packages/nbdev/__init__.py", line 3, in <module>
    from .doclinks import nbdev_export
  File "/Users/user/Documents/Code/Shell/NBDev_Tutorial/venv/lib/python3.12/site-packages/nbdev/doclinks.py", line 17, in <module>
    import pkg_resources,importlib
ModuleNotFoundError: No module named 'pkg_resources'

Fix required mentioned in #1392 and in issue #1397 raised a fix that was closed?

Non-starter trying to follow the tutorial.

@fanuch fanuch added the bug Something isn't working label Jul 12, 2024
@deven367
Copy link
Contributor

Hi @fanuch, the issue is kind of stuck till the issue gets resolved in the fastcore library on which nbdev depends. A temporary solution for now would be to use python 3.11 if possible.

@awesomo4000
Copy link

install setuptools

@bulletmark
Copy link

Probably should just add setuptools to the dependencies of nbdev, at least until this issue is addressed properly. I and many others use uv which doesn't install setuptools in the venv so this issue is readily apparent.

@thisiswhereitype
Copy link

thisiswhereitype commented Oct 8, 2024

Looks like this happened but got reverted AnswerDotAI/fastcore#544

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants