mattjj / pyhsmm

MIT License
548 stars 173 forks source link

Can't install library on macOS 10.14.5 #101

Open gavit-uc3m opened 5 years ago

gavit-uc3m commented 5 years ago

Hi all,

I have spent a lot of hours trying to install this library in my computer. I have already tried all the solutions described in the issues of the other users but I'm still not able to make the library work.

I'm using macOS Mojave (version 10.14.5) with python 3.7 and clang:

Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix

When I do pip install --edit . I get:

Installing collected packages: pyhsmm
  Found existing installation: pyhsmm 0.1.6
    Can't uninstall 'pyhsmm'. No files were found to uninstall.
  Running setup.py develop for pyhsmm
    ERROR: Command errored out with exit status 1:
     command: '/Users/gavit/Documents/Master/TFM multimedia/venv/bin/python3' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/gavit/Documents/Master/TFM multimedia/venv/pyhsmm/dist/pyhsmm-0.1.6/setup.py'"'"'; __file__='"'"'/Users/gavit/Documents/Master/TFM multimedia/venv/pyhsmm/dist/pyhsmm-0.1.6/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
         cwd: /Users/gavit/Documents/Master/TFM multimedia/venv/pyhsmm/dist/pyhsmm-0.1.6/
    Complete output (19 lines):
    running develop
    running egg_info
    writing pyhsmm.egg-info/PKG-INFO
    writing dependency_links to pyhsmm.egg-info/dependency_links.txt
    writing requirements to pyhsmm.egg-info/requires.txt
    writing top-level names to pyhsmm.egg-info/top_level.txt
    reading manifest file 'pyhsmm.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    warning: no files found matching '*.c' under directory 'pyhsmm'
    writing manifest file 'pyhsmm.egg-info/SOURCES.txt'
    running build_ext
    building 'pyhsmm.internals.hmm_messages_interface' extension
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/gavit/anaconda3/include -arch x86_64 -I/Users/gavit/anaconda3/include -arch x86_64 -Ideps/ -Ipyhsmm/internals -I/Users/gavit/anaconda3/include/python3.7m -I/Users/gavit/Documents/Master/TFM multimedia/venv/lib/python3.7/site-packages/numpy/core/include -c pyhsmm/internals/hmm_messages_interface.cpp -o build/temp.macosx-10.7-x86_64-3.7/pyhsmm/internals/hmm_messages_interface.o -std=c++11 -O3 -w -DNDEBUG -DHMM_TEMPS_ON_HEAP
    cc1plus: warning: command line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++
    g++ -bundle -undefined dynamic_lookup -L/Users/gavit/anaconda3/lib -arch x86_64 -L/Users/gavit/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/pyhsmm/internals/hmm_messages_interface.o -o /Users/gavit/Documents/Master/TFM multimedia/venv/pyhsmm/dist/pyhsmm-0.1.6/pyhsmm/internals/hmm_messages_interface.cpython-37m-darwin.so
    clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated]
    ld: library not found for -lstdc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'g++' failed with exit status 1
    ----------------------------------------
  ERROR: Can't roll back pyhsmm; was not uninstalled
ERROR: Command errored out with exit status 1: '/Users/gavit/Documents/Master/TFM multimedia/venv/bin/python3' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/gavit/Documents/Master/TFM multimedia/venv/pyhsmm/dist/pyhsmm-0.1.6/setup.py'"'"'; __file__='"'"'/Users/gavit/Documents/Master/TFM multimedia/venv/pyhsmm/dist/pyhsmm-0.1.6/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

I have tried to simply do pip install pyhsmm and add the library to the PYTHONPATH but because it is not properly installed I get ModuleNotFoundError: No module named 'pyhsmm.internals.hsmm_messages_interface' when I try to execute the examples.

Any idea of what is going wrong? Any help would be much appreciated.

xhevahir commented 4 years ago

On Ubuntu 20.04 I too am getting the latter error ("No module named 'pyhsmm.internals.hsmm_messages_interface') when I try to run an example script.

dawsonv commented 2 years ago

Any updates on this? I'm running into the same issue