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] TypeError: '<' not supported between instances of 'str' and 'int' #3214

Open
waldiTM opened this issue Sep 14, 2024 · 0 comments
Open
Assignees

Comments

@waldiTM
Copy link

waldiTM commented Sep 14, 2024

Describe the bug: A clear and concise description of what the bug is.

A lot of tests fail with invalid comparisions.

tests/pa/test_provision.py:26: in <module>
    from azurelinuxagent.common.protocol.util import OVF_FILE_NAME
azurelinuxagent/common/protocol/util.py:36: in <module>
    from azurelinuxagent.common.protocol.metadata_server_migration_util import cleanup_metadata_server_artifacts, \
azurelinuxagent/common/protocol/metadata_server_migration_util.py:25: in <module>
    from azurelinuxagent.common.event import add_event, WALAEventOperation
azurelinuxagent/common/event.py:620: in <module>
    __event_logger__ = EventLogger()
azurelinuxagent/common/event.py:372: in __init__
    osutil = get_osutil()
azurelinuxagent/common/osutil/factory.py:54: in get_osutil
    return _get_osutil(distro_name, distro_code_name, distro_version, distro_full_name)
azurelinuxagent/common/osutil/factory.py:101: in _get_osutil
    if "sid" in distro_version or Version(distro_version) > Version("7"):
/usr/lib/python3/dist-packages/setuptools/_distutils/version.py:84: in __gt__
    c = self._cmp(other)
/usr/lib/python3/dist-packages/setuptools/_distutils/version.py:343: in _cmp
    if self.version < other.version:
E   TypeError: '<' not supported between instances of 'str' and 'int'
@narrieta narrieta self-assigned this Sep 16, 2024
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

2 participants