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

Failed to parse pyproject.toml when I change its location #1840

Closed
mpizenberg opened this issue Apr 4, 2023 · 3 comments
Closed

Failed to parse pyproject.toml when I change its location #1840

mpizenberg opened this issue Apr 4, 2023 · 3 comments

Comments

@mpizenberg
Copy link

pip-compile fails to parse my pyproject.toml when I change its location. The following pyproject.toml works fine with pip-compile when I’m in the ..../ids-peak-python/ directory, but when I create a new project at ..../controllable-leds/client/, and I copy that same pyproject.toml there, pip-compile does not work anymore.

It’s really mysterious and I was hoping someone has a clue on what’s going on.

[project]
name = "ids-peak-python"
version = "0.1.0"
description = 'Example IDS camera usage in python'
readme = "README.md"
requires-python = "==3.10.*"

dependencies = [
  "wincertstore ; platform_system == 'Windows'"
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

Environment Versions

  1. OS Type: Windows
  2. Python version: $ python -V: 3.10.10
  3. pip version: $ pip --version: 23.0.1
  4. pip-tools version: $ pip-compile --version: 6.12.3

Steps to replicate

  1. copy the pyproject.toml in a new folder
  2. run pip-compile in the folder

Expected result

It should resolve and generate the requirements file

Actual result

Installing packages in isolated environment... (hatchling)
Getting dependencies for wheel...
Getting metadata for wheel...
Backend subproccess exited when trying to invoke prepare_metadata_for_build_wheel
Failed to parse C:\Users\MatthieuPIZENBERG\git\controllable-leds\client\pyproject.toml
@AndydeCleyre
Copy link
Contributor

Is there a README.md in the new folder as well?

@mpizenberg
Copy link
Author

Is there a README.md in the new folder as well?

That was it 🤦

Thanks @AndydeCleyre ! I guess the error message could be improved

@AndydeCleyre
Copy link
Contributor

Yes, definitely can be improved. I think we're waiting on new releases from other projects so that we can preserve clearer error messages. Some more info in #1711

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

2 participants