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

Does not install on MacOsX Mavericks. #2

Closed
lajash opened this issue Sep 13, 2014 · 13 comments
Closed

Does not install on MacOsX Mavericks. #2

lajash opened this issue Sep 13, 2014 · 13 comments

Comments

@lajash
Copy link

lajash commented Sep 13, 2014

Installing from source on Mavericks ( using setup.py with python3.4) results in the following errors :
running install
running bdist_egg
running egg_info
writing top-level names to Gammatone.egg-info/top_level.txt
writing requirements to Gammatone.egg-info/requires.txt
writing dependency_links to Gammatone.egg-info/dependency_links.txt
writing entry points to Gammatone.egg-info/entry_points.txt
writing Gammatone.egg-info/PKG-INFO
reading manifest file 'Gammatone.egg-info/SOURCES.txt'
writing manifest file 'Gammatone.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.6-intel/egg
running install_lib
running build_py
creating build/bdist.macosx-10.6-intel/egg
creating build/bdist.macosx-10.6-intel/egg/gammatone
copying build/lib/gammatone/init.py -> build/bdist.macosx-10.6-intel/egg/gammatone
copying build/lib/gammatone/main.py -> build/bdist.macosx-10.6-intel/egg/gammatone
copying build/lib/gammatone/fftweight.py -> build/bdist.macosx-10.6-intel/egg/gammatone
copying build/lib/gammatone/filters.py -> build/bdist.macosx-10.6-intel/egg/gammatone
copying build/lib/gammatone/gtgram.py -> build/bdist.macosx-10.6-intel/egg/gammatone
copying build/lib/gammatone/plot.py -> build/bdist.macosx-10.6-intel/egg/gammatone
creating build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/init.py -> build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/test_cfs.py -> build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/test_erb_space.py -> build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/test_fft_gtgram.py -> build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/test_fft_weights.py -> build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/test_filterbank.py -> build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/test_gammatone_filters.py -> build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/test_gammatonegram.py -> build/bdist.macosx-10.6-intel/egg/tests
copying build/lib/tests/test_specgram.py -> build/bdist.macosx-10.6-intel/egg/tests
byte-compiling build/bdist.macosx-10.6-intel/egg/gammatone/init.py to init.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/gammatone/main.py to main.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/gammatone/fftweight.py to fftweight.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/gammatone/filters.py to filters.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/gammatone/gtgram.py to gtgram.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/gammatone/plot.py to plot.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/init.py to init.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/test_cfs.py to test_cfs.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/test_erb_space.py to test_erb_space.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/test_fft_gtgram.py to test_fft_gtgram.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/test_fft_weights.py to test_fft_weights.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/test_filterbank.py to test_filterbank.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/test_gammatone_filters.py to test_gammatone_filters.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/test_gammatonegram.py to test_gammatonegram.cpython-34.pyc
byte-compiling build/bdist.macosx-10.6-intel/egg/tests/test_specgram.py to test_specgram.cpython-34.pyc
creating build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying Gammatone.egg-info/PKG-INFO -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying Gammatone.egg-info/SOURCES.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying Gammatone.egg-info/dependency_links.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying Gammatone.egg-info/entry_points.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying Gammatone.egg-info/requires.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
copying Gammatone.egg-info/top_level.txt -> build/bdist.macosx-10.6-intel/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/Gammatone-1.0-py3.4.egg' and adding 'build/bdist.macosx-10.6-intel/egg' to it
removing 'build/bdist.macosx-10.6-intel/egg' (and everything under it)
Processing Gammatone-1.0-py3.4.egg
Copying Gammatone-1.0-py3.4.egg to /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages
Adding Gammatone 1.0 to easy-install.pth file
Installing gammatone script to /Library/Frameworks/Python.framework/Versions/3.4/bin

