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

Windows Installation Error #20

Open
jmrichardson opened this issue Feb 7, 2021 · 6 comments
Open

Windows Installation Error #20

jmrichardson opened this issue Feb 7, 2021 · 6 comments

Comments

@jmrichardson
Copy link

Describe the bug

(tuneta) D:\Projects\fast-ta>pip install fast-ta
Collecting fast-ta
  Using cached fast_ta-0.1.3.tar.gz (44 kB)
Requirement already satisfied: numpy in d:\anaconda3\envs\tuneta\lib\site-packages (from fast-ta) (1.19.5)
Building wheels for collected packages: fast-ta
  Building wheel for fast-ta (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\Anaconda3\envs\tuneta\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\john\\AppData\\Local\\Temp\\pip-install-mcvpukg_\\fast-ta_a92c79755f9444c59ad02c9d9bb93c01\\setup.py'"'"'; __file__='"'"'C:\\Users\\john\\AppData\\Local\\Temp\\pip-install-mcvpukg_\\fast-ta_a92c79755f9444c59ad02c9d9bb93c01\\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 'C:\Users\john\AppData\Local\Temp\pip-wheel-4aoiztbx'
       cwd: C:\Users\john\AppData\Local\Temp\pip-install-mcvpukg_\fast-ta_a92c79755f9444c59ad02c9d9bb93c01\
  Complete output (53 lines):
  D:\Anaconda3\envs\tuneta\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'license_file'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\fast_ta
  copying fast_ta\__init__.py -> build\lib.win-amd64-3.7\fast_ta
  running build_ext
  building 'fast_ta/momentum' extension
  creating build\temp.win-amd64-3.7
  creating build\temp.win-amd64-3.7\Release
  creating build\temp.win-amd64-3.7\Release\fast_ta
  creating build\temp.win-amd64-3.7\Release\fast_ta\src
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\Anaconda3\envs\tuneta\include -ID:\Anaconda3\envs\tuneta\include -ID:\Anaconda3\envs\tuneta\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcfast_ta/src/momentum.c /Fobuild\temp.win-amd64-3.7\Release\fast_ta/src/momentum.obj -mavx
  cl : Command line warning D9002 : ignoring unknown option '-mavx'
  momentum.c
  fast_ta/src/momentum.c(38): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
  fast_ta/src/momentum.c(108): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
  fast_ta/src/momentum.c(177): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
  fast_ta/src/momentum.c(231): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
  fast_ta/src/momentum.c(305): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
  fast_ta/src/momentum.c(383): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
  fast_ta/src/momentum.c(469): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
  fast_ta/src/momentum.c(553): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
  C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\Anaconda3\envs\tuneta\include -ID:\Anaconda3\envs\tuneta\include -ID:\Anaconda3\envs\tuneta\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcfast_ta/src/momentum_backend.c /Fobuild\temp.win-amd64-3.7\Release\fast_ta/src/momentum_backend.obj -mavx
  cl : Command line warning D9002 : ignoring unknown option '-mavx'
  momentum_backend.c
  fast_ta/src/momentum_backend.c(61): error C2059: syntax error: '{'
  fast_ta/src/momentum_backend.c(61): error C2065: 'gain': undeclared identifier
  fast_ta/src/momentum_backend.c(61): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
  fast_ta/src/momentum_backend.c(61): error C2143: syntax error: missing ';' before ')'
  fast_ta/src/momentum_backend.c(63): error C2059: syntax error: 'else'
  fast_ta/src/momentum_backend.c(74): error C2065: 'prelim': undeclared identifier
  fast_ta/src/momentum_backend.c(74): error C2065: 'window_size': undeclared identifier
  fast_ta/src/momentum_backend.c(74): error C2099: initializer is not a constant
  fast_ta/src/momentum_backend.c(75): error C2059: syntax error: 'for'
  fast_ta/src/momentum_backend.c(75): error C2143: syntax error: missing '{' before '<'
  fast_ta/src/momentum_backend.c(75): error C2059: syntax error: '<'
  fast_ta/src/momentum_backend.c(75): error C2143: syntax error: missing '{' before '++'
  fast_ta/src/momentum_backend.c(75): error C2059: syntax error: '++'
  fast_ta/src/momentum_backend.c(75): error C2059: syntax error: ')'
  fast_ta/src/momentum_backend.c(81): error C2059: syntax error: 'if'
  fast_ta/src/momentum_backend.c(85): error C2059: syntax error: 'return'
  fast_ta/src/momentum_backend.c(86): error C2059: syntax error: '}'
  fast_ta/src/momentum_backend.c(190): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
  fast_ta/src/momentum_backend.c(191): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
  fast_ta/src/momentum_backend.c(386): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
  fast_ta/src/momentum_backend.c(391): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
  fast_ta/src/momentum_backend.c(397): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
  fast_ta/src/momentum_backend.c(400): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for fast-ta
  Running setup.py clean for fast-ta
Failed to build fast-ta
Installing collected packages: fast-ta
    Running setup.py install for fast-ta ... error
    ERROR: Command errored out with exit status 1:
     command: 'D:\Anaconda3\envs\tuneta\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\john\\AppData\\Local\\Temp\\pip-install-mcvpukg_\\fast-ta_a92c79755f9444c59ad02c9d9bb93c01\\setup.py'"'"'; __file__='"'"'C:\\Users\\john\\AppData\\Local\\Temp\\pip-install-mcvpukg_\\fast-ta_a92c79755f9444c59ad02c9d9bb93c01\\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\john\AppData\Local\Temp\pip-record-1afrvb4g\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda3\envs\tuneta\Include\fast-ta'
         cwd: C:\Users\john\AppData\Local\Temp\pip-install-mcvpukg_\fast-ta_a92c79755f9444c59ad02c9d9bb93c01\
    Complete output (53 lines):
    D:\Anaconda3\envs\tuneta\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'license_file'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\fast_ta
    copying fast_ta\__init__.py -> build\lib.win-amd64-3.7\fast_ta
    running build_ext
    building 'fast_ta/momentum' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    creating build\temp.win-amd64-3.7\Release\fast_ta
    creating build\temp.win-amd64-3.7\Release\fast_ta\src
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\Anaconda3\envs\tuneta\include -ID:\Anaconda3\envs\tuneta\include -ID:\Anaconda3\envs\tuneta\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcfast_ta/src/momentum.c /Fobuild\temp.win-amd64-3.7\Release\fast_ta/src/momentum.obj -mavx
    cl : Command line warning D9002 : ignoring unknown option '-mavx'
    momentum.c
    fast_ta/src/momentum.c(38): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
    fast_ta/src/momentum.c(108): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
    fast_ta/src/momentum.c(177): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
    fast_ta/src/momentum.c(231): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
    fast_ta/src/momentum.c(305): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
    fast_ta/src/momentum.c(383): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
    fast_ta/src/momentum.c(469): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
    fast_ta/src/momentum.c(553): warning C4244: 'initializing': conversion from 'npy_intp' to 'int', possible loss of data
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -ID:\Anaconda3\envs\tuneta\include -ID:\Anaconda3\envs\tuneta\include -ID:\Anaconda3\envs\tuneta\lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.25.28610\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcfast_ta/src/momentum_backend.c /Fobuild\temp.win-amd64-3.7\Release\fast_ta/src/momentum_backend.obj -mavx
    cl : Command line warning D9002 : ignoring unknown option '-mavx'
    momentum_backend.c
    fast_ta/src/momentum_backend.c(61): error C2059: syntax error: '{'
    fast_ta/src/momentum_backend.c(61): error C2065: 'gain': undeclared identifier
    fast_ta/src/momentum_backend.c(61): warning C4244: '=': conversion from 'double' to 'int', possible loss of data
    fast_ta/src/momentum_backend.c(61): error C2143: syntax error: missing ';' before ')'
    fast_ta/src/momentum_backend.c(63): error C2059: syntax error: 'else'
    fast_ta/src/momentum_backend.c(74): error C2065: 'prelim': undeclared identifier
    fast_ta/src/momentum_backend.c(74): error C2065: 'window_size': undeclared identifier
    fast_ta/src/momentum_backend.c(74): error C2099: initializer is not a constant
    fast_ta/src/momentum_backend.c(75): error C2059: syntax error: 'for'
    fast_ta/src/momentum_backend.c(75): error C2143: syntax error: missing '{' before '<'
    fast_ta/src/momentum_backend.c(75): error C2059: syntax error: '<'
    fast_ta/src/momentum_backend.c(75): error C2143: syntax error: missing '{' before '++'
    fast_ta/src/momentum_backend.c(75): error C2059: syntax error: '++'
    fast_ta/src/momentum_backend.c(75): error C2059: syntax error: ')'
    fast_ta/src/momentum_backend.c(81): error C2059: syntax error: 'if'
    fast_ta/src/momentum_backend.c(85): error C2059: syntax error: 'return'
    fast_ta/src/momentum_backend.c(86): error C2059: syntax error: '}'
    fast_ta/src/momentum_backend.c(190): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
    fast_ta/src/momentum_backend.c(191): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
    fast_ta/src/momentum_backend.c(386): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
    fast_ta/src/momentum_backend.c(391): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
    fast_ta/src/momentum_backend.c(397): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
    fast_ta/src/momentum_backend.c(400): warning C4244: 'function': conversion from 'double' to 'float', possible loss of data
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.25.28610\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\Anaconda3\envs\tuneta\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\john\\AppData\\Local\\Temp\\pip-install-mcvpukg_\\fast-ta_a92c79755f9444c59ad02c9d9bb93c01\\setup.py'"'"'; __file__='"'"'C:\\Users\\john\\AppData\\Local\\Temp\\pip-install-mcvpukg_\\fast-ta_a92c79755f9444c59ad02c9d9bb93c01\\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\john\AppData\Local\Temp\pip-record-1afrvb4g\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\Anaconda3\envs\tuneta\Include\fast-ta' Check the logs for full command output.

To Reproduce
pip install fast-ta

Expected behavior
Install

Desktop (please complete the following information):
Windows 10

Additional context

Thanks for any help

@cristian-bicheru cristian-bicheru pinned this issue Feb 11, 2021
@jmrichardson
Copy link
Author

Is this repo active anymore?

@CalderWhite
Copy link
Collaborator

@jmrichardson Still active. Sorry for no response. @cristian-bicheru said he would handle this issue.

@jmrichardson
Copy link
Author

Perfect! I am hoping to add fast-ta to tuneta. Thank you

@cristian-bicheru
Copy link
Owner

Yup, taking a look right now. I think the repo was left in a half broken state so it requires some touch ups. I'll get it up and running ASAP.

@cristian-bicheru
Copy link
Owner

Yeah it looks like we haven't done any testing on the MSVC compiler. I've got the repo cleaned up so I'll see if I can reproduce this and update this issue when a fix is available.

@cristian-bicheru
Copy link
Owner

Issue was reproduced, I have it fixed on the MSVC branch. I'll merge the branches and get the API up-to-date with TA-lib, then we should be good to go for a major release.

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