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] Version comparison is raising an error #12907

Closed
franramirez688 opened this issue Jan 16, 2023 · 0 comments · Fixed by #12935
Closed

[bug] Version comparison is raising an error #12907

franramirez688 opened this issue Jan 16, 2023 · 0 comments · Fixed by #12935
Assignees
Milestone

Comments

@franramirez688
Copy link
Contributor

Environment details

  • Operating System+version:
  • Compiler+version:
  • Conan version: develop
  • Python version:

Steps to reproduce

No response

Logs

>>> from conan.tools.scm import Version
>>> Version("13.0")
13.0
>>> v = Version("13.0")
>>> v >= 13
True
>>> v > 13
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/Cellar/python@3.9/3.9.16/Frameworks/Python.framework/Versions/3.9/lib/python3.9/functools.py", line 94, in _gt_from_lt
    return not op_result and self != other
  File "/Users/franchuti/develop/conan/conan/tools/scm/__init__.py", line 172, in __eq__
    (other._nonzero_items, other._pre, other._build)
AttributeError: 'int' object has no attribute '_nonzero_items'
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.

1 participant