# galaxy fails to install role due to incompatible version formats

**URL:** <https://forum.ansible.com/t/galaxy-fails-to-install-role-due-to-incompatible-version-formats/31013>\
**Category:** Ansible Project\
**Tags:** galaxy-ng\
**Created:** [August 9, 2019, 7:19pm UTC](https://forum.ansible.com/t/galaxy-fails-to-install-role-due-to-incompatible-version-formats/31013 "2019-08-09T19:19:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nusenu](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@nusenu](https://forum.ansible.com/u/nusenu)\
**Post date:** [August 9, 2019, 7:19pm UTC](https://forum.ansible.com/t/galaxy-fails-to-install-role-due-to-incompatible-version-formats/31013/1 "2019-08-09T19:19:00Z")

</div>

A user reported the following issue:

downloading role 'relayor', owned by nusenu  
[WARNING]: - nusenu.relayor was NOT installed successfully: Unable to compare  
role versions (v18.1.1, 0.1.0, v18.0.0, v0.3.0, v19.1.4, v19.1.0, v19.1.3,  
0.2.0-rc, 0.1.0-alpha, v0.3.1, v0.3.3, v0.2.1, v19.1.2, v19.0.0, v0.3.2,  
v19.1.1, v0.4.0, v18.1.0) to determine the most recent version due to  
incompatible version formats. Please contact the role author to resolve  
versioning conflicts, or specify an explicit role version to install.

[https://github.com/nusenu/ansible-relayor/issues/204](https://github.com/nusenu/ansible-relayor/issues/204)

What is the best way to solve this?

thanks,  
nusenu

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [August 9, 2019, 7:28pm UTC](https://forum.ansible.com/t/galaxy-fails-to-install-role-due-to-incompatible-version-formats/31013/2 "2019-08-09T19:28:16Z")

</div>

The problem is that you have a mix of tag formats. Specifically those that start with `v` and those that do not.

The tags causing issues are: 0.2.0-rc, 0.1.0-alpha

In python3, the version parsing tools that Ansible uses will not allow you to compare a string to an integer, and you get this error.

To resolve it, the offending tags would need removed, potentially creating new tags with the consistent naming.

---

<div class="post-metadata">

**Author:** ![nusenu](https://avatars.discourse-cdn.com/v4/letter/n/4da419/32.png) [@nusenu](https://forum.ansible.com/u/nusenu)\
**Post date:** [August 9, 2019, 8:06pm UTC](https://forum.ansible.com/t/galaxy-fails-to-install-role-due-to-incompatible-version-formats/31013/3 "2019-08-09T20:06:00Z")

</div>

it is strange to force people to remove past tags but thanks for the help!
