`ImportError: attempted relative import with no known parent package` when attempting install
See original GitHub issue- OS version and name: Arch Linux (last updated today)
- Poetry version: 1.1.13
- pyproject.toml file: https://github.com/first-illinois-robotics/firweb/blob/e54d45d91e52cbacccd9e55a114a6ae41c79e175/pyproject.toml
- error log: https://gist.github.com/devyntk/565b3cad4afc98f08729488f5f8921d9
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:
- Created 2 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This should be resolved by #4749.
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