nixprime / cpsm

A CtrlP matcher, specialized for paths.
Apache License 2.0
202 stars 19 forks source link

Use with pyenv? #31

Closed okamos closed 7 years ago

okamos commented 7 years ago

Summary

I try ./install.sh with pyenv. (python 3.5.2) It seems build is success. But I can't use it. Could you help me?

Environment

Build

PY3 not specified; inferring Python version from vim
Python 3 selected
-- The C compiler identification is AppleClang 7.3.0.7030031
-- The CXX compiler identification is AppleClang 7.3.0.7030031
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Boost version: 1.61.0
-- Found the following Boost libraries:
--   program_options
-- Found PythonInterp: /Users/okamos/.pyenv/shims/python3 (found suitable version "3.5.2", minimum required is "3")
-- Found PythonInterp: /Users/okamos/.pyenv/shims/python3 (found version "3.5.2")
-- Found PythonLibs: /Users/okamos/.pyenv/versions/3.5.2/lib/python3.5/config-3.5m/libpython3.5m.a
-- Found PythonLibsCustom: TRUE
-- Optional package ICU was not found
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/okamos/.cache/dein/repos/github.com/nixprime/cpsm/build

Error

Python 3.5.2 (default, Sep 22 2016, 12:35:42)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cpsm_py
Fatal Python error: PyThreadState_Get: no current thread
zsh: abort      python3
nixprime commented 7 years ago

I was able to reproduce this. It turns out that it's because pyenv doesn't build dynamic libraries by default. Try running env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.5.2.

okamos commented 7 years ago

Thanks a lot!! It works!!