trouble with lib/ (homebrew python with -t lib) and Google simpleauth package

42 views
Skip to first unread message

Dewey Gaedcke

unread,
Mar 9, 2016, 11:10:31 AM3/9/16
to Ferris Framework
I've been having all sorts of trouble getting Google simpleauth package installed in my app/lib/ directory

It seems from in a homebrew installed python, the pip executable does not support the "-t lib" option.....so all my packages have been going to the cellar and not the lib/ directory....

So I've been chasing my tail for quite a while.....I didn't catch it until I totally started with an empty lib folder...

I was seeing ez_setup missing errors at first, but when I got past that, I started seeing this:

File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/install.py", line 264, in finalize_options


    "must supply either home or prefix/exec-prefix -- not both"


DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both


and also noticed that my lib/ directory was empty of even the packages that pip said were installed.....

Does anyone have any recommended reading material for the proper way to set up Python for use with app-engine, endpoints, ferris3, etc....

Jonathan Parrott

unread,
Mar 9, 2016, 12:00:33 PM3/9/16
to Dewey Gaedcke, Ferris Framework

Dewey Gaedcke

unread,
Mar 9, 2016, 12:53:42 PM3/9/16
to Ferris Framework, de...@pathoz.com
So even with reading that link & pointing --prefix to my lib/ directory, I'm still having all sorts of problems.....
Some packages require pip, some can only be found and successfully built with easy_install....

and most troubling of all:

  • from ferris3 import endpoints
  • ImportError: No module named ferris3

even tho I can see ferris3 right there in my lib/ dir


Should I just abandon Homebrew and install Python directly??

Jonathan Parrott

unread,
Mar 9, 2016, 1:17:47 PM3/9/16
to Dewey Gaedcke, Ferris Framework

You don't need to point it to lib, just temporary create the distutils.cfg file.

Even with homebrew Python installed, you can still use system Python/pip by invoking it's full path. (Pyenv can help with this)

Reply all
Reply to author
Forward
0 new messages