Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hawkeslib installation error #17

Open
KattyKhromenko opened this issue Apr 22, 2021 · 3 comments
Open

Hawkeslib installation error #17

KattyKhromenko opened this issue Apr 22, 2021 · 3 comments

Comments

@KattyKhromenko
Copy link

Hi, @canerturkmen!
I have encountered with the error trying to install hawkeslib. Could you, please, give a clue how to solve it? Thanks in advance!
The error is below:
Running setup.py install for hawkeslib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-8ev3_4tx\hawkeslib_8961f264785c46b28d1a7f8704525c8e\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-8ev3_4tx\hawkeslib_8961f264785c46b28d1a7f8704525c8e\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-nh9xizz0\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\user\appdata\local\programs\python\python38\Include\hawkeslib'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-8ev3_4tx\hawkeslib_8961f264785c46b28d1a7f8704525c8e
Complete output (38 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\hawkeslib
copying hawkeslib_init_.py -> build\lib.win-amd64-3.8\hawkeslib
creating build\lib.win-amd64-3.8\hawkeslib\model
copying hawkeslib\model\model.py -> build\lib.win-amd64-3.8\hawkeslib\model
copying hawkeslib\model\mv_exp.py -> build\lib.win-amd64-3.8\hawkeslib\model
copying hawkeslib\model\poisson.py -> build\lib.win-amd64-3.8\hawkeslib\model
copying hawkeslib\model\uv_bayes.py -> build\lib.win-amd64-3.8\hawkeslib\model
copying hawkeslib\model\uv_exp.py -> build\lib.win-amd64-3.8\hawkeslib\model
copying hawkeslib\model_init_.py -> build\lib.win-amd64-3.8\hawkeslib\model
creating build\lib.win-amd64-3.8\hawkeslib\model\c
copying hawkeslib\model\c_init_.py -> build\lib.win-amd64-3.8\hawkeslib\model\c
creating build\lib.win-amd64-3.8\hawkeslib\util
copying hawkeslib\util\multitrace.py -> build\lib.win-amd64-3.8\hawkeslib\util
copying hawkeslib\util_init_.py -> build\lib.win-amd64-3.8\hawkeslib\util
running build_ext
building 'hawkeslib.model.c.c_uv_exp' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\hawkeslib
creating build\temp.win-amd64-3.8\Release\hawkeslib\model
creating build\temp.win-amd64-3.8\Release\hawkeslib\model\c
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\user\appdata\local\programs\python\python38\lib\site-packages\numpy\core\include -Ic:\users\user\appdata\local\programs\python\python38\include -Ic:\users\user\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tphawkeslib/model/c/c_uv_exp.cpp /Fobuild\temp.win-amd64-3.8\Release\hawkeslib/model/c/c_uv_exp.obj -O3 -march=native
cl: Є®¬ ­¤­ п бва®Є  warning D9002: Їа®ЇгбЄ ­ҐЁ§ўҐбв­®Ј® Ї а ¬Ґва  "-O3"
cl: Є®¬ ­¤­ п бва®Є  warning D9002: Їа®ЇгбЄ ­ҐЁ§ўҐбв­®Ј® Ї а ¬Ґва  "-march=native"
c_uv_exp.cpp
c:\users\user\appdata\local\programs\python\python38\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
hawkeslib/model/c/c_uv_exp.cpp(2229): warning C4244: =: ЇаҐ®Ўа §®ў ­ЁҐ "npy_intp" ў "int", ў®§¬®¦­  Ї®вҐап ¤ ­­ле
hawkeslib/model/c/c_uv_exp.cpp(2551): warning C4244: =: ЇаҐ®Ўа §®ў ­ЁҐ "npy_intp" ў "int", ў®§¬®¦­  Ї®вҐап ¤ ­­ле
hawkeslib/model/c/c_uv_exp.cpp(2976): warning C4244: =: ЇаҐ®Ўа §®ў ­ЁҐ "Py_ssize_t" ў "int", ў®§¬®¦­  Ї®вҐап ¤ ­­ле
hawkeslib/model/c/c_uv_exp.cpp(5039): warning C4244: =: ЇаҐ®Ўа §®ў ­ЁҐ "Py_ssize_t" ў "int", ў®§¬®¦­  Ї®вҐап ¤ ­­ле
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\users\user\appdata\local\programs\python\python38\libs /LIBPATH:c:\users\user\appdata\local\programs\python\python38\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" m.lib /EXPORT:PyInit_c_uv_exp build\temp.win-amd64-3.8\Release\hawkeslib/model/c/c_uv_exp.obj /OUT:build\lib.win-amd64-3.8\hawkeslib\model\c\c_uv_exp.cp38-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.8\Release\hawkeslib/model/c\c_uv_exp.cp38-win_amd64.lib
LINK : fatal error LNK1181: ­Ґ г¤ Ґвбп ®вЄалвм ўе®¤­®© д ©« "m.lib"
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\link.exe' failed with exit status 1181
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\user\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\User\AppData\Local\Temp\pip-install-8ev3_4tx\hawkeslib_8961f264785c46b28d1a7f8704525c8e\setup.py'"'"'; file='"'"'C:\Users\User\AppData\Local\Temp\pip-install-8ev3_4tx\hawkeslib_8961f264785c46b28d1a7f8704525c8e\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-nh9xizz0\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\user\appdata\local\programs\python\python38\Include\hawkeslib' Check the logs for full command output.

@canerturkmen
Copy link
Owner

canerturkmen commented Apr 22, 2021

Hello @KattyKhromenko , thanks for raising this issue. Looks like you're running Windows but this line does not seem to be kicking in. Maybe can you comment out these portions and force it to run the portion for windows?

Also, can you also please run:

python -c 'import platform; print(platform.system())'

and paste the result?

In any case, I don't actively maintain this library unfortunately. Among other alternatives I could cite pyhawkes and tick.

@BEbillionaireUSD
Copy link

I have a similar issue when installing the library.
When running pip install hawkeslib I got

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting hawkeslib
  Using cached hawkeslib-0.2.2.tar.gz (17 kB)
Requirement already satisfied: numpy>=1.14 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from hawkeslib) (1.16.6)
Requirement already satisfied: Cython>=0.28 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from hawkeslib) (0.29.28)
Requirement already satisfied: scipy>=1.1 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from hawkeslib) (1.2.3)
Requirement already satisfied: numdifftools>=0.9 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from hawkeslib) (0.9.40)
Requirement already satisfied: statsmodels>=0.6 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from numdifftools>=0.9->hawkeslib) (0.11.0)
Requirement already satisfied: algopy>=0.4 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from numdifftools>=0.9->hawkeslib) (0.5.7)
Requirement already satisfied: patsy>=0.5 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from statsmodels>=0.6->numdifftools>=0.9->hawkeslib) (0.5.2)
Requirement already satisfied: pandas>=0.21 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from statsmodels>=0.6->numdifftools>=0.9->hawkeslib) (0.24.2)
Requirement already satisfied: six in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from patsy>=0.5->statsmodels>=0.6->numdifftools>=0.9->hawkeslib) (1.16.0)
Requirement already satisfied: python-dateutil>=2.5.0 in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from pandas>=0.21->statsmodels>=0.6->numdifftools>=0.9->hawkeslib) (2.8.2)
Requirement already satisfied: pytz>=2011k in /opt/anaconda3/envs/env-27/lib/python2.7/site-packages (from pandas>=0.21->statsmodels>=0.6->numdifftools>=0.9->hawkeslib) (2022.1)
Building wheels for collected packages: hawkeslib
  Building wheel for hawkeslib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/anaconda3/envs/env-27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-install-21E4sO/hawkeslib/setup.py'"'"'; __file__='"'"'/private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-install-21E4sO/hawkeslib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-wheel-COzSRs
       cwd: /private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-install-21E4sO/hawkeslib/
  Complete output (39 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-2.7
  creating build/lib.macosx-10.7-x86_64-2.7/hawkeslib
  copying hawkeslib/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib
  creating build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
  copying hawkeslib/model/poisson.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
  copying hawkeslib/model/mv_exp.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
  copying hawkeslib/model/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
  copying hawkeslib/model/uv_bayes.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
  copying hawkeslib/model/model.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
  copying hawkeslib/model/uv_exp.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
  creating build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model/c
  copying hawkeslib/model/c/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model/c
  creating build/lib.macosx-10.7-x86_64-2.7/hawkeslib/util
  copying hawkeslib/util/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/util
  copying hawkeslib/util/multitrace.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/util
  running build_ext
  building 'hawkeslib.model.c.c_uv_exp' extension
  creating build/temp.macosx-10.7-x86_64-2.7
  creating build/temp.macosx-10.7-x86_64-2.7/hawkeslib
  creating build/temp.macosx-10.7-x86_64-2.7/hawkeslib/model
  creating build/temp.macosx-10.7-x86_64-2.7/hawkeslib/model/c
  gcc -fno-strict-aliasing -I/opt/anaconda3/envs/env-27/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include -I/opt/anaconda3/envs/env-27/include/python2.7 -c hawkeslib/model/c/c_uv_exp.cpp -o build/temp.macosx-10.7-x86_64-2.7/hawkeslib/model/c/c_uv_exp.o -O3 -march=native
  clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
  In file included from hawkeslib/model/c/c_uv_exp.cpp:728:
  In file included from /opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
  In file included from /opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
  In file included from /opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:
  /opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
  #warning "Using deprecated NumPy API, disable it with " \
   ^
  hawkeslib/model/c/c_uv_exp.cpp:732:10: fatal error: 'ios' file not found
  #include "ios"
           ^~~~~
  1 warning and 1 error generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for hawkeslib
  Running setup.py clean for hawkeslib
Failed to build hawkeslib
Installing collected packages: hawkeslib
    Running setup.py install for hawkeslib ... error
    ERROR: Command errored out with exit status 1:
     command: /opt/anaconda3/envs/env-27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-install-21E4sO/hawkeslib/setup.py'"'"'; __file__='"'"'/private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-install-21E4sO/hawkeslib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-record-u_KdB8/install-record.txt --single-version-externally-managed --compile --install-headers /opt/anaconda3/envs/env-27/include/python2.7/hawkeslib
         cwd: /private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-install-21E4sO/hawkeslib/
    Complete output (39 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-2.7
    creating build/lib.macosx-10.7-x86_64-2.7/hawkeslib
    copying hawkeslib/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib
    creating build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
    copying hawkeslib/model/poisson.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
    copying hawkeslib/model/mv_exp.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
    copying hawkeslib/model/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
    copying hawkeslib/model/uv_bayes.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
    copying hawkeslib/model/model.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
    copying hawkeslib/model/uv_exp.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model
    creating build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model/c
    copying hawkeslib/model/c/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/model/c
    creating build/lib.macosx-10.7-x86_64-2.7/hawkeslib/util
    copying hawkeslib/util/__init__.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/util
    copying hawkeslib/util/multitrace.py -> build/lib.macosx-10.7-x86_64-2.7/hawkeslib/util
    running build_ext
    building 'hawkeslib.model.c.c_uv_exp' extension
    creating build/temp.macosx-10.7-x86_64-2.7
    creating build/temp.macosx-10.7-x86_64-2.7/hawkeslib
    creating build/temp.macosx-10.7-x86_64-2.7/hawkeslib/model
    creating build/temp.macosx-10.7-x86_64-2.7/hawkeslib/model/c
    gcc -fno-strict-aliasing -I/opt/anaconda3/envs/env-27/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include -I/opt/anaconda3/envs/env-27/include/python2.7 -c hawkeslib/model/c/c_uv_exp.cpp -o build/temp.macosx-10.7-x86_64-2.7/hawkeslib/model/c/c_uv_exp.o -O3 -march=native
    clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
    In file included from hawkeslib/model/c/c_uv_exp.cpp:728:
    In file included from /opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
    In file included from /opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
    In file included from /opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1822:
    /opt/anaconda3/envs/env-27/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API, disable it with "          "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
    #warning "Using deprecated NumPy API, disable it with " \
     ^
    hawkeslib/model/c/c_uv_exp.cpp:732:10: fatal error: 'ios' file not found
    #include "ios"
             ^~~~~
    1 warning and 1 error generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /opt/anaconda3/envs/env-27/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-install-21E4sO/hawkeslib/setup.py'"'"'; __file__='"'"'/private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-install-21E4sO/hawkeslib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/06/gfpnlzyx74q6gth63xx9421w0000gn/T/pip-record-u_KdB8/install-record.txt --single-version-externally-managed --compile --install-headers /opt/anaconda3/envs/env-27/include/python2.7/hawkeslib Check the logs for full command output.

@BEbillionaireUSD
Copy link

I also tried python -c 'import platform; print(platform.system())' and it outputs Darwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants