fastdup icon indicating copy to clipboard operation
fastdup copied to clipboard

Can't install Fastdup using Poetry

Open kikohs opened this issue 1 year ago • 8 comments

Hi, I'm trying to install your package with Poetry (package manager) on WSL (ubuntu) with Python3.8 but it fails :(.

I tried the regular way: poetry add fastdup

  • Installing fastdup (0.180): Failed

  RuntimeError

  Unable to find installation candidates for fastdup (0.180)

This is what I get when I tried to add from git directly

poetry add git+https://github.com/visual-layer/fastdup.git#main

Please let me know if there is something I can do. Thanks.

Unable to determine package info for path: /home/kikohs/.cache/pypoetry/virtualenvs/rts-DIiCth0j-py3.8/src/fastdup

Command ['/tmp/tmpzgduc58e/.venv/bin/python', '-'] errored with the following return code 1, and output: 
Traceback (most recent call last):
  File "<stdin>", line 9, in <module>
  File "/tmp/tmpzgduc58e/.venv/lib/python3.8/site-packages/build/__init__.py", line 208, in __init__
    _validate_source_directory(srcdir)
  File "/tmp/tmpzgduc58e/.venv/lib/python3.8/site-packages/build/__init__.py", line 109, in _validate_source_directory
    raise BuildException(f'Source {srcdir} does not appear to be a Python project: no pyproject.toml or setup.py')
build.BuildException: Source /home/kikohs/.cache/pypoetry/virtualenvs/rts-DIiCth0j-py3.8/src/fastdup does not appear to be a Python project: no pyproject.toml or setup.py
input was : import build
import build.env
import pep517

source = '/home/kikohs/.cache/pypoetry/virtualenvs/rts-DIiCth0j-py3.8/src/fastdup'
dest = '/tmp/tmpzgduc58e/dist'

with build.env.IsolatedEnvBuilder() as env:
    builder = build.ProjectBuilder(
        srcdir=source,
        scripts_dir=env.scripts_dir,
        python_executable=env.executable,
        runner=pep517.quiet_subprocess_runner,
    )
    env.install(builder.build_system_requires)
    env.install(builder.get_requires_for_build('wheel'))
    builder.metadata_path(dest)

No fallback setup.py file was found to generate egg_info.

kikohs avatar Dec 20 '22 10:12 kikohs