OpenEdition / echo

Opinion mining about tweet and text
GNU Affero General Public License v3.0
7 stars 7 forks source link

scipy installation error #2

Open lfoppiano opened 7 years ago

lfoppiano commented 7 years ago

I'm trying to run the project and I'm having an issue installing all the dependencies of the echo submodule, in particular I'm having issue with scipy, see error in the log:

    /usr/local/bin/gfortran -Wall -g -Wall -g -undefined dynamic_lookup -bundle build/temp.macosx-10.12-x86_64-3.6/build/src.macosx-10.12-x86_64-3.6/scipy/fftpack/_fftpackmodule.o build/temp.macosx-10.12-x86_64-3.6/scipy/fftpack/src/zfft.o build/temp.macosx-10.12-x86_64-3.6/scipy/fftpack/src/drfft.o build/temp.macosx-10.12-x86_64-3.6/scipy/fftpack/src/zrfft.o build/temp.macosx-10.12-x86_64-3.6/scipy/fftpack/src/zfftnd.o build/temp.macosx-10.12-x86_64-3.6/build/src.macosx-10.12-x86_64-3.6/scipy/fftpack/src/dct.o build/temp.macosx-10.12-x86_64-3.6/build/src.macosx-10.12-x86_64-3.6/scipy/fftpack/src/dst.o build/temp.macosx-10.12-x86_64-3.6/build/src.macosx-10.12-x86_64-3.6/fortranobject.o -L/usr/local/Cellar/gcc/7.2.0/lib/gcc/7/gcc/x86_64-apple-darwin16.7.0/7.2.0 -Lbuild/temp.macosx-10.12-x86_64-3.6 -ldfftpack -lfftpack -lgfortran -o build/lib.macosx-10.12-x86_64-3.6/scipy/fftpack/_fftpack.cpython-36m-darwin.so
    ld: library not found for -lSystem
    collect2: error: ld returned 1 exit status
    ld: library not found for -lSystem
    collect2: error: ld returned 1 exit status
    error: Command "/usr/local/bin/gfortran -Wall -g -Wall -g -undefined dynamic_lookup -bundle build/temp.macosx-10.12-x86_64-3.6/build/src.macosx-10.12-x86_64-3.6/scipy/fftpack/_fftpackmodule.o build/temp.macosx-10.12-x86_64-3.6/scipy/fftpack/src/zfft.o build/temp.macosx-10.12-x86_64-3.6/scipy/fftpack/src/drfft.o build/temp.macosx-10.12-x86_64-3.6/scipy/fftpack/src/zrfft.o build/temp.macosx-10.12-x86_64-3.6/scipy/fftpack/src/zfftnd.o build/temp.macosx-10.12-x86_64-3.6/build/src.macosx-10.12-x86_64-3.6/scipy/fftpack/src/dct.o build/temp.macosx-10.12-x86_64-3.6/build/src.macosx-10.12-x86_64-3.6/scipy/fftpack/src/dst.o build/temp.macosx-10.12-x86_64-3.6/build/src.macosx-10.12-x86_64-3.6/fortranobject.o -L/usr/local/Cellar/gcc/7.2.0/lib/gcc/7/gcc/x86_64-apple-darwin16.7.0/7.2.0 -Lbuild/temp.macosx-10.12-x86_64-3.6 -ldfftpack -lfftpack -lgfortran -o build/lib.macosx-10.12-x86_64-3.6/scipy/fftpack/_fftpack.cpython-36m-darwin.so" failed with exit status 1

    ----------------------------------------
  Rolling back uninstall of scipy
Command "/Users/lfoppiano/development/inria/virtualenv3/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_j/700hscq54x522_8vg8b57srh0000gn/T/pip-build-f4wug7w5/scipy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/_j/700hscq54x522_8vg8b57srh0000gn/T/pip-85za62hl-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/lfoppiano/development/inria/virtualenv3/bin/../include/site/python3.6/scipy" failed with error code 1 in /private/var/folders/_j/700hscq54x522_8vg8b57srh0000gn/T/pip-build-f4wug7w5/scipy/

I'm using python 3.6.3 with virtualenv on macOS. I tried to install the required dependencies (apt-get install libblas-dev liblapack-dev gfortran) using brew but it didn't find any.

Any suggestion?

morban commented 7 years ago

Hi Luca, ROBOH is in python 3: https://github.com/OpenEdition/roboh/blob/master/INSTALL.txt#L5

But echo is in Python 2.7: https://github.com/OpenEdition/echo/blob/master/INSTALL.txt#L15 It is why we use a socket to exchange data between this two process (ROBOH and its submodule echo) https://github.com/OpenEdition/roboh/tree/master/echosocket