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

[PYTHON] Enable proper error message in python package #7521

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

tqchen
Copy link
Member

@tqchen tqchen commented Feb 24, 2021

No description provided.

@tqchen
Copy link
Member Author

tqchen commented Feb 24, 2021

cc @tkonolige @junrushao1994

@tkonolige
Copy link
Contributor

Where is the error message for when the user is using python 2? It seems like that check should be in this file before any imports are loaded.

@tqchen
Copy link
Member Author

tqchen commented Feb 24, 2021

The error check is in _ffi._pyversion, which should be fired in the first import. Verified in my local setups

Copy link
Contributor

@tkonolige tkonolige left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tqchen!

@tqchen tqchen merged commit 772fa6b into apache:main Feb 25, 2021
Lokiiiiii pushed a commit to Lokiiiiii/tvm that referenced this pull request Mar 2, 2021
@tqchen tqchen deleted the py2 branch February 26, 2023 13:57
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.

3 participants