Hey all, having an issue installing Singer SDK tap...
# singer-tap-development
h
Hey all, having an issue installing Singer SDK taps via Git all of a sudden. Error:
Copy code
hassansyyid@Hassans-Mac advancepro-scripts % source ~/env/test-env/bin/activate
(test-env) hassansyyid@Hassans-Mac advancepro-scripts % pip install git+<https://gitlab.com/hotglue/tap-hubspot-beta.git@v0.0.9>

Collecting git+<https://gitlab.com/hotglue/tap-hubspot-beta.git@v0.0.9>
  Cloning <https://gitlab.com/hotglue/tap-hubspot-beta.git> (to revision v0.0.9) to /private/var/folders/xm/s0jdz7fs3ss992_d8zm2spj40000gn/T/pip-req-build-uwv_qrx_
  Running command git clone --filter=blob:none --quiet <https://gitlab.com/hotglue/tap-hubspot-beta.git> /private/var/folders/xm/s0jdz7fs3ss992_d8zm2spj40000gn/T/pip-req-build-uwv_qrx_
  Running command git checkout -q f1ab79f9562ae0cfb29122fda6ba00145f7c63ba
  Resolved <https://gitlab.com/hotglue/tap-hubspot-beta.git> to commit f1ab79f9562ae0cfb29122fda6ba00145f7c63ba
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      Traceback (most recent call last):
        File "/Users/hassansyyid/env/test-env/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/Users/hassansyyid/env/test-env/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/hassansyyid/env/test-env/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/private/var/folders/xm/s0jdz7fs3ss992_d8zm2spj40000gn/T/pip-build-env-m07608zd/overlay/lib/python3.10/site-packages/poetry/core/masonry/api.py", line 40, in prepare_metadata_for_build_wheel
          poetry = Factory().create_poetry(Path(".").resolve(), with_groups=False)
        File "/private/var/folders/xm/s0jdz7fs3ss992_d8zm2spj40000gn/T/pip-build-env-m07608zd/overlay/lib/python3.10/site-packages/poetry/core/factory.py", line 48, in create_poetry
          local_config = PyProjectTOML(path=poetry_file).poetry_config
        File "/private/var/folders/xm/s0jdz7fs3ss992_d8zm2spj40000gn/T/pip-build-env-m07608zd/overlay/lib/python3.10/site-packages/poetry/core/pyproject/toml.py", line 74, in poetry_config
          assert isinstance(config, Table)
      AssertionError
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Any ideas as to what could cause this? cc: @aaronsteers
a
Are you using the latest version of poetry by chance?
h
Looks like it
Copy code
[build-system]
requires = ["poetry-core>=1.0.8"]
build-backend = "poetry.core.masonry.api"
This is what our
pyproject.toml
says
a
Can you try poetry --version or similar to confirm?
Cc @edgar_ramirez_mondragon, @Will Da Silva (Arch) who are more up-to-date on recent poetry lore than I am...
e
There was a recent release of poetry-core
h
Does this look like a bug or some intended change that we weren’t ready for?
e
Issue with latest poetry-core I think. This fails
Copy code
pipx install git+<https://gitlab.com/hotglue/tap-hubspot-beta.git@v0.0.9>
As well as this
Copy code
pipx install git+<https://github.com/MeltanoLabs/tap-stackexchange.git>
h
Yeah
Poetry devs responded, said it’s their end
e
this affects
meltano install
too 😬
Poetry devs responded, said it’s their end
@hassan_syyid in their discord?
h
yep
message has been deleted
Hopefully they release a patch soon. We are hotfixing by forcing
poetry-core==1.0.8
e
poetry-core<1.3
should work too afaict
looks like they’ll have a patch out soon: https://github.com/python-poetry/poetry-core/pull/492
Should be good now