Hi! I’m running Python 3.11.6 through pyenv 2.3.32...
# troubleshooting
m
Hi! I’m running Python 3.11.6 through pyenv 2.3.32 on a M1 Mac. I am trying to get Meltano (specifically, the tap-helpscout extractor) to work, but I’m running into a Python error. The steps I followed (starting from the pyenv-managed “global” Python environment):
Copy code
>> python -m venv .venv
>> source .venv/bin/activate
>> pip install --upgrade pip
>> pip install meltano
>> meltano init help-scout
>> cd help-scout
>> meltano add extractor tap-helpscout
>> meltano config tap-helpscout set --interactive
>> meltano config tap-helpscout test
However, with the last command I get the following error:
Copy code
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.

Plugin configuration is invalid
Catalog discovery failed: command ['/Users/max.santiago/repos/myrepo/help-scout/.meltano/extractors/tap-helpscout/venv/bin/tap-helpscout', '--config', '/Users/max.santiago/repos/myrepo/help-scout/.meltano/run/tap-helpscout/tap.a5fee3a5-e443-4dfa-b38b-1b898d93ad14.config.json', '--discover'] returned 1 with stderr:
 Traceback (most recent call last):
  File "/Users/max.santiago/repos/myrepo/help-scout/.meltano/extractors/tap-helpscout/venv/bin/tap-helpscout", line 6, in <module>
    from tap_helpscout import main
  File "/Users/max.santiago/repos/myrepo/help-scout/.meltano/extractors/tap-helpscout/venv/lib/python3.9/site-packages/tap_helpscout/__init__.py", line 1, in <module>
    import singer
  File "/Users/max.santiago/repos/myrepo/help-scout/.meltano/extractors/tap-helpscout/venv/lib/python3.9/site-packages/singer/__init__.py", line 1, in <module>
    from singer import utils
  File "/Users/max.santiago/repos/myrepo/help-scout/.meltano/extractors/tap-helpscout/venv/lib/python3.9/site-packages/singer/utils.py", line 9, in <module>
    import dateutil.parser
ModuleNotFoundError: No module named 'dateutil'
Which is weird because,
python-dateutil
is installed and updated both in the environment
.venv
where I installed meltano and in the environment created for the tap
/Users/max.santiago/repos/myrepo/help-scout/.meltano/extractors/tap-helpscout/venv/
(I checked this by sourcing the activate script inside that folder in a different shell and running
pip list
). Moreover, if I manually edit
/Users/max.santiago/repos/myrepo/help-scout/.meltano/extractors/tap-helpscout/venv/lib/python3.9/site-packages/singer/utils.py
to remove all references to
dateutil.parser
then I get a similar error saying the module
pytz
is not installed (which is also present in both environments according to pip).
e
Something's definitely broken in the extractor's virtual environment. Can you try to fix that with
meltano install extractor tap-helpscout --clean
?
python-dateutil
is installed and updated both in the environment
.venv
where I installed meltano
This doesn't matter anyway though, packages installed globally or in Meltano's own venv are not reflected in the plugin's venv.