Widen / tap-rest-api-msdk

`tap-rest-api-msdk` is a Singer tap for generic rest-apis, built with the Meltano SDK for Singer Taps.
Apache License 2.0
24 stars 25 forks source link

Error installing with `meltano add` on Windows with Python 3.9.7 #24

Open seajhawk opened 2 years ago

seajhawk commented 2 years ago

Originally, I was using Python 3.10 and got the following error after running meltano add extractor tap-rest-api-msdk:

 >  meltano add extractor tap-rest-api-msdk
2022-07-16T13:18:49.991587Z [info     ] Environment 'dev' is active
Extractor 'tap-rest-api-msdk' already exists in your Meltano project
To add it to your project another time so that each can be configured differently,
add a new plugin inheriting from the existing one with its own unique name:
        meltano add extractor tap-rest-api-msdk--new --inherit-from tap-rest-api-msdk

Installing extractor 'tap-rest-api-msdk'...
Extractor 'tap-rest-api-msdk' could not be installed: failed to install plugin 'tap-rest-api-msdk'.
ERROR: Ignored the following versions that require a different python version: 0.0.3 Requires-Python >=3.6.1,<=3.9.7; 0.0.4 Requires-Python >=3.6.1,<=3.9.7; 0.0.5 Requires-Python >=3.6.2,<3.10; 0.0.6 Requires-Python >=3.6.2,<3.10; 1.0.0 Requires-Python >=3.6.2,<3.10
ERROR: Could not find a version that satisfies the requirement tap-rest-api-msdk (from versions: none)
ERROR: No matching distribution found for tap-rest-api-msdk

I installed Python 3.9.7, then created and activated a virtual environment using 3.9.7. When I ran the meltano add command again, I got the same error.

Is there something else I should be doing?

jlloyd-widen commented 2 years ago

@seajhawk thanks for using this tap! To be honest, I've never tried adding the tap using meltano add and this error is very odd given your version of python is clearly within the requirements. I'll investigate further and see if I can replicate and fix the issue.

seajhawk commented 2 years ago

I ended up resolving this issue this morning with some help from the Meltano community

The problem was Meltano was installed with Python 3.10 and that is the version it was using to install the tap. I fixed it by pipx uninstall meltano then using the --python argument for pipx and specifying a python 3.9.7 exe on my machine to re-install:

pipx install meltano --python C:\Users\chris\AppData\Local\Programs\Python\Python39\python.exe

I'm working on a PR for the Meltano getting-started doc to help others in the future.