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

BUG: pkg_resources is depreciated for Python 3.12 #115

Open
3 tasks done
erexer opened this issue Feb 10, 2025 · 0 comments
Open
3 tasks done

BUG: pkg_resources is depreciated for Python 3.12 #115

erexer opened this issue Feb 10, 2025 · 0 comments

Comments

@erexer
Copy link
Collaborator

erexer commented Feb 10, 2025

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of cerf.

  • (optional) I have confirmed this bug exists on the master branch of cerf.


Code Sample

Running tutorial.ipynb using Python 3.12.7.

import cerf

Problem description

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[1], line 1
----> 1 import cerf

File ~/<path>/cerf/.venv3.12.7/lib/python3.12/site-packages/cerf/__init__.py:1
----> 1 from .package_data import *
      2 from .model import *
      3 from .outputs import *

File ~/<path>/cerf/.venv3.12.7/lib/python3.12/site-packages/cerf/package_data.py:2
      1 import os
----> 2 import pkg_resources
      4 import yaml
      5 import pandas as pd

ModuleNotFoundError: No module named 'pkg_resources'

Python 3.12 doesn't support pkg_resources and has moved to setuptools, we should migrate.

Expected Output

no error

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

No branches or pull requests

1 participant