Code Monkey home page Code Monkey logo

Comments (4)

xorgic avatar xorgic commented on August 28, 2024 2

Hi hbokh!

Debops and Ansible from Homebrew works fine, the problem is that python on OSX expects the modules to placed in specific folders by default, but you can add to the list of folders that python should look into when trying to resolve modules during the import.

Oh well, less talk more action, place the code below into your bashrc or just execute it before debops command and it will work.

export PYTHONPATH="/usr/local/Cellar/ansible/2.1.0.0/libexec/lib/python2.7/site-packages:/usr/local/Cellar/ansible/2.1.0.0/libexec/vendor/lib/python2.7/site-packages:$PYTHONPATH"

Please note that the bash version of OSX is old, and that some Debops feature require v4.3 mainly the PKI, you can upgrade bash with Homebrew, and depending on you version of OSX you might have to modify some more in order to get it working.

For El Capitan or above you will have to disable the SIP in order to link the new bash.
Ref to disable SIP

from debops-tools.

hbokh avatar hbokh commented on August 28, 2024 1

Thank you @xorgic - that did the trick!
Uninstalled Ansible from pip; reinstalled from Homebrew; set PYTHONPATH; debops works (I was on bash v4.3.46 on MacOS already).

Might be handy to put somewhere in your sweet documentation though.

from debops-tools.

drybjed avatar drybjed commented on August 28, 2024

I'm not really sure. IIRC, Homebrew and pip environments on MacOS X are separate and cannot be crossed over without messing stuff up. Perhaps any MacOS X users could clarify this?

from debops-tools.

drybjed avatar drybjed commented on August 28, 2024

@xorgic If you want, you could add a file detailing the needed steps on MacOS X in the debops/debops-tools repository, in the docs/ directory.

from debops-tools.

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.