Unable to complete install of 7.1.5 via script

After many, many unsuccessful attempts of updating my current seafile server and being a single user I decided to just deploy another VM.

Installed a fresh CentOS 8 minimal VM, downloaded the script, execute it and at some point I get the following error - funny enough I’m pretty sure my upgrade attempts also ended with something very similar.

Just not sure where to go from here unfortunately, any help would be appreciated.

Collecting decorator>=4.3.0 (from networkx>=2.0->scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl
Installing collected packages: aggdraw, numpy, scipy, tifffile, imageio, cycler, pyparsing, kiwisolver, matplotlib, PyWavelets, decorator, networkx, scikit-image, psd-tools, django-pylibmc, asgiref, sqlparse, pytz, Django, django-ranged-response, django-simple-captcha
  Running setup.py install for aggdraw ... error
    Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c_iwfb69/aggdraw/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-o3jlazm8-record/install-record.txt --single-version-externally-managed --compile:
    Trying freetype-config to find freetype library...
    Using ctypes to find freetype library...
    Trying 'pkgconfig' to find freetype library...
    === freetype not available
    running install
    running build
    running build_ext
    building 'aggdraw' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/agg2
    creating build/temp.linux-x86_64-3.6/agg2/src
    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DVERSION=1.3.12 -Iagg2/include -I/usr/include/python3.6m -c aggdraw.cxx -o build/temp.linux-x86_64-3.6/aggdraw.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-c_iwfb69/aggdraw/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-o3jlazm8-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-c_iwfb69/aggdraw/

It says it right there: You don’t seem to have gcc installed.
Try doing that before using the script.

Awesome, will give that a shot… thanks!

Installed it - got a little further, however looks like it’s stuck on something with Python even though the script says it installed it (and confirms it - also manually checking what python version is installed confirms it is) - and I don’t really see any info to help move forward with this exit error code now…

[root@seafile seafile]# python3 --version
Python 3.6.8

Any ideas?

This script will install Seafile Community Edition for you.

Last metadata expiration check: 0:05:27 ago on Sun 21 Mar 2021 08:07:35 PM EDT.
Package firewalld-0.8.2-6.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Warning: ALREADY_ENABLED: ssh
success
Warning: ALREADY_ENABLED: http
success
Warning: ALREADY_ENABLED: https
success
success
Last metadata expiration check: 0:05:30 ago on Sun 21 Mar 2021 08:07:35 PM EDT.
Package epel-release-8-10.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
Last metadata expiration check: 0:05:31 ago on Sun 21 Mar 2021 08:07:35 PM EDT.
Package python36-3.6.8-2.module_el8.4.0+666+456f5f48.x86_64 is already installed.
Package python3-setuptools-39.2.0-6.el8.noarch is already installed.
Package python3-pip-9.0.3-19.el8.noarch is already installed.
Package python3-ldap-3.3.1-1.el8.x86_64 is already installed.
Package memcached-1.5.22-2.el8.x86_64 is already installed.
Package java-1.8.0-openjdk-1:1.8.0.282.b08-4.el8.x86_64 is already installed.
Package libmemcached-1.0.18-15.el8.x86_64 is already installed.
Package libreoffice-core-1:6.4.7.2-5.el8.x86_64 is already installed.
Package libreoffice-pyuno-1:6.4.7.2-5.el8.x86_64 is already installed.
Package libffi-devel-3.1-22.el8.x86_64 is already installed.
Package pwgen-2.08-3.el8.x86_64 is already installed.
Package curl-7.61.1-18.el8.x86_64 is already installed.
Package tar-2:1.30-5.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Requirement already satisfied: Pillow in /usr/local/lib64/python3.6/site-packages
Requirement already satisfied: pylibmc in /usr/local/lib64/python3.6/site-packages
Requirement already satisfied: captcha in /usr/local/lib/python3.6/site-packages
Requirement already satisfied: jinja2 in /usr/local/lib64/python3.6/site-packages
Requirement already satisfied: sqlalchemy in /usr/local/lib64/python3.6/site-packages
Collecting psd-tools
  Using cached https://files.pythonhosted.org/packages/7b/8b/ea0c4aa236a9550a3a7866efe4b29440657b5387c88c9c0d4491631869a4/psd-tools-1.9.17.tar.gz
Collecting django-pylibmc
  Using cached https://files.pythonhosted.org/packages/1b/2b/cbc55be77062f783b2a28dcc0aa6bb8f55ebbbf2c186b76e58ea79e25ee5/django_pylibmc-0.6.1-py2.py3-none-any.whl
Collecting django-simple-captcha
  Using cached https://files.pythonhosted.org/packages/c9/f5/806a4bf3321e3b5baf51866f6a7e943fa7b61c2f0f562e0882406d719c8f/django-simple-captcha-0.5.14.zip
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib64/python3.6/site-packages (from jinja2)
Requirement already satisfied: greenlet!=0.4.17; python_version >= "3" in /usr/local/lib64/python3.6/site-packages (from sqlalchemy)
Requirement already satisfied: importlib-metadata; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from sqlalchemy)
Requirement already satisfied: docopt>=0.5 in /usr/local/lib/python3.6/site-packages (from psd-tools)
Requirement already satisfied: attrs>=19.2.0 in /usr/local/lib/python3.6/site-packages (from psd-tools)
Collecting aggdraw (from psd-tools)
  Using cached https://files.pythonhosted.org/packages/c0/fe/ecb4d498145c825c5df565afb9fb3a52ff329599127d904d2bab6104506a/aggdraw-1.3.12.tar.gz
Collecting numpy (from psd-tools)
  Using cached https://files.pythonhosted.org/packages/45/b2/6c7545bb7a38754d63048c7696804a0d947328125d81bf12beaa692c3ae3/numpy-1.19.5-cp36-cp36m-manylinux1_x86_64.whl
Collecting scipy (from psd-tools)
  Using cached https://files.pythonhosted.org/packages/c8/89/63171228d5ced148f5ced50305c89e8576ffc695a90b58fe5bb602b910c2/scipy-1.5.4-cp36-cp36m-manylinux1_x86_64.whl
Collecting scikit-image (from psd-tools)
  Using cached https://files.pythonhosted.org/packages/0e/ba/53e1bfbdfd0f94514d71502e3acea494a8b4b57c457adbc333ef386485da/scikit_image-0.17.2-cp36-cp36m-manylinux1_x86_64.whl
Requirement already satisfied: six>=1.2.0 in /usr/lib/python3.6/site-packages (from django-simple-captcha)
Collecting Django>=2.2 (from django-simple-captcha)
  Using cached https://files.pythonhosted.org/packages/b8/6f/9a4415cc4fe9228e26ea53cf2005961799b2abb8da0411e519fdb74754fa/Django-3.1.7-py3-none-any.whl
Collecting django-ranged-response==0.2.0 (from django-simple-captcha)
  Using cached https://files.pythonhosted.org/packages/70/e3/9372fcdca8e9c3205e7979528ccd1a14354a9a24d38efff11c1846ff8bf1/django-ranged-response-0.2.0.tar.gz
Requirement already satisfied: typing-extensions>=3.6.4; python_version < "3.8" in /usr/local/lib/python3.6/site-packages (from importlib-metadata; python_version < "3.8"->sqlalchemy)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/site-packages (from importlib-metadata; python_version < "3.8"->sqlalchemy)
Collecting networkx>=2.0 (from scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/9b/cd/dc52755d30ba41c60243235460961fc28022e5b6731f16c268667625baea/networkx-2.5-py3-none-any.whl
Collecting imageio>=2.3.0 (from scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/6e/57/5d899fae74c1752f52869b613a8210a2480e1a69688e65df6cb26117d45d/imageio-2.9.0-py3-none-any.whl
Collecting tifffile>=2019.7.26 (from scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/42/6b/93a8ee61c6fbe20fa9c17928bd3b80484902b7fd454cecaffba42f5052cb/tifffile-2020.9.3-py3-none-any.whl
Collecting matplotlib!=3.0.0,>=2.0.0 (from scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/09/03/b7b30fa81cb687d1178e085d0f01111ceaea3bf81f9330c937fb6f6c8ca0/matplotlib-3.3.4-cp36-cp36m-manylinux1_x86_64.whl
Collecting PyWavelets>=1.1.1 (from scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/59/bb/d2b85265ec9fa3c1922210c9393d4cdf7075cc87cce6fe671d7455f80fbc/PyWavelets-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting pytz (from Django>=2.2->django-simple-captcha)
  Using cached https://files.pythonhosted.org/packages/70/94/784178ca5dd892a98f113cdd923372024dc04b8d40abe77ca76b5fb90ca6/pytz-2021.1-py2.py3-none-any.whl
Collecting asgiref<4,>=3.2.10 (from Django>=2.2->django-simple-captcha)
  Using cached https://files.pythonhosted.org/packages/89/49/5531992efc62f9c6d08a7199dc31176c8c60f7b2548c6ef245f96f29d0d9/asgiref-3.3.1-py3-none-any.whl
Collecting sqlparse>=0.2.2 (from Django>=2.2->django-simple-captcha)
  Using cached https://files.pythonhosted.org/packages/14/05/6e8eb62ca685b10e34051a80d7ea94b7137369d8c0be5c3b9d9b6e3f5dae/sqlparse-0.4.1-py3-none-any.whl
Collecting decorator>=4.3.0 (from networkx>=2.0->scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl
Collecting kiwisolver>=1.0.1 (from matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/a7/1b/cbd8ae738719b5f41592a12057ef5442e2ed5f5cb5451f8fc7e9f8875a1a/kiwisolver-1.3.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 (from matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl
Collecting cycler>=0.10 (from matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
  Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl
Requirement already satisfied: python-dateutil>=2.1 in /usr/lib/python3.6/site-packages (from matplotlib!=3.0.0,>=2.0.0->scikit-image->psd-tools)
Installing collected packages: aggdraw, numpy, scipy, decorator, networkx, imageio, tifffile, kiwisolver, pyparsing, cycler, matplotlib, PyWavelets, scikit-image, psd-tools, django-pylibmc, pytz, asgiref, sqlparse, Django, django-ranged-response, django-simple-captcha
  Running setup.py install for aggdraw ... error
    Complete output from command /usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-767kcotk/aggdraw/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-uvj1cwg2-record/install-record.txt --single-version-externally-managed --compile:
    Trying freetype-config to find freetype library...
    Using ctypes to find freetype library...
    Trying 'pkgconfig' to find freetype library...
    === freetype not available
    running install
    running build
    running build_ext
    building 'aggdraw' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/agg2
    creating build/temp.linux-x86_64-3.6/agg2/src
    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DVERSION=1.3.12 -Iagg2/include -I/usr/include/python3.6m -c aggdraw.cxx -o build/temp.linux-x86_64-3.6/aggdraw.o
    aggdraw.cxx:61:10: fatal error: Python.h: No such file or directory
     #include "Python.h"
              ^~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-767kcotk/aggdraw/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-uvj1cwg2-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-767kcotk/aggdraw/

Welp, some creative googling and google translate led me to this link: https://bbs.seafile.com/t/topic/13244/3, and the solution here is to run the following command:

yum install python36-devel gcc gcc-c++

and everything installed correctly.

Cheers!

1 Like

Great, glad you got it working!