Skip to content

Add MacOS hints re python 2.7 to build instructions #472

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

Closed
lenkis opened this issue Mar 23, 2018 · 1 comment
Closed

Add MacOS hints re python 2.7 to build instructions #472

lenkis opened this issue Mar 23, 2018 · 1 comment
Assignees
Labels
low_priority [prio] Background task manual [location] Tarantool manual, no definite location

Comments

@lenkis
Copy link
Contributor

lenkis commented Mar 23, 2018

Alec Larson, [Mar 22, 2018, 7:29:33 PM]:
make test is failing, what am I missing?

env: python2: No such file or directory
make[3]: *** [test/CMakeFiles/test] Error 127
make[2]: *** [test/CMakeFiles/test.dir/all] Error 2
make[1]: *** [test/CMakeFiles/test.dir/rule] Error 2
make: *** [test] Error 2

I ran sudo pip install -r test-run/requirements.txt first

python --version returns Python 2.7.10

Alexander Turenko, [Mar 22, 2018, 7:34:06 PM]:
env: python2: No such file or directory

which python2 will give you the answer what is going on.

Alec Larson, [Mar 22, 2018, 7:34:45 PM]:
ok thanks

Alexander Turenko, [Mar 22, 2018, 7:35:24 PM]:
Maybe you need to create symlink python → python2 or python2.7 → python2.

Alec Larson, [Mar 22, 2018, 7:43:08 PM]:
Done. Do I need to use a specific version of Pip? I used pip 9.0.1 which comes with Python 3.5. And make test is now complaining about missing gevent

I think the answer is obvious. heh

Alexander Turenko, [Mar 22, 2018, 7:44:17 PM]:
test-run written on python 2, so you need to create virtualenv like so:

virtualenv -p python2.7 ../env-2.7

pip install gevent
pip install tarantool
pip install pyyaml
pip install six

Alec Larson, [Mar 22, 2018, 7:45:19 PM]:
Oddly, I have no pip for Python 2

Alexander Turenko, [Mar 22, 2018, 7:46:57 PM]:
Inside virtualenv?

Alec Larson, [Mar 22, 2018, 7:47:46 PM]:
I don't have a virtualenv command on macOS High Sierra 10.13, but I'm going to run https://bootstrap.pypa.io/get-pip.py with Python 2.7 and that should give me pip2.7

Alexander Turenko, [Mar 22, 2018, 7:49:02 PM]:
Okay, I don’t know mac os specific things.

Alec Larson, [Mar 22, 2018, 7:56:12 PM]:
MacOS "system integrity protection" made "pip2.7 install -r test-run/requirements.txt" fail.

But "pip2.7 install --user -r test-run/requirements.txt" worked good. Maybe that should go in README.MacOSX

@lenkis lenkis added 1.7 manual [location] Tarantool manual, no definite location low_priority [prio] Background task labels Mar 23, 2018
@Onvember
Copy link
Contributor

We don't use python2.7 now and this instruction has been updated recently. See #1989

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low_priority [prio] Background task manual [location] Tarantool manual, no definite location
Projects
None yet
Development

No branches or pull requests

3 participants