question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
abncommented, May 15, 2022

This should be resolved by #4749.

1reaction
devyntkcommented, 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

attempted relative import with no known parent package - IQ-Inc
How to fix ImportError: attempted relative import with no known parent package. Learn why it happens and Python import best-practices.
Read more >
Relative imports in Python 3 - Stack Overflow
ImportError : attempted relative import with no known parent package. However, you will only see this in Python 3.6 or newer.
Read more >
attempted relative import with no known parent package in ...
The solution to this problem is easy. Before advancing to the body of the Python program, programmers first create a Python file with...
Read more >
Importerror attempted relative import with no known parent ...
Importerror attempted relative import with no known parent package error occurs when we import any module from any package (Directory) where __init__.py ...
Read more >
Attempted Relative Import With No Known Parent Package
This article will discuss the error – ImportError: Attempted Relative Import With No Known Parent Package. The primary reason for this error ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found