-
Notifications
You must be signed in to change notification settings - Fork 471
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
prefering python2 causes failure because of missing dependancies #189
Comments
Hi Felix! Sorry for the late reply! I've been very busy. There's a very good chance that this will be fixed by the pull request in #190. I'll try that one out soon, and if it fixes this problem, I'll update this ticket. |
Hi Ferry,
No worry and no rush. If you knew how I left some PR dangling too.
Opensource is volunteering after all and we all have other priorities...
I got it to work hacking the shell script in place...
Regards,
…On Wed, Mar 6, 2019, 16:19 Ferry Boender, ***@***.***> wrote:
Hi Felix!
Sorry for the late reply! I've been very busy.
There's a very good chance that this will be fixed by the pull request in
#190 <#190>. I'll try that
one out soon, and if it fixes this problem, I'll update this ticket.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#189 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGSSfFIQzTAdAD2mIJAR4-z9O9f-6HfXks5vUDDrgaJpZM4Z4SkL>
.
|
@fboender we're running into this issue on systems with "python" and "python3" where the former is python2. I think the current implementation in https://github.com/fboender/ansible-cmdb/blob/master/src/ansible-cmdb will not fix the issue at hand. My personal preference would be to check for an environment variable to refer to the python interpreter to use. If it's set use the one defined, otherwise run the detection logic. Even if you would run "which -a python python3" (to cover the most common interpreter) you would still default to the first one, which might or my not be a good choice for the current user. |
I got the same bug in my CI/CD i fixed by adding a symlink from python3 to python |
I guess this line could be improved a bit Line 14 in 8e7f8d2
its a little old school to only look for "python" but i have not looked much into it, hope it can help. Simple one that could be tested which -a python python3
|
This logic in
/usr/local/bin/ansible-cmdb
makes it thatpython2
is picked even whenpython3
is available and as dependencies got installed underpython3
it will fail:e.g:
I think it should try
python3
first. My operating system isUbuntu 18.04
. I suspect it might be working only on Fedora,RHEL,CentOS as of now.Regards, Thanks for coding this software.
The text was updated successfully, but these errors were encountered: