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

[Bug] fail to build with python 3.13 #1962

Open
hubutui opened this issue Dec 23, 2024 · 0 comments
Open

[Bug] fail to build with python 3.13 #1962

hubutui opened this issue Dec 23, 2024 · 0 comments

Comments

@hubutui
Copy link

hubutui commented Dec 23, 2024

Branch

main branch (mmpretrain version)

Describe the bug

similar to open-mmlab/mmengine#1616

Environment

none

Other information

quick fix, modify get_version in setup.py:

def get_version():
    version_dict = {}
    version_file = 'mmpretrain/version.py'
    with open(version_file, 'r', encoding='utf-8') as f:
        exec(compile(f.read(), version_file, 'exec'), version_dict)
    return version_dict['__version__']
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

No branches or pull requests

1 participant