Skip to content

Build not working with errors on python dep install #2

@willkara

Description

@willkara

Tried to install on my Windows 11 machine as well as my WSL 24.04 setup.

0.333 Using CPython 3.11.13 interpreter at: /usr/local/bin/python3
0.333 Creating virtual environment at: .venv
0.464    Building image-gen-mcp @ file:///app
0.550 Downloading aiohttp (1.7MiB)
0.555 Downloading pydantic-core (1.9MiB)
0.555 Downloading ruff (11.1MiB)
0.558 Downloading pygments (1.2MiB)
0.560 Downloading pillow (6.3MiB)
0.946  Downloading pygments
1.013  Downloading aiohttp
1.024  Downloading pydantic-core
1.275  Downloading pillow
1.384  Downloading ruff
1.582   × Failed to build `image-gen-mcp @ file:///app`
1.582   ├─▶ The build backend returned an error
1.582   ╰─▶ Call to `hatchling.build.build_editable` failed (exit status: 1)
1.582
1.582       [stderr]
1.582       Traceback (most recent call last):
1.582         File "<string>", line 11, in <module>
1.582         File
1.582       "/root/.cache/uv/builds-v0/.tmpxtlEbu/lib/python3.11/site-packages/hatchling/build.py",
1.582       line 83, in build_editable
1.582           return os.path.basename(next(builder.build(directory=wheel_directory,
1.582       versions=['editable'])))
1.582
1.582       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.582         File
1.582       "/root/.cache/uv/builds-v0/.tmpxtlEbu/lib/python3.11/site-packages/hatchling/builders/plugin/interface.py",
1.582       line 90, in build
1.582           self.metadata.validate_fields()
1.582         File
1.582       "/root/.cache/uv/builds-v0/.tmpxtlEbu/lib/python3.11/site-packages/hatchling/metadata/core.py",
1.582       line 266, in validate_fields
1.582           self.core.validate_fields()
1.582         File
1.582       "/root/.cache/uv/builds-v0/.tmpxtlEbu/lib/python3.11/site-packages/hatchling/metadata/core.py",
1.582       line 1366, in validate_fields
1.582           getattr(self, attribute)
1.582         File
1.582       "/root/.cache/uv/builds-v0/.tmpxtlEbu/lib/python3.11/site-packages/hatchling/metadata/core.py",
1.582       line 531, in readme
1.582           raise OSError(message)
1.582       OSError: Readme file does not exist: README.md
1.582
1.582       hint: This usually indicates a problem with the package or the build
1.582       environment.

I've tried every iteration of using the uv command, shell scripts ...etc, but it always comes to this error.

Please let me know if you need anymore debugging info.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions