fthaler / rawhdr

A simple HDR image merger that converts multiple RAW files into a single HDR image.
https://fthaler.github.io/rawhdr
Other
30 stars 1 forks source link

Error: 'pybind11' must be installed before running the build. #2

Closed Bra1nsen closed 2 years ago

Bra1nsen commented 2 years ago
pi@allskyLA:~/rawhdr $ sudo python setup.py install
running install
running bdist_egg
running egg_info
writing rawhdr.egg-info/PKG-INFO
writing dependency_links to rawhdr.egg-info/dependency_links.txt
writing entry points to rawhdr.egg-info/entry_points.txt
writing requirements to rawhdr.egg-info/requires.txt
writing top-level names to rawhdr.egg-info/top_level.txt
reading manifest file 'rawhdr.egg-info/SOURCES.txt'
writing manifest file 'rawhdr.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/rawhdr
copying build/lib/rawhdr/focus_fusion.py -> build/bdist.linux-armv7l/egg/rawhdr
copying build/lib/rawhdr/generic_fusion.py -> build/bdist.linux-armv7l/egg/rawhdr
copying build/lib/rawhdr/common.py -> build/bdist.linux-armv7l/egg/rawhdr
copying build/lib/rawhdr/exposure_fusion.py -> build/bdist.linux-armv7l/egg/rawhdr
creating build/bdist.linux-armv7l/egg/rawhdr/test
copying build/lib/rawhdr/test/test_exposure_fusion.py -> build/bdist.linux-armv7l/egg/rawhdr/test
copying build/lib/rawhdr/test/__init__.py -> build/bdist.linux-armv7l/egg/rawhdr/test
copying build/lib/rawhdr/test/test_common.py -> build/bdist.linux-armv7l/egg/rawhdr/test
copying build/lib/rawhdr/__init__.py -> build/bdist.linux-armv7l/egg/rawhdr
copying build/lib/rawhdr/cli.py -> build/bdist.linux-armv7l/egg/rawhdr
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/focus_fusion.py to focus_fusion.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/generic_fusion.py to generic_fusion.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/common.py to common.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/exposure_fusion.py to exposure_fusion.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/test/test_exposure_fusion.py to test_exposure_fusion.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/test/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/test/test_common.py to test_common.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/__init__.py to __init__.cpython-39.pyc
byte-compiling build/bdist.linux-armv7l/egg/rawhdr/cli.py to cli.cpython-39.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying rawhdr.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying rawhdr.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying rawhdr.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying rawhdr.egg-info/entry_points.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying rawhdr.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying rawhdr.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/rawhdr-0.6.0-py3.9.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing rawhdr-0.6.0-py3.9.egg
Removing /usr/local/lib/python3.9/dist-packages/rawhdr-0.6.0-py3.9.egg
Copying rawhdr-0.6.0-py3.9.egg to /usr/local/lib/python3.9/dist-packages
rawhdr 0.6.0 is already the active version in easy-install.pth
Installing rawhdr script to /usr/local/bin

Installed /usr/local/lib/python3.9/dist-packages/rawhdr-0.6.0-py3.9.egg
Processing dependencies for rawhdr==0.6.0
Searching for scipy
Reading https://pypi.org/simple/scipy/
Downloading https://files.pythonhosted.org/packages/db/af/16906139f52bc6866c43401869ce247662739ad71afa11c6f18505eb0546/scipy-1.9.1.tar.gz#sha256=26d28c468900e6d5fdb37d2812ab46db0ccd22c63baa095057871faa3a498bc9
Best match: scipy 1.9.1
Processing scipy-1.9.1.tar.gz
Writing /tmp/easy_install-6efbji2k/scipy-1.9.1/setup.cfg
Running scipy-1.9.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-6efbji2k/scipy-1.9.1/egg-dist-tmp-tw0tpqxb
/tmp/easy_install-6efbji2k/scipy-1.9.1/setup.py:390: UserWarning: Unrecognized setuptools command ('-q bdist_egg --dist-dir /tmp/easy_install-6efbji2k/scipy-1.9.1/egg-dist-tmp-tw0tpqxb'), proceeding with generating Cython sources and expanding templates
  warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
Error: 'pybind11' must be installed before running the build.

error: Setup script exited with 1
Bra1nsen commented 2 years ago

using bullseye ios raspberry pi 4b

fthaler commented 2 years ago

It looks like pip tries to build scipy (a dependency of rawhdr) from source, so this does not look like a problem of rawhdr itself. In theory, pip install scipy should work on a Raspberry PI 4, I think. Maybe you could also try installing scipy using the package manager, as documented here: https://scipy.org/install.