max_santiago
03/06/2024, 12:50 PM>> 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:
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).Edgar Ramírez (Arch.dev)
03/06/2024, 2:45 PMmeltano install extractor tap-helpscout --clean
?Edgar Ramírez (Arch.dev)
03/06/2024, 2:46 PMThis doesn't matter anyway though, packages installed globally or in Meltano's own venv are not reflected in the plugin's venv.is installed and updated both in the environmentpython-dateutil
where I installed meltano.venv