Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install Fastdup using Poetry #51

Open
kikohs opened this issue Dec 20, 2022 · 8 comments
Open

Can't install Fastdup using Poetry #51

kikohs opened this issue Dec 20, 2022 · 8 comments

Comments

@kikohs
Copy link

kikohs commented Dec 20, 2022

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.
@dbickson
Copy link
Collaborator

Hi @kikohs thanks for trying us on windows! We would love to help. We never used poetry before. Can you try and install inside the WSL terminal

python3.8 -m pip install -U pip
python3.8 -m pip install fastdup

And let us know if this works?

@kikohs
Copy link
Author

kikohs commented Dec 20, 2022

It works! This is how I use it as a fallback but it doesn't get versionned so it is less portable as an install (you need a post-init script) manually triggered by the user.

@dbickson
Copy link
Collaborator

We will take a look into poetry to see how difficult it is to support.
Thanks for your feedback, feel free to reach out for any issues!

@jdonini
Copy link

jdonini commented Sep 19, 2023

Hi, @dbickson, do you have any updates on how to install correctly using Poetry?

I tried to install it using Poetry and encountered the error below:

  • Installing fastdup (1.42): Failed

  RuntimeError

  Unable to find installation candidates for fastdup (1.42)

@dbickson dbickson reopened this Sep 30, 2023
@dbickson
Copy link
Collaborator

HI @jdonini please give us more information, which operating system, which python, did you upgrade pip, what is the output of pip debug --verbose on your system

@jdonini
Copy link

jdonini commented Oct 18, 2023

Sorry about my delay, I using Python 3.11.5, and pip 23.2.1.

The output of the Poetry is:

2023-10-18_09-36

@dnth
Copy link
Collaborator

dnth commented Oct 18, 2023

@jdonini , I think we don't have support for Python 3.11 yet. Can you try changing your Python version to 3.10?

Here are the steps that works for me.

mkdir fastdup_poetry
cd fastdup_poetry
poetry new .

Make sure Python version is < 3.11 in the pyproject.toml file. Here's mine for example.

[tool.poetry.dependencies]
python = ">=3.10,<3.13"

Run

poetry lock
poetry install
poetry add fastdup

Let me know if it works.

@jdonini
Copy link

jdonini commented Oct 18, 2023

It works when I change my local Python version using Pyenv to 3.10. If I use a global Python version (3.11.5), I get the same error, but in general, it works. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants