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

2.0.1: ImportError: attempted relative import with no known parent package #43

Closed
mtelka opened this issue May 2, 2023 · 1 comment · Fixed by #44
Closed

2.0.1: ImportError: attempted relative import with no known parent package #43

mtelka opened this issue May 2, 2023 · 1 comment · Fixed by #44

Comments

@mtelka
Copy link

mtelka commented May 2, 2023

I ran tests for 2.0.1 sdist and it failed:

____________________ ERROR collecting test/test_linkify.py _____________________
ImportError while importing test module '$(BUILD_DIR)/test/test_linkify.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/test_linkify.py:7: in <module>
    from .utils import read_fixture_file
E   ImportError: attempted relative import with no known parent package

The sdist is apparently missing some files in the test directory.

@tsutsu3
Copy link
Owner

tsutsu3 commented May 2, 2023

Thanks 😄

@tsutsu3 tsutsu3 linked a pull request May 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants