Skip to content

setuptools is a requirement #593

Closed
@daxm

Description

@daxm

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

  1. pip uninstall setuptools <-- Ensure you don't already have setuptools installed.
  2. pip install -U polygon-api-client <-- Ensure you have the most recent polygon-api-client package.
  3. Make a python file with from polygon import RESTClient in the file.
  4. Run the file and see the error.
  5. pip install setuptools
  6. 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'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy