[BUG]Cannot install autogluon on SUSE12SP5
See original GitHub issue- I have checked that this bug exists on the latest stable version of AutoGluon
- and/or I have checked that this bug exists on the latest mainline of AutoGluon via source installation
Describe the bug When I run pip install autogluon,I got some error about pycocotools
Expected behavior A clear and concise description of what you expected to happen.
Building wheels for collected packages: pycocotools
Building wheel for pycocotools (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-39
creating build/lib.linux-x86_64-cpython-39/pycocotools
copying pycocotools/mask.py -> build/lib.linux-x86_64-cpython-39/pycocotools
copying pycocotools/cocoeval.py -> build/lib.linux-x86_64-cpython-39/pycocotools
copying pycocotools/coco.py -> build/lib.linux-x86_64-cpython-39/pycocotools
copying pycocotools/__init__.py -> build/lib.linux-x86_64-cpython-39/pycocotools
running build_ext
cythoning pycocotools/_mask.pyx to pycocotools/_mask.c
/home/lodap/python3/lib/python3.9/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/pip-install-f2iba2jk/pycocotools_b5d365e81ac84efd868735b69c335e87/pycocotools/_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'pycocotools._mask' extension
creating build/temp.linux-x86_64-cpython-39
creating build/temp.linux-x86_64-cpython-39/common
creating build/temp.linux-x86_64-cpython-39/pycocotools
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-all -fPIC -D_FORTIFY_SOURCE=2 -O2 -ftrapv -fstack-check -fPIC -I/home/lodap/python3/lib/python3.9/site-packages/numpy/core/include -I./common -I/home/huawei/python3/include/python3.9 -c ./common/maskApi.c -o build/temp.linux-x86_64-cpython-39/./common/maskApi.o -Wno-cpp -Wno-unused-function -std=c99
./common/maskApi.c: In function ‘rleToBbox’:
./common/maskApi.c:151:32: warning: unused variable ‘xp’ [-Wunused-variable]
uint h, w, xs, ys, xe, ye, xp, cc; siz j, m;
^
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fstack-protector-all -fPIC -D_FORTIFY_SOURCE=2 -O2 -ftrapv -fstack-check -fPIC -I/home/lodap/python3/lib/python3.9/site-packages/numpy/core/include -I./common -I/home/huawei/python3/include/python3.9 -c pycocotools/_mask.c -o build/temp.linux-x86_64-cpython-39/pycocotools/_mask.o -Wno-cpp -Wno-unused-function -std=c99
pycocotools/_mask.c:6:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycocotools
Failed to build pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
To Reproduce
Just run pip install autogluon
Screenshots
Installed Versions
Which version of AutoGluon are you are using?
If you are using 0.4.0 and newer, please run the following code snippet:
0.6.0
```python
# Replace this code with the output of the following:
from autogluon.core.utils import show_versions
show_versions()
```
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 10 months ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Installation — AutoGluon Documentation 0.6.1 documentation
Install AutoGluon from source. Backend: CPU GPU. Built-in backend for CPU.
Read more >make error under PythonAPI, python.h No such file or directory
I didn't catch error but it couldn't install. btw, It let to install ... [BUG]Cannot install autogluon on SUSE12SP5 autogluon/autogluon#2494.
Read more >could not build wheels for pycocotools, which is required to ...
I had Python 3.10 and had the same error installing psutil from pip. ... awslabs/autogluon[BUG]Cannot install autogluon on SUSE12SP5#2494.
Read more >autogluon - PyPI
First install package from terminal: # pip install -U pip # pip install -U setuptools wheel # pip install autogluon # autogluon==0.6.0 from ......
Read more >autogluon - bytemeta
autogluon repo issues. ... Add instructions on how to use AutoGluon on Sagemaker Notebooks including Notebook ... [BUG]Cannot install autogluon on SUSE12SP5.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@bryanyzhu Same issue here: https://github.com/autogluon/autogluon/issues/2521
Marking as resolved due to removing pycoco dependency. Please indicate if this problem has been fixed, and please re-open if errors still occur in AutoGluon v0.6.1.