Newbie: installation difficulties [webapp2 / babel]

Joel Goldstick joel.goldstick at gmail.com
Mon Oct 7 15:31:52 EDT 2013


On Mon, Oct 7, 2013 at 3:12 PM, BobAalsma <overhaalsgang_24_bob at me.com> wrote:
> Hi,
>
> I'm following webapp2 documentation (release 2.1).
>
> I made a mistake in following the text.
> I typed "pip install babel" and this led to errors in the installation.
> As that user is not in sudo list, I changed users, typed "sudo pip install babel" and everything seemed right.
>
> Further on, the manual says "$ pybabel ...." and when I use that command, the response is "-bash: pybabel: command not found" (in both user environments).
>
> I'd like to solve this and learn at the same time ;)
>
> I'm on OS X 10.8.5, python 2.7.5.
>
> I found a "babel" in /Library/Python/2.7/site-packages.
> I found a "babel" in the response to "python -c "help('modules')" | grep babel".
> From which I conclude that babel is on the machine and is known to python.
>
> However, I gather from the webapp2 documentation that babel should also be known to the shell.
> I don't yet know how to check this, nor how to repair.
>
> find /usr -name '*babel*'
> and
> find /bin -name '*babel*'
> return no values, but
> find /Library -name '*babel*'
> does (as expected).
>
> I've tried to find similar situations in documentation, forums, Google but found nothing helpful.
> --
> https://mail.python.org/mailman/listinfo/python-list

If you can run $python babel then I think you need to set babel to be
executable to run it without invoking python first.





-- 
Joel Goldstick
http://joelgoldstick.com



More information about the Python-list mailing list