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

ImportError: attempted relative import with no known parent package when attempting install #5216

Closed
devyntk opened this issue Feb 18, 2022 · 6 comments
Labels
kind/bug Something isn't working as expected

Comments

@devyntk
Copy link

devyntk commented Feb 18, 2022

Issue

I can't seem to install this project no matter what. I've tried using both 3.9 and 3.10 on my local arch machine. It always errors out in this same way. I can install the project correctly on a Ubuntu 20.04 install. I have already tried reinstalling both python and poetry (through the official arch repos) and also clearing the entire ~/.cache/pypoetry directory.

@devyntk devyntk added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Feb 18, 2022
@devyntk
Copy link
Author

devyntk commented Feb 18, 2022

Installing with the install-poetry.py installed and uninstalling the package via pacman seems to resolve this issue. I'm raising this issue with the arch packagers now. https://bugs.archlinux.org/task/73867

@sammko sammko mentioned this issue Feb 19, 2022
2 tasks
@felixonmars
Copy link

A dirty workaround could be: felixonmars@b4a74c7

Not submitting a real fix because I am unsure about how to properly address this.

@alerque
Copy link

alerque commented Apr 15, 2022

I added @felixonmars's dirty patch to the Arch Linux packaging, currently in [community-testing]. I would encourage everyone on Arch that was having this issue to test, as well as everybody that wasn't to also test and make sure it doesn't regress anything else serious. I understand this will probably eventually get fixed upstream a different way, but in a distro context where we know what packages are and are not available it seems like a workable hack that solves a very real problem people keep hitting.

@abn
Copy link
Member

abn commented May 15, 2022

This should be resolved by #4749.

@abn abn closed this as completed May 15, 2022
@spoorn
Copy link
Contributor

spoorn commented May 27, 2022

I ran into this same problem in a Plugin I created which adds new commands. Fixed it by adding from packaging.tags import sys_tags to my Plugin imports

Edit: See https://github.com/spoorn/poeblix/blob/main/src/poeblix/plugins.py#L9-L10

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jun 11, 2022
Copy link

github-actions bot commented Mar 1, 2024

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 Mar 1, 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
Projects
None yet
Development

No branches or pull requests

6 participants