ffrecord
ffrecord copied to clipboard
subprocess.CalledProcessError: Command...returned non-zero exit status 1
Hi! I meet the following problem when I try to install ffrecord for the creation of my dataset.
root@autodl-container-bdc511890c-63d75261:~/Project/ffrecord# python3 setup.py install
running install
running bdist_egg
running egg_info
writing ffrecord.egg-info/PKG-INFO
writing dependency_links to ffrecord.egg-info/dependency_links.txt
writing requirements to ffrecord.egg-info/requires.txt
writing top-level names to ffrecord.egg-info/top_level.txt
reading manifest file 'ffrecord.egg-info/SOURCES.txt'
writing manifest file 'ffrecord.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
PYBIND11_CMAKE_DIR is set to: /root/miniconda3/lib/python3.8/site-packages/pybind11/share/cmake/pybind11
-- Found pybind11: /root/miniconda3/lib/python3.8/site-packages/pybind11/include (found version "2.10.1")
-- Configuring done
-- Generating done
-- Build files have been written to: /root/Project/ffrecord/build/temp.linux-x86_64-3.8
[ 20%] Building CXX object CMakeFiles/_ffrecord_cpp.dir/reader.cpp.o
/root/Project/ffrecord/ffrecord/src/reader.cpp:13:10: fatal error: libaio.h: No such file or directory
13 | #include <libaio.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/_ffrecord_cpp.dir/build.make:76: CMakeFiles/_ffrecord_cpp.dir/reader.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/_ffrecord_cpp.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
My environment is: ` Linux version 5.4.0-48-generic (buildd@lcy01-amd64-023) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020
Package Version
absl-py 1.1.0 anyio 3.6.1 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 asttokens 2.0.5 attrs 21.4.0 Babel 2.10.3 backcall 0.2.0 beautifulsoup4 4.11.1 bleach 5.0.0 brotlipy 0.7.0 cachetools 5.2.0 certifi 2021.5.30 cffi 1.14.6 chardet 4.0.0 cmake 3.25.2 conda 4.10.3 conda-package-handling 1.7.3 cryptography 3.4.7 cycler 0.11.0 debugpy 1.6.0 decorator 5.1.1 defusedxml 0.7.1 entrypoints 0.4 executing 0.8.3 fastjsonschema 2.15.3 fonttools 4.33.3 google-auth 2.8.0 google-auth-oauthlib 0.4.6 grpcio 1.46.3 idna 2.10 importlib-metadata 4.11.4 importlib-resources 5.8.0 ipykernel 6.15.0 ipython 8.4.0 ipython-genutils 0.2.0 ipywidgets 7.7.0 jedi 0.18.1 Jinja2 3.1.2 json5 0.9.8 jsonschema 4.6.0 jupyter-client 7.3.4 jupyter-core 4.10.0 jupyter-server 1.17.1 jupyterlab 3.4.3 jupyterlab-language-pack-zh-CN 3.4.post1 jupyterlab-pygments 0.2.2 jupyterlab-server 2.14.0 jupyterlab-widgets 1.1.0 kiwisolver 1.4.3 Markdown 3.3.7 MarkupSafe 2.1.1 matplotlib 3.5.2 matplotlib-inline 0.1.3 mistune 0.8.4 nbclassic 0.3.7 nbclient 0.6.4 nbconvert 6.5.0 nbformat 5.4.0 nest-asyncio 1.5.5 notebook 6.4.12 notebook-shim 0.1.0 numpy 1.22.4 oauthlib 3.2.0 packaging 21.3 pandocfilters 1.5.0 parso 0.8.3 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.1.1 pip 21.1.3 prometheus-client 0.14.1 prompt-toolkit 3.0.29 protobuf 3.19.4 psutil 5.9.1 ptyprocess 0.7.0 pure-eval 0.2.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 pybind11 2.10.1 pycosat 0.6.3 pycparser 2.20 Pygments 2.12.0 pyOpenSSL 20.0.1 pyparsing 3.0.9 pyrsistent 0.18.1 PySocks 1.7.1 python-dateutil 2.8.2 pytz 2022.1 pyzmq 23.2.0 requests 2.25.1 requests-oauthlib 1.3.1 rsa 4.8 ruamel-yaml-conda 0.15.100 Send2Trash 1.8.0 setuptools 52.0.0.post20210125 six 1.16.0 sniffio 1.2.0 soupsieve 2.3.2.post1 stack-data 0.3.0 supervisor 4.2.4 tensorboard 2.9.1 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 terminado 0.15.0 tinycss2 1.1.1 torch 1.11.0+cu113 torchvision 0.12.0+cu113 tornado 6.1 tqdm 4.61.2 traitlets 5.3.0 typing-extensions 4.2.0 urllib3 1.26.6 wcwidth 0.2.5 webencodings 0.5.1 websocket-client 1.3.3 Werkzeug 2.1.2 wheel 0.36.2 widgetsnbextension 3.6.0 zipp 3.8.0 `
I need your help! Thank you very much!
Please try:
sudo apt-get install -y libaio-dev