Skip to content

install python libraries on Fedora #96

Open
@me2x

Description

@me2x

When installing the libraries as per the readme

$ ck install package --tags=lib,python-package,numpy

on the Fedora system, the linking to the build folder is not correct and the libraries are not detected by ck env.

specification of the OS:

$ck detect platform
***************************************************************************************
Detecting OS and CPU features ...

OS CK UOA:            linux-64 (4258b5fe54828a50)

OS name:              Fedora 28 (Workstation Edition)
Short OS name:        Linux 5.0.9
Long OS name:         Linux-5.0.9-100.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight
OS bits:              64
OS ABI:               x86_64

Platform init UOA:    42818da3a0789331

output of install is:

*** Installation path used: /home/emanuele/CK-TOOLS/lib-python-numpy-compiler.python-3.6.8-linux-64
  -----------------------------------
  Resolving software dependencies ...

*** Dependency 1 = python (Python interpreter):

    Resolved. CK environment UID = cf74dffbfce54916 (detected version 3.6.8)
  -----------------------------------

Installing to /home/emanuele/CK-TOOLS/lib-python-numpy-compiler.python-3.6.8-linux-64

**************************************************************

Cleanup: removing /home/emanuele/CK-TOOLS/lib-python-numpy-compiler.python-3.6.8-linux-64/python_deps_site
Installing 'numpy' and its dependencies to '/home/emanuele/CK-TOOLS/lib-python-numpy-compiler.python-3.6.8-linux-64/python_deps_site/lib/python3.6/site-packages' ...
Collecting numpy
  Using cached https://files.pythonhosted.org/packages/c1/e2/4db8df8f6cddc98e7d7c537245ef2f4e41a1ed17bf0c3177ab3cc6beac7f/numpy-1.16.3-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: numpy
Successfully installed numpy-1.16.3

Setting up environment for installed package ...
  (full path = /home/emanuele/CK-TOOLS/lib-python-numpy-compiler.python-3.6.8-linux-64/build/numpy/__init__.py)

  Software entry found: lib.python.numpy (6a10047b1bcd16fc)

  -----------------------------------
  Resolving software dependencies ...

*** Dependency 1 = python (Python interpreter):

    Resolved. CK environment UID = cf74dffbfce54916 (detected version 3.6.8)
  -----------------------------------
CK error: [package] software not found in a specified path (/home/emanuele/CK-TOOLS/lib-python-numpy-compiler.python-3.6.8-linux-64/build/numpy/__init__.py)!

The problem is the linking to the build folder inside the CK-TOOLS folder: the automatically created link is build -> /home/emanuele/CK-TOOLS/lib-python-numpy-compiler.python-3.6.8-linux-64/python_deps_site/lib/python3.6/site-packages
However, the correct location of the installed library is:
/home/emanuele/CK-TOOLS/lib-python-numpy-compiler.python-3.6.8-linux-64/python_deps_site/lib64/python3.6/site-packages

This happened to me to all the dependencies required to run MLPerf Inference - Object Detection - SSD-MobileNet that were installed with ck install.

A simple workaround is to modify the link manually and re-run installation to register the packages.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions