I've been struggling with the python path since I've started with ansible 
some weeks ago (which is when I started with python). I've had to 
explicitly set PYTHONPATH, but I've never really understood if I should be 
doing so.

I've just updated to ansible 1.9.2 (been using 1.9.2-rc2). But pretty much 
nothing works now. I get errors due to system modules not found. Eg,

NameError: global name 'urllib' is not defined

I've had these kinds of errors on both my mac laptop and ubuntu desktop. 

I've tried with both no PYTHONPATH set and also with 
PYTHONPATH=/usr/local/lib/python2.7/site-packages -- same error.

I upgraded on OSX using (without the flags the install failed):

sudo CFLAGS=-Qunused-arguments CPPFLAGS=-Qunused-arguments pip install 
--upgrade 
ansible

I've followed the install docs correctly (I think). Should expect these 
problems? Is python dependencies/install a pain like ruby?

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c5fb4f7e-349b-4836-b943-7e8d739862a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to