Pranav kumar Pulusu
05/06/2024, 11:51 AMplugins:
extractors:
- name: tap-gdrive
namespace: "tap-gdrive"
pip_url: 'n'
executable: tap-gdrive
>meltano install
Extractor 'tap-gdrive' could not be installed: Failed to install plugin 'tap-gdrive'.
ERROR: Could not find a version that satisfies the requirement n (from versions: none)
ERROR: No matching distribution found for n
>meltano invoke tap-gdrive
2024-05-06T11:49:47.226170Z [info ] Environment 'dev' is active
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Executable 'tap-gdrive' could not be found. Extractor 'tap-gdrive' may not have been installed yet using `meltano install extractor tap-gdrive`, or the executable name may be incorrect.
Edgar Ramírez (Arch.dev)
05/06/2024, 7:26 PMmeltano install
if you specified there's nothing to install? Otherwise, following the interactive prompts, selecting n
actually sets pip_url
to an empty (null) value: https://github.com/meltano/meltano/blob/9b75e897672a0e80e93602f32f7d4d4a1db0943a/src/meltano/cli/utils.py#L164
That makes me think you either actually need a valid pip_url
or should remove it entirely since you probably typed it in manually.Pranav kumar Pulusu
05/06/2024, 7:35 PMPranav kumar Pulusu
05/07/2024, 4:41 PM/app # meltano install
Installing 1 plugins...
Installing extractor 'tap-gdrive'...
Skipped installing extractor 'tap-gdrive'...
Skipped installing 1/1 plugins
/app # meltano invoke tap-gdrive
2024-05-07T16:36:39.939210Z [info ] Environment 'dev' is active
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.
Executable 'tap-gdrive' could not be found. Extractor 'tap-gdrive' may not have been installed yet using `meltano install extractor tap-gdrive`, or the executable name may be incorrect.
Pranav kumar Pulusu
05/07/2024, 4:44 PMplugins:
extractors:
- name: tap-gdrive
namespace: "tap-gdrive"
pip_url:
executable: tap-gdrive
relevant filepath structure:
/tap-gdrive/pyproject.toml...
/tap-gdrive/tap_gdrive/client.py..
/meltano.ymlEdgar Ramírez (Arch.dev)
05/07/2024, 4:45 PMpip_url
pointing to the /tap-gdrive/
directoryPranav kumar Pulusu
05/07/2024, 4:46 PMpip_url: -e tap-gdrive
, requirements.txt
needs to be inside tap-gdrive
which is creating another virtualenv. I'm trying to find a way to use the parent environment for the tap.Edgar Ramírez (Arch.dev)
05/07/2024, 4:49 PMrequirements.txt
used for and what its contents are, but if you want to reuse a virtual environment, the executable
needs to be an absolute path pointing to tap-gdrive
in the venv's /bin
directoryPranav kumar Pulusu
05/07/2024, 4:52 PM.meltano/extractors/tap-gdrive/venv/bin
path right? btw sorry by requirements.txt I meant pyproject.toml.Edgar Ramírez (Arch.dev)
05/07/2024, 4:58 PM.meltano/extractors/tap-gdrive/venv/bin
if you installed the tap with meltano install
, but I thought you wanted to reuse a different venv? I'm confused now 😅Pranav kumar Pulusu
05/07/2024, 5:20 PMPranav kumar Pulusu
05/07/2024, 5:22 PMEdgar Ramírez (Arch.dev)
05/07/2024, 5:32 PMexectutable
is resolved in various scenarios:
1. pip_url
is not null: the executable
value is appended to .meltano/<plugin type>/<plugin name>/venv/bin/
2. pip_url
is null and executable
is not path-like (e.g. a simple value like tap-gdrive
): the executable is expected to be on the PATH
3. pip_url
is null and executable
is path-like (e.g. extractors/tap-gdrive/venv/bin/tap-gdrive
): the executable is appended to the project root path
So yeah, I was a bit off about the last one. You shouldn't use an absolute path, rather a relative path to the project root.