Giter Site home page Giter Site logo

Comments (3)

samvarankashyap avatar samvarankashyap commented on June 16, 2024 1

Note for future reference :
When using ansible playbooks in a virtual environment .
ansible_python_interpreter variable needs to be set in ansible.cfg or hosts file as follows

ansible_python_interpreter="/usr/bin/env python" 

from linchpin.

samvarankashyap avatar samvarankashyap commented on June 16, 2024

PR #72 fixes the issue

from linchpin.

herlo avatar herlo commented on June 16, 2024

I don't think adding shade to the requirements.txt resolves this issue.

I've got shade installed inside the virtualenv.

(venv)[herlo@x99 venv]$ ipython
WARNING: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
Python 2.7.11 (default, Sep  2 2016, 14:51:16) 
Type "copyright", "credits" or "license" for more information.

IPython 3.2.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import shade

In [2]:

Outside the venv, you can see that shade isn't installed

[herlo@x99 ~]$ ipython
Python 2.7.11 (default, Sep  2 2016, 14:51:16) 
Type "copyright", "credits" or "license" for more information.

IPython 3.2.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import shade
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-70e47b970de7> in <module>()
----> 1 import shade

ImportError: No module named shade

I think the problem might be that I don't have linch-pin checked out into the venv. I didn't do this previously, however, and it worked just fine. That was, a centos 7.2 system, however. This one is fedora 23 x86_64.

from linchpin.

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.