Mongodb 3.6.17 package asks for Python2 as dependency

As per the heading in our environment we have Python3 deployed but when we tried to install mongo 3.6.17 it fails with the following error message

[root@vm01 ~]# yum install mongodb-org
Repository ‘Custom-Repository’ is missing name in configuration, using id.
Repository ‘updates’ is missing name in configuration, using id.
Custom-Repository 77 MB/s | 1.0 MB 00:00
Last metadata expiration check: 0:00:01 ago on Mon 12 Jul 2021 09:42:33 AM UTC.
Error:
Problem: package mongodb-org-3.6.17-1.el8.x86_64 requires mongodb-org-server = 3.6.17, but none of the providers can be installed

  • conflicting requests
  • nothing provides python2 needed by mongodb-org-server-3.6.17-1.el8.x86_64
    (try to add ‘-skip-broken’ to skip uninstallable packages or ‘-nobest’ to use not only best candidate packages)

Is there any specific reason why the mongo package is looking for python2 and not use Python3. We know that mongo 3.6 is EOL and we also verified that mongo works with 4.x on Python3 systems. This is a specific case where we need mongo 3.6 to work on Python3 systems , so please let us know if this version compatibility works properly

[root@vm01 ~]# python3 --version
Python 3.6.8

Thanks and Regards,
Azhar

Python2 was required for tools or tools-extra for the compass installer and the dependency was in the wrong package. Not required for mongod, mongo etc.

https://jira.mongodb.org/browse/SERVER-54057

@chris So you mean that Python2 was never a dependency for mongo and the JIRA ticket fixed this issue but only for 4.x version of mongo and not for 3.6 versions. Is this correct ?

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.