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

Relative imports not supported: ImportError('attempted relative import beyond top-level package') #26

Closed
AIGeneratedUsername opened this issue Oct 7, 2021 · 3 comments
Labels
bug Something isn't working stale Awaiting input from creator for prolonged time period

Comments

@AIGeneratedUsername
Copy link

AIGeneratedUsername commented Oct 7, 2021

Describe the bug:

Relative imports not supported: ImportError('attempted relative import beyond top-level package')

src/
    foo/
        __init__.py
        file_1.py
        file_2.py
    bar/
        __init__.py
        file_3.py
        file_4.py

In my files, I have all relative imports like: from ..bar import Spam, Eggs.

Expected behaviour:

Support relative imports. For example, the pdoc and pydoc-markdown packages work fine with my imports.

@AIGeneratedUsername AIGeneratedUsername added the bug Something isn't working label Oct 7, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2022

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days

@github-actions github-actions bot added the stale Awaiting input from creator for prolonged time period label Jan 6, 2022
@AIGeneratedUsername
Copy link
Author

The issue is not resolved.

@AIGeneratedUsername
Copy link
Author

@LukasMasuch please reopen this again manually. I have no privileges to do that. Stupid bot does more harm than good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale Awaiting input from creator for prolonged time period
Projects
None yet
Development

No branches or pull requests

1 participant