How to Solve labelme Install Error in Ubuntu

How To Solve Labelme Install Error In Ubuntu

According to the official pointers, hyperlink: GitHub – wkentaro/label: image polygon annotation with python (polygon, rectangle, circle, line, point and image level flag annotation)

conda create --name=labelme python=3
supply activate labelme
pip set up labelme

Question 1:

gcc -pthread -B /dwelling/XXX/fxp/envs/labelme/compiler_compat -Wno-unused-
consequence -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem 
/dwelling/XXX/fxp/envs/labelme/embrace -fPIC -O2 -isystem 
/dwelling/XXX/fxp/envs/labelme/embrace -fPIC -DFREETYPE_BUILD_TYPE=system -
DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib_ft2font_ARRAY_API -
DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -
Iextern/agg24-svn/embrace -I/dwelling/XXX/fxp/envs/labelme/lib/python3.10/site-
packages/numpy/core/embrace -I/dwelling/XXX/fxp/envs/labelme/embrace/python3.10
 -c src/checkdep_freetype2.c -o construct/temp.linux-x86_64-cpython-
310/src/checkdep_freetype2.o
      src/checkdep_freetype2.c:3:6: error: #error "FreeType model 2.3 or increased 
is required. You might set the MPLLOCALFREETYPE atmosphere variable to 1 to let 
Matplotlib obtain it."
           #error "FreeType model 2.3 or increased is required. 

            ^~~~~
      src/checkdep_freetype2.c:10:10: error: #embrace expects "FILENAME" or 
<FILENAME>
       #embrace FT_FREETYPE_H
                ^~~~~~~~~~~~~
      src/checkdep_freetype2.c:15:9: be aware: #pragma message: Compiling with FreeType model FREETYPE_MAJOR.FREETYPE_MINOR.FREETYPE_PATCH.
       #pragma message("Compiling with FreeType version " 
               ^~~~~~~
      src/checkdep_freetype2.c:18:4: error: #error "FreeType model 2.3 or increased
 is required. You might set the MPLLOCALFREETYPE atmosphere variable to 1 to let Matplotlib obtain it."
         #error "FreeType model 2.3 or increased is required. 
          ^~~~~
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]
  
  be aware: This error originates from a subprocess, and is probably going not an issue with 
pip.
error: legacy-install-failure

× Encountered error whereas attempting to set up bundle.
╰─> matplotlib

be aware: This is a matter with the bundle talked about above, not pip.
trace: See above for output from the failure.

Relevant dependent libraries want to be put in:

sudo apt-get replace
sudo apt-get set up libfreetype6-dev
sudo apt-get set up pkg-config
sudo apt-get set up libpng12-dev
sudo apt-get set up pkg-config

Error 2 encountered:

labelme
[INFO   ] __init__:get_config:70 - Loading config file from: /dwelling/XXX/.labelmerc
Traceback (most up-to-date name final):
  File "/home/XXX/fxp/envs/labelme/lib/python3.10/site-packages/labelme/widgets/canvas.py", line 618, in paintEvent
    p.translate(self.offsetToCenter())
  File "/home/XXX/fxp/envs/labelme/lib/python3.10/site-packages/labelme/widgets/canvas.py", line 659, in offsetToCenter
    return QtCore.QPoint(x, y)
SortError: arguments didn't match any overloaded name:
  QPoint(): too many arguments
  QPoint(int, int): argument 1 has sudden kind 'float'
  QPoint(QPoint): argument 1 has sudden kind 'float'
Aborted (core dumped)

Reference hyperlink: https://github.com/wkentaro/labelme/issues/1006

READ :  What Is JS Queryselector?

I suppose the python model is simply too excessive, so I recreated the digital atmosphere with pyhton = 3.9

conda create --prefix=/dwelling/fxp/envs/labelme python=3.9 -y

The last set up is profitable;

Leave a Reply

Your email address will not be published.