charley_guillaume
06/21/2021, 9:44 AM#!/project/.meltano/extractors/tap-whise/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from tap_whise.tap import Tapwhise
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(Tapwhise.cli())
However, I want it to use the main. Such as:
from tap_whise import main
[...]
sys.exit(main())
Can you guide me please?charley_guillaume
06/21/2021, 1:15 PMELT could not be completed: Cannot start extractor: Executable 'tap-whise' could not be found. Extractor 'tap-whise' may not have been installed yet using `meltano install extractor tap-whise`, or the executable name may be incorrect.charley_guillaume
06/21/2021, 2:39 PMmeltano install extractor tap-whiseaaronsteers
06/21/2021, 4:05 PM-e .
The two options for local dev/test of taps using meltano are: (1) specify an executable and no pip_url , and (2) specify an 'editable mode' pip_url with the -e flag.aaronsteers
06/21/2021, 4:05 PMcharley_guillaume
06/21/2021, 4:11 PMmeltano invoke !
I'll check your method in a few minutesaaronsteers
06/21/2021, 4:33 PMThis seems complicated tbh.Appreciate your feedback. And others have shared similar feedback so it's definitely something we are thinking about. The SDK was built with the smoothest onramp being via pyproject.toml and poetry. We have more info here: https://sdk.meltano.com/en/latest/python_tips.html#tip-1-intro-to-virtual-environments-poetry-and-pipx Others have noted that they are used to using pip and pre-PEP-517/518 install methods, and we may add additional guidance in the future on how to get this working without poetry and pyproject.toml. (Although it's generally harder and more steps to do so.)
charley_guillaume
06/21/2021, 4:51 PMaaronsteers
06/21/2021, 4:53 PMcharley_guillaume
06/21/2021, 5:09 PMcharley_guillaume
06/21/2021, 6:33 PMaaronsteers
06/21/2021, 6:38 PMcharley_guillaume
06/21/2021, 6:48 PMcharley_guillaume
06/21/2021, 6:49 PMaaronsteers
06/21/2021, 6:54 PMaaronsteers
06/21/2021, 6:57 PMaaronsteers
06/21/2021, 7:01 PMcharley_guillaume
06/21/2021, 7:03 PMaaronsteers
06/21/2021, 7:04 PMcharley_guillaume
06/21/2021, 7:05 PMaaronsteers
06/21/2021, 7:06 PMaaronsteers
06/21/2021, 7:07 PMcharley_guillaume
06/21/2021, 7:07 PMaaronsteers
06/21/2021, 7:08 PMaaronsteers
06/21/2021, 7:09 PMaaronsteers
06/21/2021, 7:09 PMcharley_guillaume
06/21/2021, 7:09 PMcharley_guillaume
06/21/2021, 7:41 PMpython setup.py bdist_egg
and pushed it to github. Do you know how this could be resolved?aaronsteers
06/21/2021, 7:43 PMaaronsteers
06/21/2021, 7:44 PMcharley_guillaume
06/21/2021, 7:48 PMcharley_guillaume
06/21/2021, 7:50 PMaaronsteers
06/21/2021, 8:01 PMaaronsteers
06/21/2021, 8:02 PMcharley_guillaume
06/21/2021, 8:04 PMcharley_guillaume
06/21/2021, 8:34 PMaaronsteers
06/21/2021, 8:55 PMmeltano add --custom extractor ... which would run the pip instructions as you specify in the prompts.charley_guillaume
06/22/2021, 10:51 AMcharley_guillaume
06/22/2021, 4:06 PMaaronsteers
06/22/2021, 5:11 PMaaronsteers
06/22/2021, 5:11 PM