tomas_jevocin
12/04/2023, 5:12 PMmeltano install
in the EL project folder:
meltano 3.1.0 requires python-dotenv<2.0.0,>=1.0.0, but you have python-dotenv 0.21.1 which is incompatible.
We are using the following dockerfile:
ARG MELTANO_IMAGE=meltano/meltano:latest
FROM $MELTANO_IMAGE
# Copy over Meltano project directory
COPY custom-rest-api/ .
COPY my-el-project/ .
WORKDIR /project/my-el-project
# Install any additional requirements
COPY requirements.txt .
RUN pip install -r requirements.txt
# RUN meltano install
RUN meltano lock --update --all
RUN meltano install
ENV PYTHONUNBUFFERED=1
COPY run-el.py .
ENTRYPOINT ["python", "run-el.py"]
Any idea how could we resolve the issue? Any help would be appericiated.edgar_ramirez_mondragon
12/04/2023, 5:16 PMrequirements.txt
?tomas_jevocin
12/04/2023, 5:17 PMsnowflake-connector-python
I believe, but it fails without it as well.edgar_ramirez_mondragon
12/04/2023, 5:18 PMRUN pip install -r requirements.txt
?tomas_jevocin
12/04/2023, 5:19 PMRUN meltano install
tomas_jevocin
12/04/2023, 5:19 PMedgar_ramirez_mondragon
12/04/2023, 5:22 PMtomas_jevocin
12/04/2023, 5:23 PMedgar_ramirez_mondragon
12/04/2023, 5:23 PMmeltano
, by chance?edgar_ramirez_mondragon
12/04/2023, 5:24 PMtomas_jevocin
12/04/2023, 5:25 PMtomas_jevocin
12/04/2023, 5:25 PMtomas_jevocin
12/04/2023, 5:25 PMedgar_ramirez_mondragon
12/04/2023, 5:27 PMThe custom plugin deps should be located within the pyproject.toml, right?Correct 👍
The requirements.txt shown in the docker image is for purposes of different script ran before and after the meltano runGotcha, and the failing stage is
RUN meltano install
so that shouldn't be a problemtomas_jevocin
12/04/2023, 5:28 PM...
[tool.poetry.dependencies]
python = "<3.12,>=3.7.1"
singer-sdk = { version="^0.31.1" }
fs-s3fs = { version = "^1.1.1", optional = true }
requests = "^2.31.0"
genson = "^1.2.2"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
singer-sdk = { version="^0.31.1", extras = ["testing"] }
[tool.poetry.extras]
s3 = ["fs-s3fs"]
[tool.mypy]
python_version = "3.9"
warn_unused_configs = true
[tool.ruff]
ignore = [
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"TD003", # missing issue link in TODO
"FBT001", # bool-typed pos argument
"FBT002", # bool-default pos argument
]
select = ["ALL"]
src = ["mews_rest_api"]
target-version = "py37"
[tool.ruff.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.isort]
known-first-party = ["mews_rest_api"]
[tool.ruff.pydocstyle]
convention = "google"
[build-system]
requires = ["poetry-core>=1.0.8"]
build-backend = "poetry.core.masonry.api"
...
tomas_jevocin
12/04/2023, 5:54 PMedgar_ramirez_mondragon
12/04/2023, 5:56 PMtomas_jevocin
12/05/2023, 10:03 AMedgar_ramirez_mondragon
12/05/2023, 4:02 PM