• RE: Installion woes: CSD Python API 0.7.0 on a Mac

    Hello--

     

    I am having the same problem:

    Fatal Python error: PyThreadState_Get: no current thread

    Abort trap: 6

     

    Except I have installed standard python (2.7.10) locally and left the system python in place.  So it seems that another library is causing me the difficulties.  I am on OSX 10.9.5 and GCC 4.9.1.  This is the procedure I followed:

    For Python:

    ./configure --disable-framework --disable-toolbox-glue --prefix=/Users/woodg07/software/python-2.7.10/ OPT="-arch x86_64 -Wall -Wstrict-prototypes -fno-common -fPIC" --enable-unicode=ucs4 LDFLAGS="-arch x86_64" --with-ensurepip=yes

    make 

    make install

    Changed ~/.bashrc:

    export PATH=/Users/woodg07/software/python-2.7.10/bin/:$PATH

    export LD_LIBRARY_PATH=/Users/woodg07/software/python-2.7.10/lib:$LD_LIBRARY_PATH

    export PYTHONHOME=/Users/woodg07/software/python-2.7.10/

    source ~/.bashrc

    CCDC:

    pip install csd-python-api-0.7.0-linux-py2.7.tar.gz

    You are using pip version 6.1.1, however version 7.1.0 is available.

    You should consider upgrading via the 'pip install --upgrade pip' command.

    Processing ./csd-python-api-0.7.0-mac-64-py2.7.tar.gz

    Collecting lxml<4,>=3.3 (from ccdc==0.7.0)

      Downloading lxml-3.4.4.tar.gz (3.5MB)

        100% |████████████████████████████████| 3.5MB 130kB/s

    Collecting numpy<2,>=1.9 (from ccdc==0.7.0)

      Downloading numpy-1.9.2.tar.gz (4.0MB)

        100% |████████████████████████████████| 4.0MB 110kB/s

    Collecting Pillow<3,>=2.8 (from ccdc==0.7.0)

      Downloading Pillow-2.9.0.tar.gz (9.3MB)

        100% |████████████████████████████████| 9.3MB 44kB/s

    Collecting six<2,>=1.9 (from ccdc==0.7.0)

      Downloading six-1.9.0-py2.py3-none-any.whl

    Installing collected packages: lxml, numpy, Pillow, six, ccdc

      Running setup.py install for lxml

      Running setup.py install for numpy

      Running setup.py install for Pillow

      Running setup.py install for ccdc

     

    Changed ~/.bashrc:

     

    export CCDC_ISOSTAR_DATA_DIRECTORY='/Applications/CCDC//CSD_System_2015/DATA/isostar_files'

    export CSDHOME='/Applications/CCDC//CSD_System_2015/'

    export DYLD_LIBRARY_PATH=$PYTHONHOME/lib/python2.7/site-packages/ccdc/_lib:$DYLD_LIBRARY_PATH

    export DYLD_FRAMEWORK_PATH=$PYTHONHOME/lib/python2.7/site-packages/ccdc/_lib:$DYLD_FRAMEWORK_PATH