python-poetry / python-poetry/poetry
Poetry build, python is not in the subpath of my folder
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 34.3k
- Forks
- 2.5k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 30
Description
- Poetry version: 1.4.2
- Python version: 3.10.11
- OS version and name: macOS 13.0.1
- pyproject.toml: https://gist.github.com/rmarquet21/0a369a0287b0d423fa02396d2835a804
- 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 (
-vvvoption) and have included the output below.
Issue
Hello,
I'm trying to do a poetry build of my Python app. The problem is that I keep getting an error that says '/Users/robin/.pyenv/versions/3.10.9/bin/python3.10' is not in the subpath of '/Users/robin/Documents/rmarquet21/st_annotation' OR one path is relative, and the other is absolute. I have tried to find a solution to my issue, but I haven't found any. I also use pyenv and currently have a global version of Python 3.8, so I don't understand where version 3.10.9 is coming from.
pyproject.toml
[tool.poetry]
name = "st-text-annotator"
version = "0.1.6"
description = "Component for annotating text for NLP resolution"
classifiers = ["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent"]
authors = ["Robin Marquet <robin.marquet@epitech.eu>"]
license = "MIT License"
readme = "README.md"
packages = [{include = "st_text_annotator", from = "src"}]
[tool.poetry.dependencies]
python = "^3.8,<3.9"
streamlit = "^1.21.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
output
(st-text-annotator-py3.8) ➜ st_annotation git:(master) ✗ poetry build
Building st-text-annotator (0.1.6)
- Building sdist
'/Users/robin/.pyenv/versions/3.10.9/bin/python3.10' is not in the subpath of '/Users/robin/Documents/rmarquet21/st_annotation' OR one path is relative and the other is absolute.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the reported pyproject.toml and reproducing poetry build with the stated Python, Poetry, and pyenv versions. Trace the build entry point handling the project path and interpreter path; done means the package builds without the subpath error while honoring the declared Python constraint.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100