Installed /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/Gammatone-1.0-py3.4.egg
Processing dependencies for Gammatone==1.0
Searching for scikits.audiolab>=0.11.0.p3.1
Best match: scikits.audiolab 0.11.0.p3.1
Downloading https://github.com/detly/audiolab/archive/0.11.0.p3.1.zip#egg=scikits.audiolab-0.11.0.p3.1
Processing 0.11.0.p3.1.zip
Writing /tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/setup.cfg
Running audiolab-0.11.0.p3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/egg-dist-tmp-ub0c5ts1
Warning: distutils distribution has been initialized, it may be too late to add an extension sndfileWarning: distutils distribution has been initialized, it may be too late to add a subpackage pysndfile/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/soundio/setup.py:21: UserWarning: Alsa not found - alsa backend not build
warnings.warn("Alsa not found - alsa backend not build")
warning: no files found matching 'scikits/audiolab/test_data/original.aif'
warning: no files found matching 'scikits/audiolab/test_data/test.aiff'
warning: no files found matching 'scikits/audiolab/test_data/test.au'
warning: no files found matching 'scikits/audiolab/test_data/test.flac'
warning: no files found matching 'scikits/audiolab/test_data/test.raw'
warning: no files found matching 'scikits/audiolab/test_data/test.sdif'
warning: no files found matching 'scikits/audiolab/test_data/test.wav'
warning: no files found matching '
' under directory 'docs/pdf'
warning: no files found matching '_' under directory 'docs/html'
warning: manifest_maker: MANIFEST.in, line 19: 'recursive-include' expects

...

warning: manifest_maker: MANIFEST.in, line 20: 'recursive-include' expects

...

warning: no files found matching 'scikits/audiolab/pysndfile/_sndfile.pyx'
warning: no files found matching 'scikits/audiolab/soundio/macosx/macosx_backend.pyx'
warning: no files found matching 'scikits/audiolab/soundio/alsa/_alsa_backend.pyx'
warning: no files found matching 'scikits/audiolab/pysndfile/_sndfile.c'
warning: no files found matching 'scikits/audiolab/soundio/macosx/macosx_backend.c'
warning: no files found matching 'scikits/audiolab/soundio/alsa/_alsa_backend.c'
In file included from /private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:275:
In file included from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:
In file included from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]

warning "Using deprecated NumPy API, disable it by " \

^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:957:59: error: a parameter list without types is only allowed in a function definition
static CYTHON_INLINE PyObject ___Pyx_PyInt_to_py___quad_t(__quad_t);
^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:959:22: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
static CYTHON_INLINE __quad_t _Pyx_PyInt_from_py___quad_t(PyObject *);
^~~~~~~~
u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t u_quad_t; /
quads _/
^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:1640:14: warning: explicitly assigning a variable of type 'PyObject *' (aka 'struct _object *') to itself [-Wself-assign]
__pyx_self = __pyx_self;

