davidcaron / pye57

Read and write e57 point clouds from Python
MIT License
69 stars 42 forks source link

ERROR: Could not build wheels for pye57, which is required to install pyproject.toml-based projects #62

Closed lishenyu1024 closed 2 months ago

lishenyu1024 commented 4 months ago

Hey all,

I encountered problems when trying to install the pye57 package in my Python environment. The error messages indicated that the build process failed due to missing dependencies or configuration issues.

The first error indicated that the pye57 package could not build its wheel.
      /Users/lishenyu/pye57/libE57Format/src/E57XmlParser.cpp:32:10: fatal error: 'xercesc/sax2/Attributes.hpp' file not found
      #include <xercesc/sax2/Attributes.hpp>
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error 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 pye57

The second error occurred when I tried to install pye57 using the --no-build-isolation flag. Failed to build pye57 ERROR: Could not build wheels for pye57, which is required to install pyproject.toml-based projects

Do you have any advice on that?

waiting for your help, yuyu

i.e lots of error code, hope it works

lishenyu@6c7e67cb100b pye57 % python3 -m pip install .

lishenyu@6c7e67cb100b pye57 % pwd /Users/lishenyu/pye57 lishenyu@6c7e67cb100b pye57 % ls LICENSE build pyproject.toml setup.py MANIFEST.in libE57Format requirements-dev.txt src README.md parse_header.py scripts tests lishenyu@6c7e67cb100b pye57 % git submodule init lishenyu@6c7e67cb100b pye57 % git submodule update' quote> lishenyu@6c7e67cb100b pye57 % git submodule update lishenyu@6c7e67cb100b pye57 % python -m pip install . zsh: command not found: python lishenyu@6c7e67cb100b pye57 % python3 -m pip install . Defaulting to user installation because normal site-packages is not writeable Processing /Users/lishenyu/pye57 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting numpy (from pye57==0.4.5) Using cached numpy-1.26.4-cp39-cp39-macosx_11_0_arm64.whl.metadata (61 kB) Collecting pyquaternion (from pye57==0.4.5) Using cached pyquaternion-0.9.9-py3-none-any.whl.metadata (1.4 kB) Using cached numpy-1.26.4-cp39-cp39-macosx_11_0_arm64.whl (14.0 MB) Using cached pyquaternion-0.9.9-py3-none-any.whl (14 kB) Building wheels for collected packages: pye57 Building wheel for pye57 (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for pye57 (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [35 lines of output] running bdist_wheel running build running build_py copying src/pye57/exception.py -> build/lib.macosx-10.9-universal2-cpython-39/pye57 copying src/pye57/init.py -> build/lib.macosx-10.9-universal2-cpython-39/pye57 copying src/pye57/version.py -> build/lib.macosx-10.9-universal2-cpython-39/pye57 copying src/pye57/e57.py -> build/lib.macosx-10.9-universal2-cpython-39/pye57 copying src/pye57/utils.py -> build/lib.macosx-10.9-universal2-cpython-39/pye57 copying src/pye57/scan_header.py -> build/lib.macosx-10.9-universal2-cpython-39/pye57 running build_ext clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c flagcheck.cpp -o flagcheck.o -std=c++17 building 'pye57.libe57' extension clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/BlobNode.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/BlobNode.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/BlobNodeImpl.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/BlobNodeImpl.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/CheckedFile.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/CheckedFile.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/Common.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/Common.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/CompressedVectorNode.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/CompressedVectorNode.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/CompressedVectorNodeImpl.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/CompressedVectorNodeImpl.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/CompressedVectorReader.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/CompressedVectorReader.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/CompressedVectorReaderImpl.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/CompressedVectorReaderImpl.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/CompressedVectorWriter.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/CompressedVectorWriter.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/CompressedVectorWriterImpl.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/CompressedVectorWriterImpl.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/DecodeChannel.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/DecodeChannel.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/Decoder.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/Decoder.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/E57Exception.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/E57Exception.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/E57SimpleData.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/E57SimpleData.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/E57SimpleReader.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/E57SimpleReader.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/E57SimpleWriter.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/E57SimpleWriter.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/E57Version.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/E57Version.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -Wno-error=unreachable-code -DE57_DLL= -IlibE57Format/include -IlibE57Format/src -IlibE57Format/extern/CRCpp/inc -I/private/var/folders/vw/_zlrv9g91j9c2p691k3nvy8m0000gq/T/pip-build-env-lg2klncn/overlay/lib/python3.9/site-packages/pybind11/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/include/python3.9 -c /Users/lishenyu/pye57/libE57Format/src/E57XmlParser.cpp -o build/temp.macosx-10.9-universal2-cpython-39/Users/lishenyu/pye57/libE57Format/src/E57XmlParser.o -std=c++17 -mmacosx-version-min=10.14 -DVERSION_INFO=\"0.4.5\" -DREVISION_ID=\"pye57-0.4.5\" -DCRCPP_USE_CPP11 -DCRCPP_BRANCHLESS -Wno-unused-variable /Users/lishenyu/pye57/libE57Format/src/E57XmlParser.cpp:32:10: fatal error: 'xercesc/sax2/Attributes.hpp' file not found

