Hi, I'm having trouble using the tap-csv extractor...
# troubleshooting
j
Hi, I'm having trouble using the tap-csv extractor. Does anyone have an idea why? In the command line I enter:
Copy code
meltano run tap-csv
The config in meltano.yml:
Copy code
- name: tap-csv
    variant: meltanolabs
    pip_url: git+<https://github.com/MeltanoLabs/tap-csv.git>
    config:
      files:
      - ARR
      - path\to\test.csv
      - id
      - UTF-8
Error Message:
Copy code
block violates set requirements: Found no end in block set!
a
Perhaps this needs to be quoted?
- "UTF-8"
Wait, don't you need something like this?:
Copy code
- name: tap-csv
    variant: meltanolabs
    pip_url: git+<https://github.com/MeltanoLabs/tap-csv.git>
    config:
      files:
      - entity: ARR
        path: path\to\test.csv
        keys: 
          - id
        encoding: UTF-8
j
No, it produces the same error.
a
Can you share the entire .yml here?
p
@jannis_voigt the run command requires tap/target pairs. If you want to run just the tap use the invoke command. That error message is saying the “block” ie the pair is missing a target
Or you can use a simple target like target-jsonl
s
@jannis_voigt just to complete what Pat said: 1. "block" means your command block for "meltano run" (I know, I dislike that part of the error message as well) 2. Use "meltano invoke tap-csv" to just invoke the tap and print the output to stdout 3. Or use "meltano run tap-csv target-jsonl" (given that you installed that target before) to test your tap-csv together with meltano "run".
j
Tahnk you, using invoke fixed it!