You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyndsi failed to build (see error output below)
Problem is that AV_CODEC_CAP_TRUNCATED and AV_CODEC_FLAG_TRUNCATED no longer exist in ffmpeg 6 (see this other issue --> obsproject/obs-studio#8375)
temporary fix:
add to the setup: brew install ffmpeg@5
Follow brew instructions to add to path/compile includes/pkgconfig
If you need to have ffmpeg@5 first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/ffmpeg@5/bin:$PATH"' >> ~/.zshrc
For compilers to find ffmpeg@5 you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/ffmpeg@5/lib"
export CPPFLAGS="-I/opt/homebrew/opt/ffmpeg@5/include"
For pkg-config to find ffmpeg@5 you may need to set:
export PKG_CONFIG_PATH="/opt/homebrew/opt/ffmpeg@5/lib/pkgconfig"
ERROR MESSAGE:
(pupil) kbonnen@Kathryns-MacBook-Pro pupil % python -m pip install -r requirements.txt
Ignoring dataclasses: markers 'python_version < "3.7"' don't match your environment
Ignoring win_inet_pton: markers 'platform_system == "Windows"' don't match your environment
Collecting typing_extensions>=4.1.0 (from -r requirements.txt (line 2))
Using cached typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting av (from -r requirements.txt (line 7))
Using cached av-11.0.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (4.5 kB)
Collecting click (from -r requirements.txt (line 8))
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting glfw>=2.0.0 (from -r requirements.txt (line 9))
Using cached glfw-2.6.3-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_11_0_arm64.whl.metadata (5.4 kB)
Collecting msgpack>=1.0.0 (from -r requirements.txt (line 10))
Using cached msgpack-1.0.7-cp311-cp311-macosx_11_0_arm64.whl.metadata (9.1 kB)
Collecting numexpr (from -r requirements.txt (line 11))
Using cached numexpr-2.8.7-cp311-cp311-macosx_11_0_arm64.whl.metadata (8.7 kB)
Requirement already satisfied: numpy>=1.20.0 in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from -r requirements.txt (line 12)) (1.26.2)
Collecting opencv-python (from -r requirements.txt (line 13))
Using cached opencv_python-4.8.1.78-cp37-abi3-macosx_11_0_arm64.whl.metadata (19 kB)
Collecting packaging<22,>=20.0 (from -r requirements.txt (line 14))
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting psutil (from -r requirements.txt (line 15))
Using cached psutil-5.9.6-cp38-abi3-macosx_11_0_arm64.whl.metadata (21 kB)
Collecting pyopengl (from -r requirements.txt (line 16))
Using cached PyOpenGL-3.1.7-py3-none-any.whl.metadata (3.2 kB)
Collecting pyzmq (from -r requirements.txt (line 17))
Using cached pyzmq-25.1.2-cp311-cp311-macosx_10_15_universal2.whl.metadata (4.9 kB)
Collecting rich (from -r requirements.txt (line 18))
Using cached rich-13.7.0-py3-none-any.whl.metadata (18 kB)
Collecting scikit-learn (from -r requirements.txt (line 19))
Using cached scikit_learn-1.3.2-cp311-cp311-macosx_12_0_arm64.whl.metadata (11 kB)
Collecting scipy (from -r requirements.txt (line 20))
Using cached scipy-1.11.4-cp311-cp311-macosx_12_0_arm64.whl.metadata (165 kB)
Collecting sounddevice (from -r requirements.txt (line 21))
Using cached sounddevice-0.4.6-py3-none-macosx_10_6_x86_64.macosx_10_6_universal2.whl (107 kB)
Collecting zeromq-pyre>=0.3.4 (from -r requirements.txt (line 22))
Using cached zeromq_pyre-0.3.4-py3-none-any.whl
Requirement already satisfied: cysignals in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from -r requirements.txt (line 24)) (1.11.4)
Collecting ndsi==1.4.* (from -r requirements.txt (line 28))
Using cached ndsi-1.4.5.tar.gz (330 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pupil-apriltags==1.0.* (from -r requirements.txt (line 29))
Using cached pupil_apriltags-1.0.4.post10-cp311-cp311-macosx_13_0_arm64.whl
Collecting pupil-detectors>=2.0.2rc2 (from -r requirements.txt (line 30))
Using cached pupil_detectors-2.0.2.tar.gz (69 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pupil-labs-uvc (from -r requirements.txt (line 31))
Using cached pupil_labs_uvc-1.0.0b7-cp311-cp311-macosx_13_0_arm64.whl
Collecting pye3d>=0.3.2 (from -r requirements.txt (line 32))
Using cached pye3d-0.3.2-cp311-cp311-macosx_13_0_arm64.whl
Requirement already satisfied: pyglui>=1.31.1b1 in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from -r requirements.txt (line 33)) (1.31.1)
Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging<22,>=20.0->-r requirements.txt (line 14))
Using cached pyparsing-3.1.1-py3-none-any.whl.metadata (5.1 kB)
Collecting markdown-it-py>=2.2.0 (from rich->-r requirements.txt (line 18))
Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich->-r requirements.txt (line 18))
Using cached pygments-2.17.2-py3-none-any.whl.metadata (2.6 kB)
Collecting joblib>=1.1.1 (from scikit-learn->-r requirements.txt (line 19))
Using cached joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn->-r requirements.txt (line 19))
Using cached threadpoolctl-3.2.0-py3-none-any.whl.metadata (10.0 kB)
Requirement already satisfied: CFFI>=1.0 in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from sounddevice->-r requirements.txt (line 21)) (1.16.0)
Collecting ipaddress (from zeromq-pyre>=0.3.4->-r requirements.txt (line 22))
Using cached ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
Collecting sortedcontainers (from pye3d>=0.3.2->-r requirements.txt (line 32))
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Requirement already satisfied: pycparser in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from CFFI>=1.0->sounddevice->-r requirements.txt (line 21)) (2.21)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich->-r requirements.txt (line 18))
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Using cached av-11.0.0-cp311-cp311-macosx_11_0_arm64.whl (20.5 MB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached glfw-2.6.3-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_11_0_arm64.whl (92 kB)
Using cached msgpack-1.0.7-cp311-cp311-macosx_11_0_arm64.whl (231 kB)
Using cached numexpr-2.8.7-cp311-cp311-macosx_11_0_arm64.whl (91 kB)
Using cached opencv_python-4.8.1.78-cp37-abi3-macosx_11_0_arm64.whl (33.1 MB)
Using cached psutil-5.9.6-cp38-abi3-macosx_11_0_arm64.whl (246 kB)
Using cached PyOpenGL-3.1.7-py3-none-any.whl (2.4 MB)
Using cached pyzmq-25.1.2-cp311-cp311-macosx_10_15_universal2.whl (1.9 MB)
Using cached rich-13.7.0-py3-none-any.whl (240 kB)
Using cached scikit_learn-1.3.2-cp311-cp311-macosx_12_0_arm64.whl (9.4 MB)
Using cached scipy-1.11.4-cp311-cp311-macosx_12_0_arm64.whl (29.7 MB)
Using cached joblib-1.3.2-py3-none-any.whl (302 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached pygments-2.17.2-py3-none-any.whl (1.2 MB)
Using cached pyparsing-3.1.1-py3-none-any.whl (103 kB)
Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Building wheels for collected packages: ndsi, pupil-detectors
Building wheel for ndsi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for ndsi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [267 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.1-arm64-cpython-311
creating build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/formatter.py -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/sensor.py -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/init.py -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/network.py -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
running egg_info
writing src/ndsi.egg-info/PKG-INFO
writing dependency_links to src/ndsi.egg-info/dependency_links.txt
writing requirements to src/ndsi.egg-info/requires.txt
writing top-level names to src/ndsi.egg-info/top_level.txt
dependency /opt/homebrew/opt/jpeg-turbo/include/turbojpeg.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
dependency /opt/homebrew/opt/jpeg-turbo/include/turbojpeg.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'src/ndsi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.pxi' under directory 'src/ndsi'
warning: no files found matching '.c' under directory 'src/ndsi'
warning: no files found matching 'scripts/*.py'
adding license file 'LICENSE'
writing manifest file 'src/ndsi.egg-info/SOURCES.txt'
/private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'ndsi.h264' is absent from the packages configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'ndsi.h264' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'ndsi.h264' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'ndsi.h264' to be distributed and are
already explicitly excluding 'ndsi.h264' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
/private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'ndsi.h264.windows' is absent from the `packages` configuration.
!!
********************************************************************************
############################
# Package would be ignored #
############################
Python recognizes 'ndsi.h264.windows' as an importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to distribute this
package, please make sure that 'ndsi.h264.windows' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespace:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
If you don't want 'ndsi.h264.windows' to be distributed and are
already explicitly excluding 'ndsi.h264.windows' via
`find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
you can try to use `exclude_package_data`, or `include-package-data=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documentation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be imported,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package data
directory, all directories are treated like packages.
********************************************************************************
!!
check.warn(importable)
copying src/ndsi/cturbojpeg.pxd -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/frame.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/frame.pxd -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/frame.pyx -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/h264.pxd -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/writer.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/writer.pxd -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/writer.pyx -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
creating build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/ffmpeg_utils.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/ffmpeg_utils.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/h264_decoder.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/h264_decoder.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/h264_utils.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/h264_utils.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/localdefines.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/media_stream.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/media_stream.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/mp4_writer.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/mp4_writer.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/utilbase.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/video_stream.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
copying src/ndsi/h264/video_stream.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264
creating build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264/windows
copying src/ndsi/h264/windows/getopt.cpp -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264/windows
copying src/ndsi/h264/windows/getopt.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264/windows
copying src/ndsi/h264/windows/unistd.h -> build/lib.macosx-11.1-arm64-cpython-311/ndsi/h264/windows
running build_ext
building 'ndsi.frame' extension
creating build/temp.macosx-11.1-arm64-cpython-311
creating build/temp.macosx-11.1-arm64-cpython-311/src
creating build/temp.macosx-11.1-arm64-cpython-311/src/ndsi
creating build/temp.macosx-11.1-arm64-cpython-311/src/ndsi/h264
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/kbonnen/anaconda3/envs/pupil/include -arch arm64 -fPIC -O2 -isystem /Users/kbonnen/anaconda3/envs/pupil/include -arch arm64 -Isrc/ndsi -I/private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include -I/opt/homebrew/opt/jpeg-turbo/include -I/opt/homebrew/opt/ffmpeg/include -I/Users/kbonnen/anaconda3/envs/pupil/include/python3.11 -c src/ndsi/frame.cpp -o build/temp.macosx-11.1-arm64-cpython-311/src/ndsi/frame.o -std=c++11
In file included from src/ndsi/frame.cpp:1260:
In file included from /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h:5:
In file included from /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h:12:
In file included from /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h:1929:
/private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/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 " \
^
1 warning generated.
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/kbonnen/anaconda3/envs/pupil/include -arch arm64 -fPIC -O2 -isystem /Users/kbonnen/anaconda3/envs/pupil/include -arch arm64 -Isrc/ndsi -I/private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include -I/opt/homebrew/opt/jpeg-turbo/include -I/opt/homebrew/opt/ffmpeg/include -I/Users/kbonnen/anaconda3/envs/pupil/include/python3.11 -c src/ndsi/h264/ffmpeg_utils.cpp -o build/temp.macosx-11.1-arm64-cpython-311/src/ndsi/h264/ffmpeg_utils.o -std=c++11
src/ndsi/h264/ffmpeg_utils.cpp:36:17: warning: unused variable 'time_base' [-Wunused-variable]
AVRational *time_base = &format_context->streams[packet->stream_index]->time_base;
^
1 warning generated.
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/kbonnen/anaconda3/envs/pupil/include -arch arm64 -fPIC -O2 -isystem /Users/kbonnen/anaconda3/envs/pupil/include -arch arm64 -Isrc/ndsi -I/private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include -I/opt/homebrew/opt/jpeg-turbo/include -I/opt/homebrew/opt/ffmpeg/include -I/Users/kbonnen/anaconda3/envs/pupil/include/python3.11 -c src/ndsi/h264/h264_decoder.cpp -o build/temp.macosx-11.1-arm64-cpython-311/src/ndsi/h264/h264_decoder.o -std=c++11
src/ndsi/h264/h264_decoder.cpp:64:30: error: use of undeclared identifier 'AV_CODEC_CAP_TRUNCATED'; did you mean 'AV_CODEC_ID_TRUEHD'?
if (codec->capabilities & AV_CODEC_CAP_TRUNCATED) {
^~~~~~~~~~~~~~~~~~~~~~
AV_CODEC_ID_TRUEHD
/opt/homebrew/opt/ffmpeg/include/libavcodec/codec_id.h:482:5: note: 'AV_CODEC_ID_TRUEHD' declared here
AV_CODEC_ID_TRUEHD,
^
src/ndsi/h264/h264_decoder.cpp:65:29: error: use of undeclared identifier 'AV_CODEC_FLAG_TRUNCATED'
codec_context->flags |= AV_CODEC_FLAG_TRUNCATED;
^
src/ndsi/h264/h264_decoder.cpp:72:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("avcodec_open2 failed with error %d:%s", result, av_error(result).c_str());
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:221:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
src/ndsi/h264/h264_decoder.cpp:79:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("Could not initialize codec context");
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:223:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
src/ndsi/h264/h264_decoder.cpp:82:3: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("Could not find codec");
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:225:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
src/ndsi/h264/h264_decoder.cpp:121:2: warning: 'av_init_packet' is deprecated [-Wdeprecated-declarations]
av_init_packet(&packet);
^
/opt/homebrew/opt/ffmpeg/include/libavcodec/packet.h:511:1: note: 'av_init_packet' has been explicitly marked deprecated here
attribute_deprecated
^
/opt/homebrew/opt/ffmpeg/include/libavutil/attributes.h:100:49: note: expanded from macro 'attribute_deprecated'
# define attribute_deprecated __attribute__((deprecated))
^
src/ndsi/h264/h264_decoder.cpp:139:5: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("avcodec_receive_frame returned error %d:%s", result, av_error(result).c_str());
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:227:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
src/ndsi/h264/h264_decoder.cpp:153:6: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("avcodec_receive_frame returned error %d:%s", result, av_error(result).c_str());
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:229:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
src/ndsi/h264/h264_decoder.cpp:161:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("avcodec_send_packet EAGAIN");
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:231:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
src/ndsi/h264/h264_decoder.cpp:164:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("avcodec_send_packet AVERROR_EOF");
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:233:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
src/ndsi/h264/h264_decoder.cpp:168:4: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("avcodec_send_packet returned error %d:%s", result, av_error(result).c_str());
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:235:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
src/ndsi/h264/h264_decoder.cpp:238:3: warning: ISO C++11 does not allow conversion from string literal to 'char *' [-Wwritable-strings]
LOGE("capacity is smaller than required");
^
src/ndsi/h264/utilbase.h:94:89: note: expanded from macro 'LOGE'
#define LOGE(FMT, ...) fprintf(stderr, "[E/" LOG_TAG ":%s:%d:%s]:" FMT "\n", basename(__FILE__), __LINE__, __FUNCTION__, ## __VA_ARGS__)
^
<scratch space>:239:1: note: expanded from here
"src/ndsi/h264/h264_decoder.cpp"
^
10 warnings and 2 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ndsi
Building wheel for pupil-detectors (pyproject.toml) ... done
Created wheel for pupil-detectors: filename=pupil_detectors-2.0.2-cp311-cp311-macosx_13_0_arm64.whl size=172319 sha256=6d02e4d4475e210a8432e0889a80f7035a6b8295b6178bab706ff453e0ebb24b
Stored in directory: /Users/kbonnen/Library/Caches/pip/wheels/59/44/a2/b5d1c933eb58548505e28d2d856711ae5f5f5b5a33b2c1168e
Successfully built pupil-detectors
Failed to build ndsi
ERROR: Could not build wheels for ndsi, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered:
Following the directions to install the develop branch of pupil (https://github.com/pupil-labs/pupil/tree/develop) on Mac OSX 13.2.1, Apple M2 Max
pyndsi failed to build (see error output below)
Problem is that AV_CODEC_CAP_TRUNCATED and AV_CODEC_FLAG_TRUNCATED no longer exist in ffmpeg 6 (see this other issue --> obsproject/obs-studio#8375)
temporary fix:
add to the setup:
brew install ffmpeg@5
Follow brew instructions to add to path/compile includes/pkgconfig
ERROR MESSAGE:
(pupil) kbonnen@Kathryns-MacBook-Pro pupil % python -m pip install -r requirements.txt
Ignoring dataclasses: markers 'python_version < "3.7"' don't match your environment
Ignoring win_inet_pton: markers 'platform_system == "Windows"' don't match your environment
Collecting typing_extensions>=4.1.0 (from -r requirements.txt (line 2))
Using cached typing_extensions-4.8.0-py3-none-any.whl.metadata (3.0 kB)
Collecting av (from -r requirements.txt (line 7))
Using cached av-11.0.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (4.5 kB)
Collecting click (from -r requirements.txt (line 8))
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting glfw>=2.0.0 (from -r requirements.txt (line 9))
Using cached glfw-2.6.3-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_11_0_arm64.whl.metadata (5.4 kB)
Collecting msgpack>=1.0.0 (from -r requirements.txt (line 10))
Using cached msgpack-1.0.7-cp311-cp311-macosx_11_0_arm64.whl.metadata (9.1 kB)
Collecting numexpr (from -r requirements.txt (line 11))
Using cached numexpr-2.8.7-cp311-cp311-macosx_11_0_arm64.whl.metadata (8.7 kB)
Requirement already satisfied: numpy>=1.20.0 in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from -r requirements.txt (line 12)) (1.26.2)
Collecting opencv-python (from -r requirements.txt (line 13))
Using cached opencv_python-4.8.1.78-cp37-abi3-macosx_11_0_arm64.whl.metadata (19 kB)
Collecting packaging<22,>=20.0 (from -r requirements.txt (line 14))
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting psutil (from -r requirements.txt (line 15))
Using cached psutil-5.9.6-cp38-abi3-macosx_11_0_arm64.whl.metadata (21 kB)
Collecting pyopengl (from -r requirements.txt (line 16))
Using cached PyOpenGL-3.1.7-py3-none-any.whl.metadata (3.2 kB)
Collecting pyzmq (from -r requirements.txt (line 17))
Using cached pyzmq-25.1.2-cp311-cp311-macosx_10_15_universal2.whl.metadata (4.9 kB)
Collecting rich (from -r requirements.txt (line 18))
Using cached rich-13.7.0-py3-none-any.whl.metadata (18 kB)
Collecting scikit-learn (from -r requirements.txt (line 19))
Using cached scikit_learn-1.3.2-cp311-cp311-macosx_12_0_arm64.whl.metadata (11 kB)
Collecting scipy (from -r requirements.txt (line 20))
Using cached scipy-1.11.4-cp311-cp311-macosx_12_0_arm64.whl.metadata (165 kB)
Collecting sounddevice (from -r requirements.txt (line 21))
Using cached sounddevice-0.4.6-py3-none-macosx_10_6_x86_64.macosx_10_6_universal2.whl (107 kB)
Collecting zeromq-pyre>=0.3.4 (from -r requirements.txt (line 22))
Using cached zeromq_pyre-0.3.4-py3-none-any.whl
Requirement already satisfied: cysignals in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from -r requirements.txt (line 24)) (1.11.4)
Collecting ndsi==1.4.* (from -r requirements.txt (line 28))
Using cached ndsi-1.4.5.tar.gz (330 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pupil-apriltags==1.0.* (from -r requirements.txt (line 29))
Using cached pupil_apriltags-1.0.4.post10-cp311-cp311-macosx_13_0_arm64.whl
Collecting pupil-detectors>=2.0.2rc2 (from -r requirements.txt (line 30))
Using cached pupil_detectors-2.0.2.tar.gz (69 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pupil-labs-uvc (from -r requirements.txt (line 31))
Using cached pupil_labs_uvc-1.0.0b7-cp311-cp311-macosx_13_0_arm64.whl
Collecting pye3d>=0.3.2 (from -r requirements.txt (line 32))
Using cached pye3d-0.3.2-cp311-cp311-macosx_13_0_arm64.whl
Requirement already satisfied: pyglui>=1.31.1b1 in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from -r requirements.txt (line 33)) (1.31.1)
Collecting pyparsing!=3.0.5,>=2.0.2 (from packaging<22,>=20.0->-r requirements.txt (line 14))
Using cached pyparsing-3.1.1-py3-none-any.whl.metadata (5.1 kB)
Collecting markdown-it-py>=2.2.0 (from rich->-r requirements.txt (line 18))
Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich->-r requirements.txt (line 18))
Using cached pygments-2.17.2-py3-none-any.whl.metadata (2.6 kB)
Collecting joblib>=1.1.1 (from scikit-learn->-r requirements.txt (line 19))
Using cached joblib-1.3.2-py3-none-any.whl.metadata (5.4 kB)
Collecting threadpoolctl>=2.0.0 (from scikit-learn->-r requirements.txt (line 19))
Using cached threadpoolctl-3.2.0-py3-none-any.whl.metadata (10.0 kB)
Requirement already satisfied: CFFI>=1.0 in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from sounddevice->-r requirements.txt (line 21)) (1.16.0)
Collecting ipaddress (from zeromq-pyre>=0.3.4->-r requirements.txt (line 22))
Using cached ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
Collecting sortedcontainers (from pye3d>=0.3.2->-r requirements.txt (line 32))
Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Requirement already satisfied: pycparser in /Users/kbonnen/anaconda3/envs/pupil/lib/python3.11/site-packages (from CFFI>=1.0->sounddevice->-r requirements.txt (line 21)) (2.21)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich->-r requirements.txt (line 18))
Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Using cached av-11.0.0-cp311-cp311-macosx_11_0_arm64.whl (20.5 MB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached glfw-2.6.3-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_11_0_arm64.whl (92 kB)
Using cached msgpack-1.0.7-cp311-cp311-macosx_11_0_arm64.whl (231 kB)
Using cached numexpr-2.8.7-cp311-cp311-macosx_11_0_arm64.whl (91 kB)
Using cached opencv_python-4.8.1.78-cp37-abi3-macosx_11_0_arm64.whl (33.1 MB)
Using cached psutil-5.9.6-cp38-abi3-macosx_11_0_arm64.whl (246 kB)
Using cached PyOpenGL-3.1.7-py3-none-any.whl (2.4 MB)
Using cached pyzmq-25.1.2-cp311-cp311-macosx_10_15_universal2.whl (1.9 MB)
Using cached rich-13.7.0-py3-none-any.whl (240 kB)
Using cached scikit_learn-1.3.2-cp311-cp311-macosx_12_0_arm64.whl (9.4 MB)
Using cached scipy-1.11.4-cp311-cp311-macosx_12_0_arm64.whl (29.7 MB)
Using cached joblib-1.3.2-py3-none-any.whl (302 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached pygments-2.17.2-py3-none-any.whl (1.2 MB)
Using cached pyparsing-3.1.1-py3-none-any.whl (103 kB)
Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Building wheels for collected packages: ndsi, pupil-detectors
Building wheel for ndsi (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for ndsi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [267 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11.1-arm64-cpython-311
creating build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/formatter.py -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/sensor.py -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/init.py -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
copying src/ndsi/network.py -> build/lib.macosx-11.1-arm64-cpython-311/ndsi
running egg_info
writing src/ndsi.egg-info/PKG-INFO
writing dependency_links to src/ndsi.egg-info/dependency_links.txt
writing requirements to src/ndsi.egg-info/requires.txt
writing top-level names to src/ndsi.egg-info/top_level.txt
dependency /opt/homebrew/opt/jpeg-turbo/include/turbojpeg.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
dependency /opt/homebrew/opt/jpeg-turbo/include/turbojpeg.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/arrayscalars.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarrayobject.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ndarraytypes.h won't be automatically included in the manifest: the path must be relative
dependency /private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/numpy/core/include/numpy/ufuncobject.h won't be automatically included in the manifest: the path must be relative
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'src/ndsi.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.pxi' under directory 'src/ndsi'
warning: no files found matching '.c' under directory 'src/ndsi'
warning: no files found matching 'scripts/*.py'
adding license file 'LICENSE'
writing manifest file 'src/ndsi.egg-info/SOURCES.txt'
/private/var/folders/6r/q50gj1mj2012fhzq95rw61w80000gn/T/pip-build-env-35zaeyr2/overlay/lib/python3.11/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'ndsi.h264' is absent from the
packages
configuration.!!
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ndsi
Building wheel for pupil-detectors (pyproject.toml) ... done
Created wheel for pupil-detectors: filename=pupil_detectors-2.0.2-cp311-cp311-macosx_13_0_arm64.whl size=172319 sha256=6d02e4d4475e210a8432e0889a80f7035a6b8295b6178bab706ff453e0ebb24b
Stored in directory: /Users/kbonnen/Library/Caches/pip/wheels/59/44/a2/b5d1c933eb58548505e28d2d856711ae5f5f5b5a33b2c1168e
Successfully built pupil-detectors
Failed to build ndsi
ERROR: Could not build wheels for ndsi, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: