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 cython build fails on madmon.ml.nn.layers layers.c #13

Open
tobidelbruck opened this issue Jan 29, 2023 · 1 comment
Open

Windows cython build fails on madmon.ml.nn.layers layers.c #13

tobidelbruck opened this issue Jan 29, 2023 · 1 comment

Comments

@tobidelbruck
Copy link

Windows cython build fails with error below, any idea what to do here?
Thanks!
Tobi

      building 'madmom.ml.nn.layers' extension
      creating build\temp.win-amd64-cpython-310\Release\madmom\ml\nn
      "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IF:\tobi\envs\CartPoleSimulation3\lib\sit
e-packages\numpy\core\include -IF:\tobi\envs\CartPoleSimulation3\include -IF:\tobi\envs\CartPoleSimulation3\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14
.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\P
rogram 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\u
m" "-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" /Tcmadmom/ml/nn/layers.c /Fobuild\temp.win-amd64-cp
ython-310\Release\madmom/ml/nn/layers.obj
      layers.c
      F:\tobi\envs\CartPoleSimulation3\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_A
PI NPY_1_7_API_VERSION
      madmom/ml/nn/layers.c(17126): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
      madmom/ml/nn/layers.c(17142): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
      madmom/ml/nn/layers.c(17426): warning C4020: 'function through pointer': too many actual parameters
      madmom/ml/nn/layers.c(17923): warning C4293: '<<': shift count negative or too big, undefined behavior
      madmom/ml/nn/layers.c(17933): warning C4293: '<<': shift count negative or too big, undefined behavior
      madmom/ml/nn/layers.c(17943): warning C4293: '<<': shift count negative or too big, undefined behavior
      madmom/ml/nn/layers.c(18807): error C2039: 'exc_type': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18808): error C2039: 'exc_value': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18809): error C2039: 'exc_traceback': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18816): error C2039: 'exc_type': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18817): error C2039: 'exc_value': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18818): error C2039: 'exc_traceback': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18819): error C2039: 'exc_type': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18820): error C2039: 'exc_value': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18821): error C2039: 'exc_traceback': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18880): error C2039: 'exc_value': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(18881): error C2039: 'exc_traceback': is not a member of '_ts'
      F:\tobi\envs\CartPoleSimulation3\include\cpython/pystate.h(60): note: see declaration of '_ts'
      madmom/ml/nn/layers.c(19872): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
      madmom/ml/nn/layers.c(19878): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
@tobidelbruck
Copy link
Author

I managed to install latest madmom using pip install git+https://github.com/CPJKU/madmom but then trying to pip install audioowl and pip install git+https://github.com/dodiku/AudioOwl still both fail because audioowl wants a specific version of madmom...
I think I have to give up, too complicated for me.

AudioOwl looks very useful! Thanks for providing it.

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

1 participant