Youcompleteme: You must use a python compiled with --enable-shared or --enable-framework (and thus a /usr/local/lib/libpython3.3m.dylib library

Created on 17 Mar 2016  Â·  4Comments  Â·  Source: ycm-core/YouCompleteMe

Issue Prelude

my vim history..
*
Searching for python libraries...
Searching for python with prefix: /usr/local and lib python3.3m:
ERROR: You must use a python compiled with --enable-shared or --enable-framework (and thus a /usr/local/lib/libpython3.3m.dylib library) on OS X
Traceback (most recent call last):
File "./install.py", line 32, in
Main()
File "./install.py", line 21, in Main
subprocess.check_call( [ python_binary, build_file ] + sys.argv[1:] )
File "/usr/local/lib/python3.3/subprocess.py", line 544, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '/Users/HanwoolKim/some/path/here/youcompleteme/third_party/ycmd/build.py']' returned non-zero exit status 1
*

i think the reason it happen is python porting..
how to overcome this problem?

Most helpful comment

Closing as per @puremourning.

All 4 comments

How did you install Python?

If using homebrew or pyenv search the issue tracker for posts by me related to --enable-framework. Sorry I'm on vacation so can't find it myself.

If building Python manually, pass --enable-framework to configure.

On 17 Mar 2016, at 11:53, hanwool kim [email protected] wrote:

Issue Prelude

my vim history..
*
Searching for python libraries...
Searching for python with prefix: /usr/local and lib python3.3m:
ERROR: You must use a python compiled with --enable-shared or --enable-framework (and thus a /usr/local/lib/libpython3.3m.dylib library) on OS X
Traceback (most recent call last):
File "./install.py", line 32, in
Main()
File "./install.py", line 21, in Main
subprocess.check_call( [ python_binary, build_file ] + sys.argv[1:] )
File "/usr/local/lib/python3.3/subprocess.py", line 544, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '/Users/HanwoolKim/some/path/here/youcompleteme/third_party/ycmd/build.py']' returned non-zero exit status 1
*

i think the reason it happen is python porting..
how to overcome this problem?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

i usually install python through pyenv,
and now...
i can`t not find python old version (2.*)
i think i uninstall or remove simbolic link,

is it problem to install YCM????
if does, how to solve?

You need to specify --enable-framework when you build python. if you're using pyenv, then you need to do

export PYTHON_CONFIGURE_OPTS="--enable-framework"

Then install python using pyenv install .... You'll need to re-install it with that env var set.

I have pushed a PR to add something to the README.

Closing as per @puremourning.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jzarecta picture Jzarecta  Â·  4Comments

f-koehler picture f-koehler  Â·  5Comments

filmil picture filmil  Â·  3Comments

beojan picture beojan  Â·  4Comments

jsdevel picture jsdevel  Â·  4Comments