meltano / sdk

Write 70% less code by using the SDK to build custom extractors and loaders that adhere to the Singer standard: https://sdk.meltano.com
https://sdk.meltano.com
Apache License 2.0
94 stars 68 forks source link

ModuleNotFoundError: No module named 'jaraco' #2659

Closed jlloyd-widen closed 5 days ago

jlloyd-widen commented 6 days ago

Singer SDK Version

Various: 0.36.0, 0.40.0, etc.

Is this a regression?

Python Version

3.11

Bug scope

Taps (catalog, state, etc.)

Operating System

Linux

Description

All of my taps got reinstalled yesterday, effectively a completely clean install. All of my singer_sdk based taps errored out with the following error:

Traceback (most recent call last):
  File "/opt/dagster/app/meltano/.meltano/extractors/tap-clari/venv/bin/tap-clari", line 5, in <module>
    from tap_clari.tap import TapClari
  File "/opt/dagster/app/meltano/.meltano/extractors/tap-clari/venv/lib/python3.11/site-packages/tap_clari/tap.py", line 5, in <module>
    from singer_sdk import Tap
  File "/opt/dagster/app/meltano/.meltano/extractors/tap-clari/venv/lib/python3.11/site-packages/singer_sdk/__init__.py", line 5, in <module>
    from singer_sdk import streams
  File "/opt/dagster/app/meltano/.meltano/extractors/tap-clari/venv/lib/python3.11/site-packages/singer_sdk/streams/__init__.py", line 5, in <module>
    from singer_sdk.streams.core import Stream
  File "/opt/dagster/app/meltano/.meltano/extractors/tap-clari/venv/lib/python3.11/site-packages/singer_sdk/streams/core.py", line 26, in <module>
    from singer_sdk.helpers._batch import (
  File "/opt/dagster/app/meltano/.meltano/extractors/tap-clari/venv/lib/python3.11/site-packages/singer_sdk/helpers/_batch.py", line 12, in <module>
    import fs
  File "/opt/dagster/app/meltano/.meltano/extractors/tap-clari/venv/lib/python3.11/site-packages/fs/__init__.py", line 4, in <module>
    __import__("pkg_resources").declare_namespace(__name__)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/dagster/app/meltano/.meltano/extractors/tap-clari/venv/lib/python3.11/site-packages/pkg_resources/__init__.py", line 95, in <module>
    from jaraco.text import drop_comment, join_continuation, yield_lines
ModuleNotFoundError: No module named 'jaraco'

That's about 8 taps, most of which I did not touch, that all went haywire on the same day, same time/build.

Code

No response

Link to Slack/Linen

No response

edgarrmondragon commented 6 days ago

Thanks for reporting!

I suspect this is caused by setuptools. Let me investigate.

UPDATE: maybe someone else running into the same error is https://github.com/ronaldoussoren/py2app/issues/533

jlloyd-widen commented 6 days ago

@edgarrmondragon Good find on that other example. I was looking for something like that but couldn't find it. I tried the last few major versions of setuptools, 70.3.0 is the last working version for me.

edgarrmondragon commented 6 days ago

@edgarrmondragon Good find on that other example. I was looking for something like that but couldn't find it. I tried that last few major versions of setuptools, 70.3.0 is the last working version for me.

@jlloyd-widen Thanks for confirming. I think I'll add a constraint for setuptools then. We'll hopefully be able to remove fs as a dependency soon enough too.