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

Poetry 1.2.0 fails to install pyradiomics from PyPI #6484

Closed
3 tasks done
goncinious opened this issue Sep 12, 2022 · 4 comments
Closed
3 tasks done

Poetry 1.2.0 fails to install pyradiomics from PyPI #6484

goncinious opened this issue Sep 12, 2022 · 4 comments
Labels
kind/bug Something isn't working as expected

Comments

@goncinious
Copy link

goncinious commented Sep 12, 2022

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Ubuntu 20.04.3 LTS
  • Poetry version: 1.2.0
  • Link of a Gist with the contents of your pyproject.toml file: Gist Link Here

Issue

Latest version of Poetry (1.2.0) fails to install pyradiomics package. Fails with the following error below (see full log of poetry install -vvv attached). Adding numpy to the dependencies doesn't fix the issue.

Crucially, this error doesn't occur with a previous version of Poetry. This can be tested by running poetry self update 1.1.15 and run poetry install again.

  EnvCommandError                                                                                                                                                                                          
                                                                                                                                                                                                           
  Command ['/root/.cache/pypoetry/virtualenvs/test-env-mnVCQm9x-py3.9/bin/python', '/root/.local/share/pypoetry/venv/lib/python3.9/site-packages/virtualenv/seed/wheels/embed/pip-22.2.2-py3-none-any.whl/p
ip', 'install', '--use-pep517', '--disable-pip-version-check', '--prefix', '/root/.cache/pypoetry/virtualenvs/test-env-mnVCQm9x-py3.9', '--no-deps', '/root/.cache/pypoetry/artifacts/2e/5f/4f/f1ccee41e4d3
385ae9d6e7eafb72058f58fe91b3548027da73ce261ae1/pyradiomics-3.0.1.tar.gz'] errored with the following return code 1, and output: 
  Processing /root/.cache/pypoetry/artifacts/2e/5f/4f/f1ccee41e4d3385ae9d6e7eafb72058f58fe91b3548027da73ce261ae1/pyradiomics-3.0.1.tar.gz
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'error'
    error: subprocess-exited-with-error
    
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> [17 lines of output]
        Traceback (most recent call last):
          File "/tmp/tmpc05uhvdv_in_process.py", line 363, in <module>
            main()
          File "/tmp/tmpc05uhvdv_in_process.py", line 345, in main
            json_out['return_val'] = hook(**hook_input['kwargs'])
          File "/tmp/tmpc05uhvdv_in_process.py", line 130, in get_requires_for_build_wheel
            return hook(config_settings)
          File "/tmp/pip-build-env-ass50t6p/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
            return self._get_build_requires(config_settings, requirements=['wheel'])
          File "/tmp/pip-build-env-ass50t6p/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
            self.run_setup()
          File "/tmp/pip-build-env-ass50t6p/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 482, in run_setup
            super(_BuildMetaLegacyBackend,
          File "/tmp/pip-build-env-ass50t6p/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 335, in run_setup
            exec(code, locals())
          File "<string>", line 7, in <module>
        ModuleNotFoundError: No module named 'numpy'
        [end of output]
    
    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

Steps to reproduce

  1. Create simple Poetry environment with pyradiomics package as dependency used (see pyproject.toml)
  2. Run poetry install

Logs

output.log

@goncinious goncinious added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 12, 2022
@finswimmer
Copy link
Member

Hey ,

there is no wheel file for pyradiomics on python3.9. That's why it must be build from the sdist file. The maintainers of the package missed to define build system requirements according to PEP-518 and so the build failed.

Please contact the maintainers of the package and ask them to fix it.

In Poetry 1.1 the isolated build wasn't triggered correct. This is fixed now.

fin swimmer

@finswimmer finswimmer closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2022
@dimbleby
Copy link
Contributor

AIM-Harvard/pyradiomics#653 has tracked this for a while

@andreasala98
Copy link

+1

Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

5 participants