danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
22.43k stars 2.34k forks source link

[Bug]: Wsl Fabric Installation #749

Closed rex1c closed 3 weeks ago

rex1c commented 1 month ago

What happened?

I am unable to install Fabric using pipx install . due to the following error message:

Version check

Relevant log output

ERROR: Command errored out with exit status 1:
   command: /tmp/tmpois1rqv3/bin/python /home/rex1c/.local/pipx/shared/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpyl60vyi9
       cwd: /home/rex1c/fabric
  Complete output (14 lines):
  Traceback (most recent call last):
    File "/home/rex1c/.local/pipx/shared/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/home/rex1c/.local/pipx/shared/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/rex1c/.local/pipx/shared/lib/python3.6/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 "/tmp/pip-build-env-ovg72_bc/overlay/lib/python3.6/site-packages/poetry/core/masonry/api.py", line 43, in prepare_metadata_for_build_wheel
      poetry = Factory().create_poetry(Path(".").resolve(), with_dev=False)
    File "/tmp/pip-build-env-ovg72_bc/overlay/lib/python3.6/site-packages/poetry/core/factory.py", line 43, in create_poetry
      raise RuntimeError("The Poetry configuration is invalid:\n" + message)
  RuntimeError: The Poetry configuration is invalid:
    - Additional properties are not allowed ('group' was unexpected)

  ----------------------------------------
WARNING: Discarding file:///home/rex1c/fabric. Command errored out with exit status 1: /tmp/tmpois1rqv3/bin/python /home/rex1c/.local/pipx/shared/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpyl60vyi9 Check the logs for full command output.
ERROR: Command errored out with exit status 1: /tmp/tmpois1rqv3/bin/python /home/rex1c/.local/pipx/shared/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmpyl60vyi9 Check the logs for full command output.
Cannot determine package name from spec '/home/rex1c/fabric'. Check package spec for errors.

Relevant screenshots (optional)

No response

michaellerickson commented 1 month ago

Is Ubuntu 18 imperative? Do you have dependencies that require it?

bamit99 commented 1 month ago

I think you need to upgraded Poetry. The error you're encountering is due to the use of Poetry's dependency group feature, which was introduced in Poetry 1.2.0. However, it seems the version of Poetry you're using doesn't recognize this syntax.

pip install --upgrade poetry