-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Pip3 install point_cloud_utils Error #40
Comments
Hi, it seems you might be building the library from source! Try
(note the dashes ( |
|
I am getting the same error. |
Could you please give some details about the environment you are installing the package in? Thanks so much! |
Hi @fwilliams, I am running it on Conda 4.11.0 using Python 3.7.13 on MacOS 12.3.1. Please let me know if you need more information. Thank you! |
aha! Currently, there is no MacOS support since the library doesn't compile on MacOS. This is why I don't have a mac to debug and never managed to get things working in the CI. My guess is that these are just simple compilation issues but I don't have the tools to debug it. If you're interested in helping out, maybe try building from scratch ( |
@LilyGinger could you also confirm your system details? Also, I seem to have just fixed the build for macos (see this commit). I'll cut a new release and send a ping when the package is deployed! |
Thank you a lot for your time! |
Ah okay, Xavier NX is an ARM CPU and the current CI pipeline is building x86. Like the MacOS issues, this is likely a simple compilation issue. Could you try building the library locally and posting the error. That should help me fix it. To do that run:
Then paste the output of your shell here. |
@shihgianlee MacOS support should be live now. Can you try to |
@fwilliams Thank you a lot. Here is the output. running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/point_cloud_utils
copying point_cloud_utils/__init__.py -> build/lib.linux-aarch64-3.6/point_cloud_utils
copying point_cloud_utils/_octree.py -> build/lib.linux-aarch64-3.6/point_cloud_utils
copying point_cloud_utils/_mesh_io.py -> build/lib.linux-aarch64-3.6/point_cloud_utils
copying point_cloud_utils/_ray_mesh_intersector.py -> build/lib.linux-aarch64-3.6/point_cloud_utils
copying point_cloud_utils/_pointcloud_normals.py -> build/lib.linux-aarch64-3.6/point_cloud_utils
copying point_cloud_utils/_sinkhorn.py -> build/lib.linux-aarch64-3.6/point_cloud_utils
copying point_cloud_utils/_ray_mesh.py -> build/lib.linux-aarch64-3.6/point_cloud_utils
running build_ext
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Cloning into 'numpyeigen'...
Note: checking out '4916d926aa2b939bd8f625c7537563a1575dafe9'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 4916d92 update pybind11
-- Performing Test COMPILER_SUPPORT_OPENMP
-- Performing Test COMPILER_SUPPORT_OPENMP - Success
CMake Warning (dev) at external/numpyeigen/cmake/numpyeigen.cmake:98 (set):
Cannot set "NPE_ROOT_DIR": current scope has no parent.
Call Stack (most recent call first):
CMakeLists.txt:21 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
Cloning into 'eigen'...
HEAD is now at 21ae2afd4 bump to 3.3.7
Cloning into 'pybind11'...
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Cloning into 'pybind11'...
Switched to a new branch 'numpy_hacks_stable'
-- pybind11 v2.9.0
-- Found PythonInterp: /usr/bin/python3 (found version "3.6.9")
-- Found PythonLibs: /usr/lib/aarch64-linux-gnu/libpython3.6m.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
Cloning into 'manifold'...
fatal: unable to access 'https://github.com/hjwdzh/Manifold.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
Cloning into 'manifold'...
fatal: unable to access 'https://github.com/hjwdzh/Manifold.git/': gnutls_handshake() failed: The TLS connection was non-properly terminated.
Cloning into 'manifold'...
Note: checking out '81fd342e578e29fc15fb75d2b4d1e3c821fe33cb'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 81fd342 Update README.md
Cloning into 'embree'...
Note: checking out 'v3.12.1'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 69bd4c272 regenerated documentation
-- Found Git: /usr/bin/git (found version "2.17.1")
-- Detecting default ISA...
-- Detected default ISA: SSE2
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Using local options file: /home/orca/zbz/point-cloud-utils/external/geogram/CMakeOptions.txt
-- Configuring build for standalone Geogram (without Vorpaline)
-- GCC version >= 4.3, activating sign conversion warnings
-- GCC version >= 4.6, activating double promotion warnings
-- Doxygen >= 1.7.0 not found, cannot generate documentation
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/orca/zbz/point-cloud-utils/build/temp.linux-aarch64-3.6
Scanning dependencies of target manifold
Scanning dependencies of target npe
[ 0%] Building CXX object CMakeFiles/npe.dir/external/numpyeigen/src/npe_typedefs.cpp.o
[ 1%] Building CXX object CMakeFiles/manifold.dir/external/manifold/src/BVH.cpp.o
<command-line>:0:15: warning: missing terminating " character
<command-line>:0:0: warning: "VERSION_INFO" redefined
<command-line>:0:0: note: this is the location of the previous definition
[ 1%] Building CXX object CMakeFiles/manifold.dir/external/manifold/src/Intersection.cpp.o
<command-line>:0:15: warning: missing terminating " character
<command-line>:0:0: warning: "VERSION_INFO" redefined
<command-line>:0:0: note: this is the location of the previous definition
[ 2%] Building CXX object CMakeFiles/manifold.dir/external/manifold/src/main.cpp.o
<command-line>:0:15: warning: missing terminating " character
<command-line>:0:0: warning: "VERSION_INFO" redefined
<command-line>:0:0: note: this is the location of the previous definition
In file included from /home/orca/zbz/point-cloud-utils/external/numpyeigen/src/npe_typedefs.h:6:0,
from /home/orca/zbz/point-cloud-utils/external/numpyeigen/src/npe_typedefs.cpp:1:
/home/orca/zbz/point-cloud-utils/external/numpyeigen/cmake/../src/npe_sparse_array.h:17:8: warning: ‘npe::sparse_array’ declared with greater visibility than the type of its field ‘npe::sparse_array::<anonymous>’ [-Wattributes]
struct sparse_array : pybind11::object {
^~~~~~~~~~~~
/home/orca/zbz/point-cloud-utils/external/numpyeigen/cmake/../src/npe_sparse_array.h:17:8: warning: ‘npe::sparse_array’ declared with greater visibility than its base ‘pybind11::object’ [-Wattributes]
[ 2%] Building CXX object CMakeFiles/manifold.dir/external/manifold/src/Model_OBJ.cpp.o
<command-line>:0:15: warning: missing terminating " character
<command-line>:0:0: warning: "VERSION_INFO" redefined
<command-line>:0:0: note: this is the location of the previous definition
[ 3%] Linking CXX static library libnpe.a
[ 3%] Built target npe
Scanning dependencies of target geogram_third_party
[ 3%] Building C object geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/LM7/libmeshb7.c.o
cc: error: unrecognized command line option ‘-m64’
geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/build.make:62: recipe for target 'geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/LM7/libmeshb7.c.o' failed
make[2]: *** [geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/LM7/libmeshb7.c.o] Error 1
CMakeFiles/Makefile2:780: recipe for target 'geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/all' failed
make[1]: *** [geogram/src/lib/geogram/third_party/CMakeFiles/geogram_third_party.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 3%] Linking CXX static library libmanifold.a
[ 3%] Built target manifold
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
Traceback (most recent call last):
File "setup.py", line 116, in <module>
main()
File "setup.py", line 111, in main
test_suite="tests"
File "/usr/local/lib/python3.6/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 39, in run
self.build_extension(ext)
File "setup.py", line 72, in build_extension
subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
File "/usr/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2. |
@fwilliams The installation is successful! Thank you very much for the fix! |
@LilyGinger I think your issue might be fairly straightforward to fix. I'll give it a shot soon. I'm closing this issue and opening #41 for your specific problem |
@fwilliams Hi, we are very sorry to bother you again. |
@LilyGinger Moving this chat to #41: See the discussion there |
Thank you very much for your great work. However, I met some problems when I run pip3 install point_cloud_utils. We would be grateful if you could help us to find the problem!
Here is the output in the console:
The text was updated successfully, but these errors were encountered: