Closed
Description
Describe the bug
This package cannot be used on Python 3.12.
Traceback:
from dropbox.files import FileMetadata
.tox/py3.12-django5.0/lib/python3.12/site-packages/dropbox/__init__.py:3: in <module>
from dropbox.dropbox_client import ( # noqa: F[40](https://github.com/jschneier/django-storages/actions/runs/6684029520/job/18170161117#step:5:41)1 # pylint: disable=unused-import
.tox/py3.12-django5.0/lib/python3.12/site-packages/dropbox/dropbox_client.py:[43](https://github.com/jschneier/django-storages/actions/runs/6684029520/job/18170161117#step:5:44): in <module>
from dropbox.session import (
.tox/py3.12-django5.0/lib/python3.12/site-packages/dropbox/session.py:1: in <module>
import pkg_resources
E ModuleNotFoundError: No module named 'pkg_resources'
This appears to be caused by the following deprecation:
- gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment.
Ref: Python 3.12 release notes: https://docs.python.org/3/whatsnew/3.12.html
I hope that's enough context 👍