Hello Everyone! I'm new here. I am having trouble ...
# troubleshooting
j
Hello Everyone! I'm new here. I am having trouble installing a custom tap. The problem is that in the pyproject.toml of the tap there is a dependency, that comes from a private source. When trying to install it on my Meltano, it says that the dependency could not be found, and when looking at the logs that are in .meltano/logs/pip it seems that it is actually trying to install the dependency from pypi directly. I can install the dependencies with
poetry install
when in the folder of the tap itself having set the correct environment variables for authentication of the source, but not with the Meltano installation. Do you guys know a way to solve this problem?
1
👏 1
e
Hi Juan! Is it named dependency (e.g.
my-dep==version
) rather than a direct URL (e.g.
git+https://...
)? If so, you should be able to use normal pip env vars like
PIP_INDEX_URL
and
PIP_EXTRA_INDEX_URL
to refer to your private source.
j
Hello @Edgar Ramírez (Arch.dev)! Thanks for your response. In the pyproject.toml of the tap I have something like this:
Copy code
[tool.poetry.dependencies]
python = ">=3.11,<3.12"
private_library = {version = "^0.3.0", source = "my-source"}

[[tool.poetry.source]]
name = "my-source"
url = "HERE GOES THE HTTP URL TO THE GITLAB REPOSITORY"
priority = "supplemental"
and usually what I do when I have something like this is that I would set the env vars:
POETRY_HTTP_BASIC_MY_SOURCE_USERNAME
POETRY_HTTP_BASIC_MY_SOURCE_PASSWORD
@Edgar Ramírez (Arch.dev) you are the best!!! I had no idea of the existence of those pip env vars hehe. It worked by setting the
PIP_EXTRA_INDEX_URL
with authentication in the url :)
e
Awesome!