[GH-ISSUE #1959] erreur update 1.15.0 #1476

Closed
opened 2026-02-27 11:17:18 +03:00 by kerem · 4 comments
Owner

Originally created by @Master13011 on GitHub (May 11, 2020).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1959

Impacted versions

  • Modoboa: 1.14.0
  • installer used: Yes/No ? Yes
  • Webserver: Nginx

Steps to reproduce

sudo -u modoboa -i
cd /srv/modoboa/
mv env env.bck
virtualenv --python=python3.6 env
pip3 install --upgrade
source env/bin/activate
python --version -> 2.7.5
pip install modoboa==1.15.0
cd instance
python manage.py migrate
ModuleNotFoundError: No module named 'modoboa_XX' (contacts/sieve,etc)
pip3 install modoboa_stats==1.5.0 -> Error

Current behavior

Building wheels for collected packages: rrdtool
  Building wheel for rrdtool (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /srv/modoboa/env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_3sqzfep/rrdtool/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_3sqzfep/rrdtool/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-z_rx4o6m
       cwd: /tmp/pip-install-_3sqzfep/rrdtool/
  Complete output (17 lines):
  tmp/tmp_python_rrdtoolj4uc0nxo/test_rrdtool.o : Dans la fonction « main » :
  /tmp/tmp_python_rrdtoolj4uc0nxo/test_rrdtool.c:6 : référence indéfinie vers « rrd_fetch_cb_register »
  collect2: erreur: ld a retourné 1 code d'état d'exécution
  Warning: Seems like your rrdtool version does not support fetch callbacks, recompiling./usr/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_ext
  building 'rrdtool' extension
  creating build
  creating build/temp.linux-x86_64-3.6
  gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPACKAGE_VERSION="0.1.15" -I/tmp/pip-install-_3sqzfep/rrdtool -I/usr/local/include -I/usr/include/python3.6m -c rrdtoolmodule.c -o build/temp.linux-x86_64-3.6/rrdtoolmodule.o
  rrdtoolmodule.c:25:20: erreur fatale: Python.h : Aucun fichier ou dossier de ce type
   #include <Python.h>
                      ^
  compilation terminée.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for rrdtool
  Running setup.py clean for rrdtool
Failed to build rrdtool
Installing collected packages: rrdtool, modoboa-stats
    Running setup.py install for rrdtool ... error
    ERROR: Command errored out with exit status 1:
     command: /srv/modoboa/env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_3sqzfep/rrdtool/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_3sqzfep/rrdtool/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-record-xr45e2nv/install-record.txt --single-version-externally-managed --compile --install-headers /srv/modoboa/env/include/site/python3.6/rrdtool
         cwd: /tmp/pip-install-_3sqzfep/rrdtool/
    Complete output (17 lines):
    tmp/tmp_python_rrdtoolsw0wl29e/test_rrdtool.o : Dans la fonction « main » :
    /tmp/tmp_python_rrdtoolsw0wl29e/test_rrdtool.c:6 : référence indéfinie vers « rrd_fetch_cb_register »
    collect2: erreur: ld a retourné 1 code d'état d'exécution
    Warning: Seems like your rrdtool version does not support fetch callbacks, recompiling./usr/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_ext
    building 'rrdtool' extension
    creating build
    creating build/temp.linux-x86_64-3.6
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPACKAGE_VERSION="0.1.15" -I/tmp/pip-install-_3sqzfep/rrdtool -I/usr/local/include -I/usr/include/python3.6m -c rrdtoolmodule.c -o build/temp.linux-x86_64-3.6/rrdtoolmodule.o
    rrdtoolmodule.c:25:20: erreur fatale: Python.h : Aucun fichier ou dossier de ce type
     #include <Python.h>
                        ^
    compilation terminée.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /srv/modoboa/env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_3sqzfep/rrdtool/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_3sqzfep/rrdtool/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-record-xr45e2nv/install-record.txt --single-version-externally-managed --compile --install-headers /srv/modoboa/env/include/site/python3.6/rrdtool Check the logs for full command output.

Expected behavior

Video/Screenshot link (optional)

Originally created by @Master13011 on GitHub (May 11, 2020). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1959 # Impacted versions * Modoboa: 1.14.0 * installer used: Yes/No ? Yes * Webserver: Nginx # Steps to reproduce sudo -u modoboa -i cd /srv/modoboa/ mv env env.bck virtualenv --python=python3.6 env pip3 install --upgrade source env/bin/activate python --version -> 2.7.5 pip install modoboa==1.15.0 cd instance python manage.py migrate ModuleNotFoundError: No module named 'modoboa_XX' (contacts/sieve,etc) pip3 install modoboa_stats==1.5.0 -> Error # Current behavior ``` Building wheels for collected packages: rrdtool Building wheel for rrdtool (setup.py) ... error ERROR: Command errored out with exit status 1: command: /srv/modoboa/env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_3sqzfep/rrdtool/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_3sqzfep/rrdtool/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-z_rx4o6m cwd: /tmp/pip-install-_3sqzfep/rrdtool/ Complete output (17 lines): tmp/tmp_python_rrdtoolj4uc0nxo/test_rrdtool.o : Dans la fonction « main » : /tmp/tmp_python_rrdtoolj4uc0nxo/test_rrdtool.c:6 : référence indéfinie vers « rrd_fetch_cb_register » collect2: erreur: ld a retourné 1 code d'état d'exécution Warning: Seems like your rrdtool version does not support fetch callbacks, recompiling./usr/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running bdist_wheel running build running build_ext building 'rrdtool' extension creating build creating build/temp.linux-x86_64-3.6 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPACKAGE_VERSION="0.1.15" -I/tmp/pip-install-_3sqzfep/rrdtool -I/usr/local/include -I/usr/include/python3.6m -c rrdtoolmodule.c -o build/temp.linux-x86_64-3.6/rrdtoolmodule.o rrdtoolmodule.c:25:20: erreur fatale: Python.h : Aucun fichier ou dossier de ce type #include <Python.h> ^ compilation terminée. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for rrdtool Running setup.py clean for rrdtool Failed to build rrdtool Installing collected packages: rrdtool, modoboa-stats Running setup.py install for rrdtool ... error ERROR: Command errored out with exit status 1: command: /srv/modoboa/env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_3sqzfep/rrdtool/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_3sqzfep/rrdtool/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-record-xr45e2nv/install-record.txt --single-version-externally-managed --compile --install-headers /srv/modoboa/env/include/site/python3.6/rrdtool cwd: /tmp/pip-install-_3sqzfep/rrdtool/ Complete output (17 lines): tmp/tmp_python_rrdtoolsw0wl29e/test_rrdtool.o : Dans la fonction « main » : /tmp/tmp_python_rrdtoolsw0wl29e/test_rrdtool.c:6 : référence indéfinie vers « rrd_fetch_cb_register » collect2: erreur: ld a retourné 1 code d'état d'exécution Warning: Seems like your rrdtool version does not support fetch callbacks, recompiling./usr/lib64/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) running install running build running build_ext building 'rrdtool' extension creating build creating build/temp.linux-x86_64-3.6 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPACKAGE_VERSION="0.1.15" -I/tmp/pip-install-_3sqzfep/rrdtool -I/usr/local/include -I/usr/include/python3.6m -c rrdtoolmodule.c -o build/temp.linux-x86_64-3.6/rrdtoolmodule.o rrdtoolmodule.c:25:20: erreur fatale: Python.h : Aucun fichier ou dossier de ce type #include <Python.h> ^ compilation terminée. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /srv/modoboa/env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_3sqzfep/rrdtool/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_3sqzfep/rrdtool/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-record-xr45e2nv/install-record.txt --single-version-externally-managed --compile --install-headers /srv/modoboa/env/include/site/python3.6/rrdtool Check the logs for full command output. ``` # Expected behavior # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:17:18 +03:00
Author
Owner

@Master13011 commented on GitHub (May 11, 2020):

install rddtool ok with : yum install rrdtool-devel python34-devel
Je n'arrive toujours pas à mettre à jour modoboa ...

<!-- gh-comment-id:626823147 --> @Master13011 commented on GitHub (May 11, 2020): install rddtool ok with : yum install rrdtool-devel python34-devel Je n'arrive toujours pas à mettre à jour modoboa ...
Author
Owner

@tonioo commented on GitHub (May 11, 2020):

@Master13011 Have you tried the upgrade mode provided by the installer?

<!-- gh-comment-id:626891164 --> @tonioo commented on GitHub (May 11, 2020): @Master13011 Have you tried the upgrade mode provided by the installer?
Author
Owner

@Master13011 commented on GitHub (May 14, 2020):

cd /srv/modoboa/
mv env env.bck
virtualenv --python=python3.6 env

nano /srv/modoboa/.bashrc
alias python="/usr/bin/python3.6"

cd /

nano .bashrc
alias python="/usr/bin/python3.6"

update-alternatives --install /usr/bin/python python /usr/bin/python3.6 60
update-alternatives --config python -> python3.6

cd /modoboa-installer/
sudo ./run.py --upgrade

Error 502...

Log :

image

<!-- gh-comment-id:628625101 --> @Master13011 commented on GitHub (May 14, 2020): cd /srv/modoboa/ mv env env.bck virtualenv --python=python3.6 env nano /srv/modoboa/.bashrc alias python="/usr/bin/python3.6" cd / nano .bashrc alias python="/usr/bin/python3.6" update-alternatives --install /usr/bin/python python /usr/bin/python3.6 60 update-alternatives --config python -> python3.6 cd /modoboa-installer/ sudo ./run.py --upgrade <your domain> Error 502... Log : ![image](https://user-images.githubusercontent.com/64130004/81938468-3eb81900-95f5-11ea-930c-35c1d7290ef1.png)
Author
Owner

@Master13011 commented on GitHub (May 14, 2020):

La maj fonctionne !

tuto :
cd /srv/modoboa
mv env env.bck

git clone https://github.com/modoboa/modoboa-installer
cd modoboa-installer
sudo ./run.py --upgrade

<!-- gh-comment-id:628669177 --> @Master13011 commented on GitHub (May 14, 2020): La maj fonctionne ! tuto : cd /srv/modoboa mv env env.bck git clone https://github.com/modoboa/modoboa-installer cd modoboa-installer sudo ./run.py --upgrade <your domain>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1476
No description provided.