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

Cannot build 2.4.3 on Raspberry Pi 5 #155

Open
tspannhw opened this issue May 30, 2024 · 7 comments
Open

Cannot build 2.4.3 on Raspberry Pi 5 #155

tspannhw opened this issue May 30, 2024 · 7 comments
Assignees

Comments

@tspannhw
Copy link

======== Input profiles ========
Profile host:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux

Profile build:
[settings]
arch=armv8
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=12
os=Linux

ERROR: Error loading conanfile at '/opt/demo/milvus-lite/conanfile.py': Unable to load conanfile in /opt/demo/milvus-lite/conanfile.py
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/opt/demo/milvus-lite/conanfile.py", line 1, in
from conans import ConanFile
ImportError: cannot import name 'ConanFile' from 'conans' (/home/tspann/milvusvenv/lib/python3.11/site-packages/conans/init.py)

Traceback (most recent call last):
File "/opt/demo/milvus-lite/python/setup.py", line 146, in
setup(name='milvus-lite',
File "/home/tspann/milvusvenv/lib/python3.11/site-packages/setuptools/init.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tspann/milvusvenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "/home/tspann/milvusvenv/lib/python3.11/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/home/tspann/milvusvenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/tspann/milvusvenv/lib/python3.11/site-packages/setuptools/dist.py", line 968, in run_command
super().run_command(command)
File "/home/tspann/milvusvenv/lib/python3.11/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/demo/milvus-lite/python/setup.py", line 101, in run
subprocess.check_call(['conan', 'install', extdir, '--build=missing', '-s', 'build_type=Release', '-s', 'compiler.libcxx=libstdc++11'],
File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['conan', 'install', '/opt/demo/milvus-lite', '--build=missing', '-s', 'build_type=Release', '-s', 'compiler.libcxx=libstdc++11']' returned non-zero exit status 1.
(milvusvenv) root@five:/opt/demo/milvus-lite/python# python3 setup.py bdist_wheel

@junjiejiangjjj
Copy link
Collaborator

Have the prerequisite dependencies been installed? You can refer to this: https://github.com/milvus-io/milvus-lite/blob/main/scripts/Dockerfile

@timspannzilliz
Copy link

I'll try but Raspberry Pi is Debian and not RHEL. I'll check for equivalents

@Presburger
Copy link
Collaborator

Presburger commented May 31, 2024

pip3 install conan==1.63.0

please use conan 1.x

@timspannzilliz
Copy link

It did not work, also did not work for NVIDIA Ubuntu

@xiaofan-luan
Copy link

I don't think any of us tried to compile on debian with arm platform.

@xiaofan-luan
Copy link

Running it on this platform takes many efforts:
we need high gcc version, conan support on this platform and arm might also need special change

@Presburger
Copy link
Collaborator

During this period, we will try to release an arm64 version of the Python wheel package.

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

5 participants