Toybrick

rknn_toolkit-1.2.0 安装失败 有人遇到了么?

linuxsky

注册会员

积分
151
楼主
发表于 2019-9-10 16:11:30    查看: 9727|回复: 4 | [复制链接]    打印 | 只看该作者
[toybrick@rk1808 tmp]$ ls
rknn_toolkit-1.2.0-cp36-cp36m-linux_aarch64.whl
systemd-private-e3f226c18bf843b4a9ebc16b2758ed04-chronyd.service-KloDek
[toybrick@rk1808 tmp]$ pip3 install --user rknn_toolkit-1.2.0-cp36-cp36m-linux_aarch64.whl
Processing ./rknn_toolkit-1.2.0-cp36-cp36m-linux_aarch64.whl
Collecting onnx-tf==1.2.1 (from rknn-toolkit==1.2.0)
  Downloading https://files.pythonhosted.org/p ... nnx-tf-1.2.1.tar.gz (74kB)
    100% |████████████████████████████████| 81kB 11kB/s
Requirement already satisfied: lmdb>=0.92 in /usr/local/lib64/python3.6/site-packages (from rknn-toolkit==1.2.0)
Collecting onnx==1.4.1 (from rknn-toolkit==1.2.0)
  Downloading https://files.pythonhosted.org/p ... a/onnx-1.4.1.tar.gz (2.9MB)
    100% |████████████████████████████████| 2.9MB 48kB/s
Collecting scipy>=1.1.0 (from rknn-toolkit==1.2.0)
  Using cached https://files.pythonhosted.org/p ... /scipy-1.3.1.tar.gz
Requirement already satisfied: flask>=1.0.2 in /home/toybrick/.local/lib/python3.6/site-packages (from rknn-toolkit==1.2.0)
Collecting Pillow>=3.1.2 (from rknn-toolkit==1.2.0)
  Using cached https://files.pythonhosted.org/p ... Pillow-6.1.0.tar.gz
Collecting dill==0.2.8.2 (from rknn-toolkit==1.2.0)
  Using cached https://files.pythonhosted.org/p ... dill-0.2.8.2.tar.gz
Requirement already satisfied: numpy>=1.14.3 in /home/toybrick/.local/lib/python3.6/site-packages (from rknn-toolkit==1.2.0)
Requirement already satisfied: protobuf>=3.5.2 in /usr/local/lib/python3.6/site-packages (from rknn-toolkit==1.2.0)
Collecting h5py>=2.7.1 (from rknn-toolkit==1.2.0)
  Using cached https://files.pythonhosted.org/p ... /h5py-2.10.0.tar.gz
Collecting ruamel.yaml==0.15.82 (from rknn-toolkit==1.2.0)
  Using cached https://files.pythonhosted.org/p ... yaml-0.15.82.tar.gz
Requirement already satisfied: flatbuffers==1.9 in /usr/local/lib/python3.6/site-packages (from rknn-toolkit==1.2.0)
Collecting psutil>=5.6.2 (from rknn-toolkit==1.2.0)
  Using cached https://files.pythonhosted.org/p ... psutil-5.6.3.tar.gz
