Git Product home page Git Product logo

Comments (4)

geerlingguy avatar geerlingguy commented on July 20, 2024

Interesting... I think because I had only installed Python 3 on my own system, it wasn't causing an issue. But it might be good to force Python 3 usage. The difficulty is some people may have Python set up differently or want to use pyenv, and I don't want to override that behavior.

from internet-pi.

Duckle29 avatar Duckle29 commented on July 20, 2024

Maybe put it in the example.inventory.yml with a comment explaining why people might want to use it?

from internet-pi.

kdpuvvadi avatar kdpuvvadi commented on July 20, 2024

@Duckle29 first thing i do after adding hosts to inventory is adding python 3 var to the inv, fresh install of pi always caused issues for me.

from internet-pi.

geerlingguy avatar geerlingguy commented on July 20, 2024

@Duckle29 - Setting the ansible_python_interpreter is often not necessary and depends a lot on how you install Ansible in the first place—plus it can cause weird issues if you use pyenv too, so I typically favor not mentioning it and sadly, letting users kind of hit the issue on their own and go down the Google rabbit hole.

Basically, the way Ansible reference Python can differ based on if you use a system-installed Ansible (package manager), source install, or pip install, and trying to account for the variety can be dizzingly difficult, which is why I exclusively install Ansible with pip3 install ansible nowadays, and just have one Python 3 version installed system-wide :)

from internet-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.