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

Change version import to relative import #181

Merged
merged 1 commit into from
Sep 22, 2022
Merged

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Sep 22, 2022

No description provided.

@eddyxu
Copy link
Contributor Author

eddyxu commented Sep 22, 2022

Failed during building docs

Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/lance-docs/envs/lei-docs/lib/python3.10/site-packages/sphinx/ext/autodoc/importer.py", line 58, in import_module
    return importlib.import_module(modname)
  File "/home/docs/.asdf/installs/python/3.10.4/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/docs/checkouts/readthedocs.org/user_builds/lance-docs/checkouts/lei-docs/lance/python/lance/__init__.py", line 25, in <module>
    __version__ = lance.version.__version__
AttributeError: partially initialized module 'lance' has no attribute 'version' (most likely due to a circular import)

@eddyxu eddyxu requested a review from changhiskhan September 22, 2022 04:53
@eddyxu eddyxu merged commit 4c52033 into main Sep 22, 2022
@eddyxu eddyxu deleted the lei/lance_version_import branch September 22, 2022 05:51
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 this pull request may close these issues.

2 participants