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

generate-setup-file = false #7733

Closed
4 tasks done
jannikmi opened this issue Mar 28, 2023 · 4 comments
Closed
4 tasks done

generate-setup-file = false #7733

jannikmi opened this issue Mar 28, 2023 · 4 comments
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@jannikmi
Copy link

  • Poetry version: 4.1.0
  • Python version: 3.8, 3.9, 3.10, 3.11
  • OS version and name:
  • pyproject.toml:

https://github.com/jannikmi/timezonefinder/blob/master/pyproject.toml

[tool.poetry.build]
script = "build.py"
generate-setup-file = false
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below. (Cannot be reproduced locally)

Issue

My GitHub Actions runs failed when using the latest poetry version 4.1.0 with the error:

poetry install -v
  
  [RuntimeError]
  The Poetry configuration is invalid:
    - [build] {'script': 'build.py', 'generate-setup-file': <tomlkit.items.Bool object at 0x7f0b9679fc70>} is not of type 'string'

(https://github.com/jannikmi/timezonefinder/actions/runs/4547527551/jobs/8017519862)

I have checked that using the latest tomlkit version does not resolve the issue

I resolved the issue by pinning the previous release pip install poetry==1.4.0.

Locally (Macbook) i cannot reproduce the issue.

@jannikmi jannikmi added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Mar 28, 2023
@dimbleby
Copy link
Contributor

your stack shows that you were getting a truly ancient version of poetry in your CI pipeline. Please close

@jannikmi
Copy link
Author

Where can you see that? I installed poetry with pip install poetry>=1.4.1

https://github.com/jannikmi/timezonefinder/actions/runs/4547527551/jobs/8017519578#step:6:1

@dimbleby
Copy link
Contributor

dimbleby commented Mar 29, 2023

eg

    File "/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/poetry/console/application.py", line 49, in poetry
      self._poetry = Factory().create_poetry(Path.cwd())

that hasn't been at line 49 since #2683

I expect you have somehow mixed up one virtual environment with another. You'll figure it out, I'm sure.

I notice you have poetry installed as a dev dependency of the project being managed. This is a bad idea and - even though you checked the box - absolutely not one of the recommended ways of installing poetry.

Please close

Copy link

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 Feb 29, 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 status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants