josh_lloyd
10/20/2021, 6:49 PMmeltano invoke tap-rest-api-msdk --help
and the resulting stack trace looks like poetry tries to install genson
but fails with
ValueError: ("EntryPoint must be in 'name=module:attrs [extras]' format", 'tap-rest-api-msdk=tap_rest_api_msdk.tap:Taprest-api-msdk.cli')
I have no idea what that means. After the failed install, of course the actual invocation fails with
File "/Users/jlloyd/Documents/dev/tap-rest-api-msdk/tap_rest_api_msdk/tap.py", line 6, in <module>
from genson import SchemaBuilder
visch
10/20/2021, 6:52 PMpyproject.toml
josh_lloyd
10/20/2021, 6:52 PM[tool.poetry]
name = "tap-rest-api-msdk"
version = "0.0.5"
description = "`tap-rest-api-msdk` is a Singer tap for REST APIs, built with the Meltano SDK for Singer Taps."
authors = ["Josh Lloyd"]
keywords = [
"ELT",
"rest-api-msdk",
"Meltano",
"Singer",
"REST",
"API",
"tap"
]
license = "Apache 2.0"
homepage = "<https://github.com/Widen/tap-rest-api-msdk>"
repository = "<https://github.com/Widen/tap-rest-api-msdk>"
[tool.poetry.dependencies]
python = "<3.10,>=3.6.2"
requests = "^2.25.1"
singer-sdk = "^0.3.11"
genson = "^1.2.2"
atomicwrites = "^1.4.0"
[tool.poetry.dev-dependencies]
pytest = "^6.2.5"
tox = "^3.24.4"
flake8 = "^3.9.2"
black = "^21.9b0"
pydocstyle = "^6.1.1"
mypy = "^0.910"
types-requests = "^2.25.8"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
# CLI declaration
tap-rest-api-msdk = 'tap_rest_api_msdk.tap:Taprest-api-msdk.cli'
@vischvisch
10/20/2021, 6:55 PMtap-rest-api-msdk = 'tap_rest_api_msdk.tap:Taprest-api-msdk.cli
josh_lloyd
10/20/2021, 6:56 PMedgar_ramirez_mondragon
10/20/2021, 6:57 PMTaprest-api-msdk
this is not a valid Python class name so I'm guessing the class has a different namejosh_lloyd
10/20/2021, 6:58 PMtap-rest-api-msdk = 'tap_rest_api_msdk.tap:TapRestApiMsdk.cli'
but when I rerun the --help
command I get the same error like I didn’t change anything: ValueError: ("EntryPoint must be in 'name=module:attrs [extras]' format", 'tap-rest-api-msdk=tap_rest_api_msdk.tap:Taprest-api-msdk.cli')
josh_lloyd
10/20/2021, 6:58 PMedgar_ramirez_mondragon
10/20/2021, 6:58 PMpoetry install
?josh_lloyd
10/20/2021, 6:58 PMedgar_ramirez_mondragon
10/20/2021, 6:58 PMjosh_lloyd
10/20/2021, 6:59 PMValueError: ("EntryPoint must be in 'name=module:attrs [extras]' format", 'tap-rest-api-msdk=tap_rest_api_msdk.tap:Taprest-api-msdk.cli')
edgar_ramirez_mondragon
10/20/2021, 7:00 PMjosh_lloyd
10/20/2021, 7:00 PMedgar_ramirez_mondragon
10/20/2021, 7:01 PMpoetry run tap-rest-api-msdk --about
work?josh_lloyd
10/20/2021, 7:02 PMedgar_ramirez_mondragon
10/20/2021, 7:03 PMmeltano.yml
?josh_lloyd
10/20/2021, 7:04 PM- name: tap-rest-api-msdk
namespace: tap_rest_api_msdk
executable: ./tap-rest-api-msdk.sh
capabilities:
- state
- catalog
- discover
settings:
- name: api_url
- name: auth_method
- name: auth_token
- name: name
- name: path
- name: params
- name: headers
- name: records_path
- name: primary_keys
- name: replication_key
- name: except_keys
- name: num_inference_records
config:
name: us_earthquakes
api_url: <https://earthquake.usgs.gov/fdsnws>
path: /event/1/query
params:
format: geojson
starttime: "2014-01-01"
endtime: "2014-01-02"
minmagnitude: 1
primary_keys:
- id
records_path: "$.features[*]"
select:
- '*.*'
visch
10/20/2021, 7:06 PMvisch
10/20/2021, 7:06 PMjosh_lloyd
10/20/2021, 7:06 PMvisch
10/20/2021, 7:07 PMjosh_lloyd
10/20/2021, 7:38 PMpoetry install
nothing actually updates. I think that’s part of the problem, it’s using a cache of some sort. Is there a way to force it to install and overwrite the cache?josh_lloyd
10/20/2021, 7:46 PMpypoetry
dir (no --no-cache
option). Now I’ve got a new errorjosh_lloyd
10/20/2021, 7:47 PMmeltano elt tap-rest-api-msdk target-jsonl
I get:
meltano | Running extract & load...
meltano | No state was found, complete import.
meltano | ELT could not be completed: Cannot start extractor: Catalog discovery failed: command ['/Users/jlloyd/Documents/dev/tap-rest-api-msdk/tap-rest-api-msdk.sh', '--config', '/Users/jlloyd/Documents/dev/tap-rest-api-msdk/.meltano/run/elt/2021-10-20T194403--tap-rest-api-msdk--target-jsonl/0e4a888c-4d58-4142-a6f2-3b7dfbc46332/tap.91cd9480-d8cd-4df8-ab89-6b9e740ea393.config.json', '--discover'] returned 1
josh_lloyd
10/20/2021, 7:49 PM--log-level=debug
will produce this additional error:
meltano.cli.utils.CliError: ELT could not be completed: Cannot start extractor: Separator is not found, and chunk exceed the limit
josh_lloyd
10/20/2021, 9:19 PM