Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find the python executable to set env var PYTHON_BIN on Mac 10.6 #52

Closed
burkemw3 opened this issue Jun 13, 2012 · 3 comments

Comments

@burkemw3
Copy link

When I run gmvault I get the following error:

burkemw3$ gmvault sync burkemw3@gmail.com
Odd. Use default python2.7.x distribution
Error: Cannot find the python executable to set env var PYTHON_BIN.
Please check where your python binary is.

The only thing I've found like this is issue #44, but it doesn't look quite the same. I do not see any visible effect from setting the PYTHON_BIN environment variable.

I have tried various methods installing gmvault including in a virtualenv and with pip and easy_install. I have removed gmvault with pip. After removal and a locate.database update, the locate gmvault command returns nothing.

I am running Mac OS X 10.6.8 with python 2.6.1 at /usr/bin/python.

From pip, gmvault 1.6-beta is installed.

Here is some more debug info I saw requested in another issue:

burkemw3$ sh -x gmvault
+ umask 002
++ unset CDPATH
+++ dirname gmvault
++ cd .
++ pwd
+ HERE=/Users/burkemw3
++ unset CDPATH
++ cd /Users/burkemw3/..
++ pwd
+ GMVAULT_HOME=/Users
+ trap 'rm -f /tmp/gmvault.bootstrap.72868' EXIT
+ '[' -f /Users/lib/python-lib/bin/python ']'
+ '[' -f /Users/bin/python ']'
++ which python2.7
+ PYTHON_BIN=
+ echo 'Odd. Use default python2.7.x distribution'
Odd. Use default python2.7.x distribution
+ '[' '!' ']'
+ echo 'Error: Cannot find the python executable to set env var PYTHON_BIN.'
Error: Cannot find the python executable to set env var PYTHON_BIN.
+ echo 'Please check where your python binary is.'
Please check where your python binary is.
+ exit 1
+ rm -f /tmp/gmvault.bootstrap.72868
@gaubert
Copy link
Owner

gaubert commented Jun 13, 2012

@burkemw3 you could install the mac binary distribution in the mean time.
The gmvault script is looking for a standard python 2.7.x and not 2.6. I will need to modify that but in the mean time you could do it.
Change line 32 of the gmvault shell script:
https://github.com/gaubert/gmvault/blob/master/etc/scripts/gmvault#L32
to PYTHON_BIN=which python 2>/dev/null
This should work but I have not tested it.

@ghost ghost assigned gaubert Jun 13, 2012
@burkemw3
Copy link
Author

The mac binary distribution binary is running wonderfully right now without modifications. Thanks for your support and product!

@gaubert
Copy link
Owner

gaubert commented Jun 14, 2012

@burkemw3 a very happy user makes an happy creator :-)
Thanks for the support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants