turar_s
06/20/2021, 11:58 PM#13 58.79 ERROR: Could not find a version that satisfies the requirement meltano-flask-security<0.2.0,>=0.1.0 (from meltano) (from versions: 0.1.0)
#13 58.79 ERROR: No matching distribution found for meltano-flask-security<0.2.0,>=0.1.0
which is due to:
#13 57.77 Downloading meltano-flask-security-0.1.0.tar.gz (116 kB)
#13 58.27 ERROR: Command errored out with exit status 1:
#13 58.27 command: /opt/app-root/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p_cxg_53/meltano-flask-security_f68379315b8c4a1da34c2a124f93f376/setup.py'"'"'; __file__='"'"'/tmp/pip-install-p_cxg_53/meltano-flask-security_f68379315b8c4a1da34c2a124f93f376/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-tc624dbr
#13 58.27 cwd: /tmp/pip-install-p_cxg_53/meltano-flask-security_f68379315b8c4a1da34c2a124f93f376/
#13 58.27 Complete output (23 lines):
#13 58.27 Couldn't find index page for 'pytest-runner' (maybe misspelled?)
#13 58.27 No local packages or working download links found for pytest-runner>=2.6.2
#13 58.27 Traceback (most recent call last):
#13 58.27 File "<string>", line 1, in <module>
#13 58.27 File "/tmp/pip-install-p_cxg_53/meltano-flask-security_f68379315b8c4a1da34c2a124f93f376/setup.py", line 94, in <module>
#13 58.27 'Development Status :: 4 - Beta',
#13 58.27 File "/opt/rh/rh-python36/root/usr/lib64/python3.6/distutils/core.py", line 108, in setup
#13 58.27 _setup_distribution = dist = klass(attrs)
#13 58.27 File "/opt/app-root/lib/python3.6/site-packages/setuptools/dist.py", line 315, in __init__
#13 58.27 self.fetch_build_eggs(attrs['setup_requires'])
#13 58.27 File "/opt/app-root/lib/python3.6/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs
#13 58.27 replace_conflicting=True,
#13 58.27 File "/opt/app-root/lib/python3.6/site-packages/pkg_resources/__init__.py", line 850, in resolve
#13 58.27 dist = best[req.key] = env.best_match(req, ws, installer)
#13 58.27 File "/opt/app-root/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1122, in best_match
#13 58.27 return self.obtain(req, installer)
#13 58.27 File "/opt/app-root/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1134, in obtain
#13 58.27 return installer(requirement)
#13 58.27 File "/opt/app-root/lib/python3.6/site-packages/setuptools/dist.py", line 429, in fetch_build_egg
#13 58.27 return cmd.easy_install(req)
#13 58.27 File "/opt/app-root/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 659, in easy_install
#13 58.27 raise DistutilsError(msg)
#13 58.27 distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner>=2.6.2')
#13 58.27 ----------------------------------------
#13 58.27 WARNING: Discarding <https://files.pythonhosted.org/packages/b4/b6/6748dd16d2a6b5f366aec3c9fd3d4f4dde6854c23df0637f4a420d0fe01b/meltano-flask-security-0.1.0.tar.gz#sha256=5926152dc424a764825517ca3530a9bdbc367b7e56cc09ad9ec6510961d6c2cc> (from <https://pypi.org/simple/meltano-flask-security/>). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Is there anything I can do to work around this? Is there a Meltano version that could be compatible?aaronsteers
06/21/2021, 12:07 AMpipx install meltano without having to worry about version conflicts. Another option, if you are comfortable with it, would be to create and activate a custom virtual environment, per instructions in the Meltano docs: https://meltano.com/docs/getting-started.html#local-installation
Would either of these methods work for your use case?turar_s
06/21/2021, 12:39 AM#17 0.587 Error: Command '['/.local/pipx/shared/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.
But that could be some other venv/pipx dependencies missing which I need to investigate.
Alternatively, is there a recommended way to use Meltano’s Docker image if my use case is to only use CLI from Python code executing within its own Docker container?
My current Dockerfile is built off centos/python-36-centos7:1 base image. Meltano has its own base image.
I tried using multi-stage Dockerfile approach, but I’m running into issues trying to make Meltano executable from Meltano image available within my own image, so that my code can shell out to Meltano.
I also tried playing around with docker-compose multi-container, but I’m not sure if I can do container to container communication with Meltano, since it’s a CLI…turar_s
06/21/2021, 1:23 AMturar_s
06/21/2021, 1:56 AMturar_s
06/21/2021, 2:01 AM