ltechkorea / mlperf-inference

Reference implementations of MLPerf™ inference benchmarks
Other
0 stars 0 forks source link

[BUG] ModuleNotFoundError: No module named 'absl' #62

Closed byounghak36 closed 3 years ago

byounghak36 commented 3 years ago

Describe the bug

A clear and concise description of what the bug is.

Screenshots or Logs

If applicable, add screenshots to help explain your problem.

tanssg@ltech-gpu10:~/mlperf-inference/loadgen (test)
$ CFLAGS="-std=c++14 -O3" python setup.py develop
Traceback (most recent call last):
  File "setup.py", line 29, in <module>
    from version_generator import generate_loadgen_version_definitions
  File "/home/tanssg/mlperf-inference/loadgen/version_generator.py", line 25, in <module>
    from absl import app
ModuleNotFoundError: No module named 'absl'

Expected behavior

A clear and concise description of what you expected to happen.

Possible Solution

  1. absl install
    pip install absl-py

Additional context

Add any other context about the problem here.

byounghak36 commented 3 years ago

absl install 후 아래와 같이 에러발생

tanssg@ltech-gpu10:~/mlperf-inference/loadgen (test)
$ pip install absl-py
Defaulting to user installation because normal site-packages is not writeable
Collecting absl-py
  Downloading absl_py-0.13.0-py3-none-any.whl (132 kB)
     |████████████████████████████████| 132 kB 1.1 MB/s
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from absl-py) (1.14.0)
Installing collected packages: absl-py
Successfully installed absl-py-0.13.0
tanssg@ltech-gpu10:~/mlperf-inference/loadgen (test)
$ CFLAGS="-std=c++14 -O3" python setup.py develop
running develop
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 13] Permission denied: '/usr/local/lib/python3.8/dist-packages/test-easy-install-2628022.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/local/lib/python3.8/dist-packages/

Perhaps your account does not have write access to this directory?  If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account.  If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.

For information on other options, you may wish to consult the
documentation at:

  https://setuptools.readthedocs.io/en/latest/easy_install.html

Please make the appropriate changes for your system and try again.

local에서 빌드하려하여 권한문제가 생긴듯함, docker 내부에서 loadgen build 진행 예정

byounghak36 commented 3 years ago

Screenshots or Logs

byounghak36 commented 3 years ago