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 not install package in CI #9957

Open
PythonFZ opened this issue Jan 6, 2025 · 4 comments · May be fixed by python-poetry/poetry-core#807
Open

Can not install package in CI #9957

PythonFZ opened this issue Jan 6, 2025 · 4 comments · May be fixed by python-poetry/poetry-core#807
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@PythonFZ
Copy link

PythonFZ commented Jan 6, 2025

Description

All my poetry projects CI fails with the latest release.
They are using

   steps:
      - uses: actions/checkout@v4
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}
      - name: Install Poetry
        uses: snok/install-poetry@v1
        with:
          virtualenvs-create: true
          virtualenvs-in-project: true
      - name: Install package
        run: |
          poetry install --no-interaction

and just fail with

Installing the current project: znsocket (0.2.8)

'Repository'
Error: Process completed with exit code 1.

This seems more or less independent of the requirements as different packages are affected, e.g.:

Workarounds

Poetry Installation Method

other

Operating System

ubuntu-latest

Poetry Version

v2

Poetry Configuration

see https://github.com/snok/install-poetry

Python Sysconfig

3.9 to 3.12

Example pyproject.toml

-

Poetry Runtime Logs

see e.g. https://github.com/zincware/ZnSocket/actions/runs/12626057845/job/35178634129
@PythonFZ PythonFZ added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 6, 2025
@dimbleby
Copy link
Contributor

dimbleby commented Jan 6, 2025

python-poetry/poetry-core#803

DinisCruz added a commit to owasp-sbot/OSBot-Utils that referenced this issue Jan 6, 2025
This has been long time coming (for example for performance reasons), but was triggered by this poetry update that crashed the CI pipeline:

 - https://github.com/owasp-sbot/OSBot-Utils/actions/runs/12632720785/job/35198284338
 - python-poetry/poetry#9961
 - python-poetry/poetry#9957
 - python-poetry/poetry-core#803
@rowanseymour
Copy link

Seeing same error...

...
2025-01-06T14:34:36.9275374Z   - Installing vonage (3.17.4)
2025-01-06T14:34:36.9564594Z   - Installing xlsxlite (0.2.0)
2025-01-06T14:34:41.8326345Z 
2025-01-06T14:34:41.8327646Z Installing the current project: temba (9.3.140)
2025-01-06T14:34:41.8353990Z 
2025-01-06T14:34:41.8354204Z 'Repository'
2025-01-06T14:34:41.9161412Z ##[error]Process completed with exit code 1.

dimbleby added a commit to dimbleby/poetry-core that referenced this issue Jan 6, 2025
@dimbleby dimbleby linked a pull request Jan 6, 2025 that will close this issue
@boltzmann-brain
Copy link

boltzmann-brain commented Jan 6, 2025

Same for me. I had to add a packages section in tools.poetry in pyproject.toml for one build to work. But another project which uses submodules is failing to import modules within the submodules even with that fix

@boltzmann-brain
Copy link

boltzmann-brain commented Jan 6, 2025

my project structure is:

+--project_name
| +-- pyproject.toml
| +-- src (where all the modules to be installed are)

Previously in pyproject.toml I did not have a packages section in [tool.poetry]. This was fine until 2.0.0. With 2.0.0, I get
Warning: The current project could not be installed: No file/folder found for package [project_name]

I made the change adding the following to [tool.poetry] in pyproject.toml:

packages = [
    { include = "src", from = "." }
]

This worked for one project, but for another project, although it also helped avoid the error above, I got a different error about not finding modules in a submodule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants