Installation de Python 3.9.12 lors de l'installation de INDICO3

Bonjour,
Lors de la procédure d’installation d’INDICO 3, je n’arrive pas à installer Python 3.9.12. je tombe toujours en error.
Je joins la copie d’écran.
Pourriez-vous m’aider.

Merci,
Bonne journée.

Hi, please check the log file mentioned in the yellow part of the error message. It may contain more useful information on why building Python filed.

PS: Considering that this forum is very international (and probably just a fraction of the people here speak/understand French), I think using English here would be better…

Hello,
Thank for your prompt reponse. I join de requested file.
python-build.20220328105510.17084.log (911.2 KB)

Looks like zlib is missing. Try yum install zlib-devel

Thank you i install the lib specify :slight_smile:
I try an installation for Python 3.9.12 and i obtain the join log file. Can you tell me, if something wrong.
python-build.20220328114808.11524.log (951.2 KB)

To me it looks fine now. Did pyenv install ... fail with some message?

This, the messages obtained

yum install -y libjpeg-turbo-devel libxslt-devel libxml2-devel libffi-devel pcre-devel libyaml-devel zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel libffi-devel findutils libuuid-devel
/usr/pgsql-13/bin/postgresql-13-setup initdb

Are you sure you executed this step from the setup guide? It seems like you’re missing things like openssl which should be installed by this command…

It’s working !!!
Thank you guy :slight_smile:

Hi, Sorry, i have an other problem during indico installation. The process stop with the above messages :
Collecting psycopg2==2.9.3
Using cached psycopg2-2.9.3.tar.gz (380 kB)
Preparing metadata (setup.py) … error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running egg_info
creating /tmp/pip-pip-egg-info-7wnmykwq/psycopg2.egg-info
writing /tmp/pip-pip-egg-info-7wnmykwq/psycopg2.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-pip-egg-info-7wnmykwq/psycopg2.egg-info/dependency_links.txt
writing top-level names to /tmp/pip-pip-egg-info-7wnmykwq/psycopg2.egg-info/top_level.txt
writing manifest file ‘/tmp/pip-pip-egg-info-7wnmykwq/psycopg2.egg-info/SOURCES.txt’

  Error: pg_config executable not found.

  pg_config is required to build psycopg2 from source.  Please add the directory
  containing pg_config to the $PATH or specify the full executable path with the
  option:

      python setup.py build_ext --pg-config /path/to/pg_config build ...

  or with the pg_config option in 'setup.cfg'.

  If you prefer to avoid building psycopg2 from source, please install the PyPI
  'psycopg2-binary' package instead.

  For further information please check the 'doc/src/install.rst' file (also at
  <https://www.psycopg.org/docs/install.html>).

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Thank you.

Sounds like postgresql13-devel is missing… (another package that’s installed during the “Install Packages” step of the setup guide)