Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
seajhawk opened this issue Jul 16, 2022 · 2 comments
Open

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

seajhawk opened this issue Jul 16, 2022 · 2 comments

Comments

@seajhawk
Copy link

seajhawk commented Jul 16, 2022

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
Copy link
Contributor

@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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants