Error in python_tutorial - No module named 'pkg_resources'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- jupyter-notebook, python
- Domain
- machine-learning
Research direction
Start with the Python 3.12 notebook cell shown in the traceback and reproduce the failure when importing hyperopt. Inspect how the tutorial’s dependencies provide the missing pkg_resources module. Done when the tutorial runs past that import without ModuleNotFoundError.
Written by the indexing model from the issue text.
Description
The error, py 3.12:
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[36], line 1
----> 1 import hyperopt
3 def hyperopt_objective(params):
4 model = CatBoostClassifier(
5 l2_leaf_reg=int(params['l2_leaf_reg']),
6 learning_rate=params['learning_rate'],
(...) 11 loss_function=metrics.Logloss(),
12 )
File ~/gitlab/catboost-experiments/.venv/lib/python3.12/site-packages/hyperopt/__init__.py:34
32 from . import rand
33 from . import tpe
---> 34 from . import atpe
35 from . import mix
36 from . import anneal
File ~/gitlab/catboost-experiments/.venv/lib/python3.12/site-packages/hyperopt/atpe.py:19
17 import numpy
18 import numpy.random
---> 19 import pkg_resources
20 import tempfile
21 import scipy.stats
ModuleNotFoundError: No module named 'pkg_resources'
- Dominant language
- Jupyter Notebook
- Stars
- 1.1k
- Forks
- 422
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from catboost/tutorials
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
in progress
catboost/tutorials#20 · 2 comments · 1 reaction · 1 assignee ·
All issues in catboost/tutorials
Similar issues
-
bug module:classification
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
low AI-generated score register-submission
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
UKGovernmentBEIS/inspect_evals#2521 · 2 comments ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
stanfordnlp/stanza#1683 · 2 comments ·
-
wer_score / mer_score / cer_score return 0 (a perfect lower-is-better score) for an empty prediction Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stanford-crfm/helm#4359 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ml-explore/mlx-lm#1915 · 1 comment ·