Closed
Description
Describe the bug
Installing the polygon-api-client Python package does not cover all the underlying reqquirements. The 'setuptools' package is needed or from polygon import RESTClient
will fail.
To Reproduce
pip uninstall setuptools
<-- Ensure you don't already have setuptools installed.pip install -U polygon-api-client
<-- Ensure you have the most recent polygon-api-client package.- Make a python file with
from polygon import RESTClient
in the file. - Run the file and see the error.
pip install setuptools
- Run the file and it will run fine.
Expected behavior
setuptools
needs to be in the list of required packages in the published package on pypi for polygon-api-client.
Screenshots
/home/daxm/PycharmProjects/polygon.io/.venv/bin/python /home/daxm/PycharmProjects/polygon.io/main.py
Traceback (most recent call last):
File "/home/daxm/PycharmProjects/polygon.io/main.py", line 4, in <module>
from polygon import RESTClient
File "/home/daxm/PycharmProjects/polygon.io/.venv/lib/python3.12/site-packages/polygon/__init__.py", line 1, in <module>
from .rest import RESTClient
File "/home/daxm/PycharmProjects/polygon.io/.venv/lib/python3.12/site-packages/polygon/rest/__init__.py", line 1, in <module>
from .aggs import AggsClient
File "/home/daxm/PycharmProjects/polygon.io/.venv/lib/python3.12/site-packages/polygon/rest/aggs.py", line 1, in <module>
from .base import BaseClient
File "/home/daxm/PycharmProjects/polygon.io/.venv/lib/python3.12/site-packages/polygon/rest/base.py", line 9, in <module>
import pkg_resources # part of setuptools
^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'pkg_resources'