include <xercesc/sax2/Attributes.hpp>

           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  1 error 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 pye57 Failed to build pye57 ERROR: Could not build wheels for pye57, which is required to install pyproject.toml-based projects

dancergraham commented 4 months ago

Hello, it looks like you are trying to install on mac - unfortunately pye57 doesn't currently work on mac. I think the first step would be to try to get xerces-c working, then update the installation scripts and finally update the github actions to automatically build mac wheels for each release. Workarounds could be to use another os or to install in docker.

lishenyu1024 commented 4 months ago

Thanks for your feedback! I successfully installed it.

By the way, are these the only 9 fields we can get? cartesianX, cartesianY, cartesianZ, intensity, colorRed, colorGreen, colorBlue, rowIndex, columnIndex?

Does your library extract more information, like Timestamp and Scanner Information? If I want more information, what library or software should I use?

dancergraham commented 4 months ago

Thanks for your feedback! I successfully installed it.

Awesome - if it was on Mac could you give step-by-step instructions for how you did it? I would love to add a mac install script to the repo

By the way, are these the only 9 fields we can get? cartesianX, cartesianY, cartesianZ, intensity, colorRed, colorGreen, colorBlue, rowIndex, columnIndex?

The supported fields are given by


In [2]: pye57.e57.SUPPORTED_POINT_FIELDS
Out[2]:
{'cartesianX': 'd',
 'cartesianY': 'd',
 'cartesianZ': 'd',
 'sphericalRange': 'd',
 'sphericalAzimuth': 'd',
 'sphericalElevation': 'd',
 'intensity': 'f',
 'colorRed': 'B',
 'colorGreen': 'B',
 'colorBlue': 'B',
 'rowIndex': 'H',
 'columnIndex': 'H',
 'cartesianInvalidState': 'b',
 'sphericalInvalidState': 'b'}
dancergraham commented 4 months ago

Does your library extract more information, like Timestamp and Scanner Information? If I want more information, what library or software should I use?

My other library pip install e57 allows you to get the raw xml from the file, which includes the timestamp which can be understood by datetime.datetime.fromtimestamp e57.raw_wml(r"e57\testdata\bunnyDouble.e57")

lishenyu1024 commented 4 months ago

I didn't install it on a Mac; instead, I set up a Linux system and successfully installed it there. By the way, could I connect with you on Mastodon? I'd love to delve deeper into discussions about E57.

lishenyu1024 commented 4 months ago

Does your library extract more information, like Timestamp and Scanner Information? If I want more information, what library or software should I use?

My other library pip install e57 allows you to get the raw xml from the file, which includes the timestamp which can be understood by datetime.datetime.fromtimestamp e57.raw_wml(r"e57\testdata\bunnyDouble.e57")

Would you mind give me an timestamp Example usage? and do you have other feature from e57 library?

dancergraham commented 3 months ago

Would you mind give me an timestamp Example usage? and do you have other feature from e57 library?

Hello, I finally got around to doing an example of extracting timestamp using the e57 library

https://github.com/davidcaron/pye57/issues/64#issuecomment-2234074375

amangupta17 commented 2 months ago

Hi, I am trying to build wheels for macOS. I was able to generate the wheel but its fails when it doesn't detect xerces-c on the system. I included the binary similar to how it has been done for Windows but libe57 still tries to read dynamically from the OS install location.

Any pointers to how I can proceed with static reference to the xerces-c library? The library currently works if xerces-c is installed on the system.

Error I see when xerces-c is not installed:

ImportError: dlopen(/Users/agguptax/workplace/pye57/venv/lib/python3.9/site-packages/pye57/libe57.cpython-39-darwin.so, 0x0002): Library not loaded: /opt/homebrew/opt/xerces-c/lib/libxerces-c-3.2.dylib
  Referenced from: <44046C44-ED5D-309A-A36A-C5E791363284> /Users/agguptax/workplace/pye57/venv/lib/python3.9/site-packages/pye57/libe57.cpython-39-darwin.so
amangupta17 commented 2 months ago

PR for macOS wheels: https://github.com/davidcaron/pye57/pull/65

dancergraham commented 2 months ago

Closed with #65