8000 Make runtime dependency on `pkg_resources` explicit · Issue #115 · singer-io/tap-bing-ads · GitHub
[go: up one dir, main page]

Skip to content
Make runtime dependency on pkg_resources explicit #115
@peter-malcolm-bw

Description

@peter-malcolm-bw

We're trying to use the tap in a uv managed virtual environment and the tap is failing to run due to an import error.

I can reproduce the error with the following command:

uvx tap-bing-ads

Produces the following error:

Traceback (most recent call last):
  File "~/Library/Caches/uv/archive-v0/-8L4x22tSjG22uG3pghnO/bin/tap-bing-ads", line 7, in <module>
    from tap_bing_ads import main
  File "~/Library/Caches/uv/archive-v0/-8L4x22tSjG22uG3pghnO/lib/python3.11/site-packages/tap_bing_ads/__init__.py", line 18, in <module>
    import bingads
  File "~/Library/Caches/uv/archive-v0/-8L4x22tSjG22uG3pghnO/lib/python3.11/site-packages/bingads/__init__.py", line 3, in <module>
    from .service_client import *
  File "~/Library/Caches/uv/archive-v0/-8L4x22tSjG22uG3pghnO/lib/python3.11/site-packages/bingads/service_client.py", line 5, in <module>
    from .service_info import SERVICE_INFO_DICT
  File "~/Library/Caches/uv/archive-v0/-8L4x22tSjG22uG3pghnO/lib/python3.11/site-packages/bingads/service_info.py", line 1, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

This issue is covered in more detail here: https://www.cosmoscalibur.com/en/blog/2025/modulo-pkg-resources-no-encontrado-en-ambientes-uv/

I believe it could be resolved by editing setup.py to make pkg_resources an explicit runtime dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0