Requirement already satisfied: networkx==1.11 in /usr/local/lib/python3.6/site-packages (from rknn-toolkit==1.2.0)
Requirement already satisfied: PyYAML in /usr/lib64/python3.6/site-packages (from onnx-tf==1.2.1->rknn-toolkit==1.2.0)
Requirement already satisfied: six in /usr/lib/python3.6/site-packages (from onnx==1.4.1->rknn-toolkit==1.2.0)
Requirement already satisfied: typing>=3.6.4 in /usr/local/lib/python3.6/site-packages (from onnx==1.4.1->rknn-toolkit==1.2.0)
Requirement already satisfied: typing-extensions>=3.6.2.1 in /usr/local/lib/python3.6/site-packages (from onnx==1.4.1->rknn-toolkit==1.2.0)
Requirement already satisfied: Werkzeug>=0.15 in /home/toybrick/.local/lib/python3.6/site-packages (from flask>=1.0.2->rknn-toolkit==1.2.0)
Requirement already satisfied: itsdangerous>=0.24 in /home/toybrick/.local/lib/python3.6/site-packages (from flask>=1.0.2->rknn-toolkit==1.2.0)
Requirement already satisfied: Jinja2>=2.10.1 in /usr/lib/python3.6/site-packages (from flask>=1.0.2->rknn-toolkit==1.2.0)
Requirement already satisfied: click>=5.1 in /home/toybrick/.local/lib/python3.6/site-packages (from flask>=1.0.2->rknn-toolkit==1.2.0)
Requirement already satisfied: setuptools in /usr/lib/python3.6/site-packages (from protobuf>=3.5.2->rknn-toolkit==1.2.0)
Requirement already satisfied: decorator>=3.4.0 in /usr/lib/python3.6/site-packages (from networkx==1.11->rknn-toolkit==1.2.0)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/lib64/python3.6/site-packages (from Jinja2>=2.10.1->flask>=1.0.2->rknn-toolkit==1.2.0)
Installing collected packages: onnx, onnx-tf, scipy, Pillow, dill, h5py, ruamel.yaml, psutil, rknn-toolkit
  Running setup.py install for onnx ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-vsgir1r1/onnx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-viixw02u-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    fatal: not a git repository (or any parent up to mount point /)
    Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
    running install
    running build
    running build_py
    running create_version
    running cmake_build
    -- Build type not set - defaulting to Release
    -- The C compiler identification is GNU 8.3.1
    -- The CXX compiler identification is GNU 8.3.1
    -- 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
    CMake Error at CMakeLists.txt:217 (message):
      Protobuf compiler not found
    Call Stack (most recent call first):
      CMakeLists.txt:248 (relative_protobuf_generate_cpp)


    -- Configuring incomplete, errors occurred!
    See also "/tmp/pip-build-vsgir1r1/onnx/.setuptools-cmake-build/CMakeFiles/CMakeOutput.log".
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-vsgir1r1/onnx/setup.py", line 328, in <module>
        'backend-test-tools = onnx.backend.test.cmd_tools:main',
      File "/usr/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib64/python3.6/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/usr/lib64/python3.6/distutils/dist.py", line 955, in run_commands
        self.run_command(cmd)
      File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/usr/lib64/python3.6/distutils/command/install.py", line 556, in run
        self.run_command('build')
      File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/usr/lib64/python3.6/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-vsgir1r1/onnx/setup.py", line 203, in run
        self.run_command('cmake_build')
      File "/usr/lib64/python3.6/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/usr/lib64/python3.6/distutils/dist.py", line 974, in run_command
        cmd_obj.run()
      File "/tmp/pip-build-vsgir1r1/onnx/setup.py", line 190, in run
        subprocess.check_call(cmake_args)
      File "/usr/lib64/python3.6/subprocess.py", line 311, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/usr/bin/cmake3', '-DPYTHON_INCLUDE_DIR=/usr/include/python3.6m', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-36m-aarch64-linux-gnu.so', '/tmp/pip-build-vsgir1r1/onnx']' returned non-zero exit status 1.

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-vsgir1r1/onnx/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-viixw02u-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-vsgir1r1/onnx/
[toybrick@rk1808 tmp]$


回复

使用道具 举报

troy

版主

积分
2374
沙发
发表于 2019-9-10 16:59:02 | 只看该作者
计算棒出厂时已经自带了rknn-toolkit,不能安装rknn-toolkit 1.2.0,那个是给上位机用的
回复

使用道具 举报

18022443868

中级会员

积分
230
板凳
发表于 2019-11-8 16:24:30 | 只看该作者
上位机是什么意思?
回复

使用道具 举报

troy

版主

积分
2374
地板
发表于 2019-11-13 17:56:35 | 只看该作者
18022443868 发表于 2019-11-8 16:24
上位机是什么意思?

你的计算棒插在哪里,哪里就是上位机。
回复

使用道具 举报

18022443868

中级会员

积分
230
5#
发表于 2019-11-14 16:00:22 | 只看该作者
rknn_base.cpython-35m-aarch64-linux-gnu.so:undefined symbol:pyfpe_jbuf 这个错误如何解决?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表