/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:3752:14: warning: explicitly assigning a variable of type 'PyObject *' (aka 'struct _object *') to itself [-Wself-assign]
__pyx_self = __pyx_self;
~~~~~~~~~~ ^ ~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:3961:14: warning: explicitly assigning a variable of type 'PyObject *' (aka 'struct _object *') to itself [-Wself-assign]
__pyx_self = __pyx_self;
~~~~~~~~~~ ^ ~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:5158:15: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  __pyx_t_8 = sf_strerror(__pyx_v_self->hdl);
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:8343:15: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  __pyx_t_3 = sf_strerror(__pyx_v_self->hdl);
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14090:59: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py___quad_t(__quad_t val) {
                                                        ^~~~~~~~
                                                        u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14091:11: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
        ^~~~~~~~
        u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14091:31: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
                            ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14091:58: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
                                                       ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14093:17: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  if ((sizeof(__quad_t) == sizeof(char))  ||
              ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14094:17: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
      (sizeof(__quad_t) == sizeof(short))) {
              ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14096:24: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  } else if ((sizeof(__quad_t) == sizeof(int)) ||
                     ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14097:24: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
             (sizeof(__quad_t) == sizeof(long))) {
                     ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14102:23: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  } else if (sizeof(__quad_t) == sizeof(PY_LONG_LONG)) {
                    ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14110:52: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
      return _PyLong_FromByteArray(bytes, sizeof(__quad_t),
                                                 ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14115:22: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
static CYTHON_INLINE __quad_t __Pyx_PyInt_from_py___quad_t(PyObject_ x) {
                   ^~~~~~~~
                   u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /\* quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14116:11: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
        ^~~~~~~~
        u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14116:31: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
                            ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14116:58: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
                                                       ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14118:16: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  if (sizeof(__quad_t) == sizeof(char)) {
             ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14120:21: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
          return (__quad_t)__Pyx_PyInt_AsUnsignedChar(x);
                  ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14122:21: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
          return (__quad_t)__Pyx_PyInt_AsSignedChar(x);
                  ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads */
                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
In file included from /private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:275:
In file included from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/numpy/ndarrayobject.h:17:
In file included from /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761:
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
# warning "Using deprecated NumPy API, disable it by " \

^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:957:59: error: a parameter list without types is only allowed in a function definition
static CYTHON_INLINE PyObject ___Pyx_PyInt_to_py___quad_t(__quad_t);
                                                        ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:959:22: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
static CYTHON_INLINE __quad_t __Pyx_PyInt_from_py___quad_t(PyObject *);
                   ^~~~~~~~
                   u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:1640:14: warning: explicitly assigning a variable of type 'PyObject *' (aka 'struct _object *') to itself [-Wself-assign]
__pyx_self = __pyx_self;
~~~~~~~~~~ ^ ~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:3752:14: warning: explicitly assigning a variable of type 'PyObject *' (aka 'struct _object *') to itself [-Wself-assign]
__pyx_self = __pyx_self;
~~~~~~~~~~ ^ ~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:3961:14: warning: explicitly assigning a variable of type 'PyObject *' (aka 'struct _object *') to itself [-Wself-assign]
__pyx_self = __pyx_self;
~~~~~~~~~~ ^ ~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:5158:15: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  __pyx_t_8 = sf_strerror(__pyx_v_self->hdl);
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:8343:15: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
  __pyx_t_3 = sf_strerror(__pyx_v_self->hdl);
            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14090:59: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py___quad_t(__quad_t val) {
                                                        ^~~~~~~~
                                                        u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14091:11: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
        ^~~~~~~~
        u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14091:31: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
                            ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14091:58: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
                                                       ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14093:17: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  if ((sizeof(__quad_t) == sizeof(char))  ||
              ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14094:17: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
      (sizeof(__quad_t) == sizeof(short))) {
              ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14096:24: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  } else if ((sizeof(__quad_t) == sizeof(int)) ||
                     ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14097:24: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
             (sizeof(__quad_t) == sizeof(long))) {
                     ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14102:23: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  } else if (sizeof(__quad_t) == sizeof(PY_LONG_LONG)) {
                    ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14110:52: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
      return _PyLong_FromByteArray(bytes, sizeof(__quad_t),
                                                 ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14115:22: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
static CYTHON_INLINE __quad_t __Pyx_PyInt_from_py___quad_t(PyObject_ x) {
                   ^~~~~~~~
                   u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /\* quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14116:11: error: unknown type name '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
        ^~~~~~~~
        u_quad_t
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14116:31: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
                            ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14116:58: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  const __quad_t neg_one = (__quad_t)-1, const_zero = (__quad_t)0;
                                                       ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14118:16: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
  if (sizeof(__quad_t) == sizeof(char)) {
             ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14120:21: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
          return (__quad_t)__Pyx_PyInt_AsUnsignedChar(x);
                  ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads _/
                              ^
/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c:14122:21: error: use of undeclared identifier '__quad_t'; did you mean 'u_quad_t'?
          return (__quad_t)__Pyx_PyInt_AsSignedChar(x);
                  ^
/usr/include/sys/types.h:95:20: note: 'u_quad_t' declared here
typedef u_int64_t               u_quad_t;       /_ quads */
                              ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
Warning: distutils distribution has been initialized, it may be too late to add an extension macosx_backendWarning: distutils distribution has been initialized, it may be too late to add a subpackage soundioWarning: distutils distribution has been initialized, it may be too late to add a subpackage audiolaberror: Setup script exited with error: Command "/usr/bin/clang -fno-strict-aliasing -Werror=declaration-after-statement -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/3.4/include/python3.4m -c /private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.c -o build/temp.macosx-10.6-intel-3.4/private/tmp/easy_install-1g_vbqt3/audiolab-0.11.0.p3.1/audiolab/pysndfile/_sndfile.o" failed with exit status 1
@detly
Copy link
Owner

detly commented Sep 13, 2014

Looks like this is yet another problem with scikits.audiolab (perhaps an incompatibility with LLVM/CLang) This will be fixed if issue #1 is.

@lajash
Copy link
Author

lajash commented Sep 13, 2014

Thanks for the prompt reply. Is there anyway to use this without the audio lab features ?

@detly
Copy link
Owner

detly commented Sep 13, 2014

Probably. I think I only used scikits.audiolab to read in MP3 data. I'll see if I can make a branch without it.

@lajash
Copy link
Author

lajash commented Sep 13, 2014

That would be great. Many thanks Jason.

@detly
Copy link
Owner

detly commented Sep 13, 2014

There's now a branch sans-audiolab that does not have the scikits.audiolab package as a dependency. This means that you can't use the plotting script, but the library functions will still work.

@lajash
Copy link
Author

lajash commented Sep 13, 2014

OK super .. many thanks Jason …

On Sep 13, 2014, at 2:12 PM, Jason Heeris notifications@github.com wrote:

There's now a branch sans-audiolab that does not have the scikits.audiolab package as a dependency. This means that you can't use the plotting script, but the library functions will still work.


Reply to this email directly or view it on GitHub.

@detly
Copy link
Owner

detly commented Sep 13, 2014

I just updated the branch so that the plotting script works again, but only on WAV files. To run it on the sample OGG file, you'll need to convert it to WAV with eg. sox:

$ sox samples/FurElise.ogg samples/FurElise.wav
$ python -m gammatone samples/FurElise.wav -d 10

@lajash
Copy link
Author

lajash commented Sep 13, 2014

Excellent mate .. many thanks.
On Sep 13, 2014, at 7:03 PM, Jason Heeris notifications@github.com wrote:

I just updated the branch so that the plotting script works again, but only on WAV files. To run it on the sample OGG file, you'll need to convert it to WAV with eg. sox:

$ sox samples/FurElise.ogg samples/FurElise.wav
$ python -m gammatone samples/FurElise.wav -d 10

Reply to this email directly or view it on GitHub.

@jfsantos
Copy link
Contributor

Did you check pysndfile? It could be a good scikits.audiolab replacement.

@detly
Copy link
Owner

detly commented Oct 28, 2014

Since both are just wrappers around libsndfile, and it's actually compiling libsndfile that's the pain point, I don't know that pysndfile would be much of an improvement :/

I think I'd rather just restrict the scope of the project to processing raw data, and let anyone integrating it work out how to get that data in. I could then write a separate script as a demo project, to separate the dependencies for the library from the dependencies for the demo.

@jfsantos
Copy link
Contributor

I think that is a good approach. It's actually not hard to get a libsndfile binary for Windows (the official distribution has installers for Win32 and Win64), but I agree that is totally out of the scope of your project.

By the way, great job! I did exactly the same for the Julia programming language, but I guess I'll be using your code for a while, as I'm working on a Python code base right now.

@detly
Copy link
Owner

detly commented Oct 28, 2014

I actually did install the libsndfile binary, but pip still couldn't compile the wrapper code for it. It's possible that I would have been able to get it working eventually, but I don't want my library to be that difficult to install.

If you've implemented it in Julia, you might find some of the simplifications I've made to be useful too. Just look through the commit history for anything mentioning vectorisation or simplification.

@detly
Copy link
Owner

detly commented Nov 16, 2014

Fixed by 35314bd.

@detly detly closed this as completed Nov 16, 2014
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