Mongolian translation group

i used this
git clone https://github.com/indico/indico.git src

I still need a dev environment as there are a some translation fixes and custom menu etc.,

thanks

You need to git checkout 2.3-maintenance inside the src folder…

1 Like
ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
sphinx-rtd-theme 0.5.2 requires docutils<0.17, but you'll have docutils 0.17.1 which is incompatible.

Recreate your virtualenv, you probably have some wrong versions from attempting to install some 3.0 deps

i did recreate but

Building wheel for psycopg2 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/indico/dev/indico/env/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-SD5fkr/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-SD5fkr/psycopg2/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-fUIw1h
       cwd: /tmp/pip-install-SD5fkr/psycopg2/
(env) [indico@localhost indico]$ pip install psycopg2
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting psycopg2
  Using cached psycopg2-2.8.6.tar.gz (383 kB)
Building wheels for collected packages: psycopg2
  Building wheel for psycopg2 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/indico/dev/indico/env/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-aChxRK/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-aChxRK/psycopg2/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-wLh08e
       cwd: /tmp/pip-install-aChxRK/psycopg2/
  Complete output (40 lines):

should I change the OS. I am trying to use Centos 7. Should I try with Ubuntu?

Doesn’t really matter. Ubuntu and CentOS7 should both work fine.

Since it fails at the psycopg2 wheel my guess would be that there’s something some yum dependency such as libpq-devel missing. But since you omitted the “complete output” part I cannot for sure :wink:

[indico@localhost indico] source ./env/bin/activate (env) [indico@localhost indico] pip install psycopg2
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at Release process - pip documentation v21.1.dev0 pip 21.0 will remove support for this functionality.
Collecting psycopg2
Using cached psycopg2-2.8.6.tar.gz (383 kB)
Building wheels for collected packages: psycopg2
Building wheel for psycopg2 (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /opt/indico/dev/indico/env/bin/python2.7 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-aChxRK/psycopg2/setup.py’"’"’; file=’"’"’/tmp/pip-install-aChxRK/psycopg2/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-wLh08e
cwd: /tmp/pip-install-aChxRK/psycopg2/
Complete output (40 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/psycopg2
copying lib/extensions.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/_range.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/init.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/_lru_cache.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/errorcodes.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/tz.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/pool.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/errors.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/_json.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/sql.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/compat.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/_ipaddress.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/extras.py → build/lib.linux-x86_64-2.7/psycopg2
running build_ext
building ‘psycopg2._psycopg’ extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/psycopg
gcc -pthread -fno-strict-aliasing -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 -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 -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext) -DPG_VERSION_NUM=90224 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement
In file included from psycopg/psycopgmodule.c:28:0:
./psycopg/psycopg.h:36:22: fatal error: libpq-fe.h: No such file or directory
#include <libpq-fe.h>
^
compilation terminated.

It appears you are missing some prerequisite to build the package from source.

You may install a binary package by installing ‘psycopg2-binary’ from PyPI.
If you want to install psycopg2 from source, please install the packages
required for the build and try again.

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

error: command ‘gcc’ failed with exit status 1

ERROR: Failed building wheel for psycopg2
Running setup.py clean for psycopg2
Failed to build psycopg2
Installing collected packages: psycopg2
Running setup.py install for psycopg2 … error
ERROR: Command errored out with exit status 1:
command: /opt/indico/dev/indico/env/bin/python2.7 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-aChxRK/psycopg2/setup.py’"’"’; file=’"’"’/tmp/pip-install-aChxRK/psycopg2/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-xyTxQ3/install-record.txt --single-version-externally-managed --compile --install-headers /opt/indico/dev/indico/env/include/site/python2.7/psycopg2
cwd: /tmp/pip-install-aChxRK/psycopg2/
Complete output (40 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/psycopg2
copying lib/extensions.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/_range.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/init.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/_lru_cache.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/errorcodes.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/tz.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/pool.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/errors.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/_json.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/sql.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/compat.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/_ipaddress.py → build/lib.linux-x86_64-2.7/psycopg2
copying lib/extras.py → build/lib.linux-x86_64-2.7/psycopg2
running build_ext
building ‘psycopg2._psycopg’ extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/psycopg
gcc -pthread -fno-strict-aliasing -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 -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 -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext) -DPG_VERSION_NUM=90224 -I/usr/include/python2.7 -I. -I/usr/include -I/usr/include/pgsql/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-2.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement
In file included from psycopg/psycopgmodule.c:28:0:
./psycopg/psycopg.h:36:22: fatal error: libpq-fe.h: No such file or directory
#include <libpq-fe.h>
^
compilation terminated.

It appears you are missing some prerequisite to build the package from source.

You may install a binary package by installing 'psycopg2-binary' from PyPI.
If you want to install psycopg2 from source, please install the packages
required for the build and try again.

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

error: command 'gcc' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: /opt/indico/dev/indico/env/bin/python2.7 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-aChxRK/psycopg2/setup.py’"’"’; file=’"’"’/tmp/pip-install-aChxRK/psycopg2/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-xyTxQ3/install-record.txt --single-version-externally-managed --compile --install-headers /opt/indico/dev/indico/env/include/site/python2.7/psycopg2 Check the logs for full command output.

hi, I managed to install Indico Dev in Centos 7 using following set of commands

yum install epel-release
yum update
sudo yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
sudo yum install git
sudo vi /etc/yum.repos.d/CentOS-Base.repo
Find the [base] and [updates] sections, enter insert mode by pressing i, and insert the exclude=postgresql* line in both sections. As a result, your file will look like the following, with
sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum list postgresql*
sudo yum install postgresql96-server
sudo yum install postgresql96-contrib postgresql96-devel
systemctl start redis.service postgresql-9.6.service
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
yum install -y gcc redis python-devel python-virtualenv libjpeg-turbo-devel libxslt-devel libxml2-devel libffi-devel pcre-devel libyaml-devel redhat-rpm-config libpq-devel
yum install httpd
useradd -rm -g apache -d /opt/indico -s /bin/bash indico
passwd indico
usermod -aG wheel indico
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install nodejs
yum install watchdog
yum install python-docutils
yum groupinstall "Development Tools"
yum install python-psycopg2
yum install libpq
yum install libpq5-devel
su - indico
mkdir -p ~/dev/indico/data
cd ~/dev/indico
virtualenv env -p /usr/bin/python2.7
git clone https://github.com/indico/indico.git src
mkdir plugins
git clone https://github.com/indico/indico-plugins.git plugins/base
git clone https://github.com/indico/indico-user-docs.git user-docs
cd src
git checkout 2.3-maintenance
sudo -u postgres createuser $USER --createdb
sudo -u postgres createdb indico_template -O $USER
sudo -u postgres psql indico_template -c "CREATE EXTENSION unaccent; CREATE EXTENSION pg_trgm;"
createdb indico -T indico_template
source ./env/bin/activate
pip install -U pip setuptools
cd src
pip install psycopg2-binary
pip install -r requirements.dev.txt
pip install pyrsistent==0.16.1
pip install -e .
npm ci
indico setup wizard --dev
indico db prepare
indico i18n compile-catalog
indico i18n compile-catalog-react

but when I run it with

(env) [indico@localhost src]$ indico run -h 10.10.10.106 -q --enable-evalex
 * Serving Indico on http://10.10.10.106:8000
 * Werkzeug debugger console on http://10.10.10.106:8000/console
 * Werkzeug debugger console is available to all clients!
 * Running on http://10.10.10.106:8000/ (Press CTRL+C to quit)

accessing http://10.10.10.106:8000 timed out. Looking at indico log at (/opt/indico/dev/indico/data/log/indico.log) shows me only following

2021-04-27 04:34:32,443 ERROR 0000000000000000 - indico.i18n Configured DEFAULT_LOCALE (en_GB) does not exist

The message about the locale is weird, en_GB should exist as long as you executed indico i18n compile-catalog before starting indico. Anyway, the warning is harmless and safe to ignore.

If you get a timeout it sounds like the issue is not related to indico but maybe your local firewall?

i did add port 8000 on firewall

[root@localhost ~]# firewall-cmd --permanent --add-port=8000/tcp
success
[root@localhost ~]# firewall-cmd --reload
success

following errors are flooding on watch terminal

Error from chokidar (/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Size2/Regular): Error: ENOSPC: System limit for number of file watchers reached, watch ‘/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Size2/Regular/Main.js’
Error from chokidar (/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Size3/Regular): Error: ENOSPC: System limit for number of file watchers reached, watch ‘/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Size3/Regular/Main.js’
Error from chokidar (/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Size4/Regular): Error: ENOSPC: System limit for number of file watchers reached, watch ‘/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Size4/Regular/Main.js’
Error from chokidar (/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Typewriter/Regular): Error: ENOSPC: System limit for number of file watchers reached, watch ‘/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Typewriter/Regular/BasicLatin.js’
Error from chokidar (/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Typewriter/Regular): Error: ENOSPC: System limit for number of file watchers reached, watch ‘/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js’
Error from chokidar (/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Typewriter/Regular): Error: ENOSPC: System limit for number of file watchers reached, watch ‘/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Typewriter/Regular/Main.js’
Error from chokidar (/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Typewriter/Regular): Error: ENOSPC: System limit for number of file watchers reached, watch ‘/opt/indico/dev/indico/src/node_modules/mathjax/unpacked/jax/output/SVG/fonts/TeX/Typewriter/Regular/Other.js’

This may help… anyway it’s just an error from the file modification watcher used by the assets builder, so probably harmless. I’d still raise the max inotify watchers to avoid the error spam.

[root@localhost ~]# nmap 10.10.10.106

Starting Nmap 6.40 ( http://nmap.org ) at 2021-04-27 07:55 EDT
Nmap scan report for 10.10.10.106
Host is up (0.000024s latency).
Not shown: 996 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp open https
8000/tcp open http-alt

Nmap done: 1 IP address (1 host up) scanned in 1.92 seconds

i just noticed this line in HTTPD error log. Could this be the reason?

[proxy:error] [pid 1099] (111)Connection refused: AH00957: uwsgi: attempt to connect to 127.0.0.1:8008 (127.0.0.1) failed

I don’t understand how uwsgi is involved there - in a development setup it’s not being used at all…

i remove it but still does not help.

here is my VM running on VMware player 14.0 root password is: Test
can you please have a look what could be wrong. Thanks in advance.

Sorry, I don’t really have time for that (and I’d have to install vmware first).

My recommendation would be to use a clean VM and then just follow the dev setup guide - with the only difference that you need to git checkout 2.3-maintenance after cloning the repo.

I am so noob, followed the documentation at Installation guide (development) — Indico 2.3.4 documentation and 4th time failing.

my 5th attempt was success. Now I have got the dev running. Following is the exact set of commands I used to get it running.
PS: There was only 1 error as follows

ERROR: pip’s legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
sphinx-rtd-theme 0.5.2 requires docutils<0.17, but you’ll have docutils 0.17.1 which is incompatible.

but still it got the dev console running

List of commands:

yum install epel-release
yum update
sudo yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
sudo yum install git
sudo vi /etc/yum.repos.d/CentOS-Base.repo
Find the [base] and [updates] sections and insert the exclude=postgresql* line in both sections.
sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
yum list postgresql*
sudo yum install postgresql96-server
sudo yum install postgresql96-contrib postgresql96-devel
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
systemctl start postgresql-9.6.service

yum install -y gcc redis python-devel python-virtualenv libjpeg-turbo-devel libxslt-devel libxml2-devel libffi-devel pcre-devel libyaml-devel redhat-rpm-config libpq-devel
systemctl start redis.service
yum install httpd mod_ssl
useradd -rm -g apache -d /opt/indico -s /bin/bash indico
passwd indico
usermod -aG wheel indico
curl -sL https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum install nodejs
yum install watchdog
yum install python-docutils
yum groupinstall “Development Tools”
yum install python-psycopg2
yum install libpq
yum install libpq5-devel
su - indico
mkdir -p ~/dev/indico/data
cd ~/dev/indico
virtualenv env -p /usr/bin/python2.7
git clone GitHub - indico/indico: Indico - A feature-rich event management system, made @ CERN, the place where the Web was born. src
mkdir plugins
git clone GitHub - indico/indico-plugins: Indico plugins developed by the Indico team plugins/base
git clone GitHub - indico/indico-user-docs: Indico Documentation user-docs
cd src
git checkout 2.3-maintenance
sudo -u postgres createuser $USER --createdb
sudo -u postgres createdb indico_template -O $USER
sudo -u postgres psql indico_template -c “CREATE EXTENSION unaccent; CREATE EXTENSION pg_trgm;”
createdb indico -T indico_template
cd …
source ./env/bin/activate
pip install -U pip setuptools
cd src

pip install -r requirements.dev.txt
pip install pyrsistent==0.16.1
pip install -e .
npm ci
indico setup wizard --dev
indico db prepare
indico i18n compile-catalog
indico i18n compile-catalog-react
sudo httpd start
sudo service firewalld stop
sudo vi /etc/selinux/config # disabled se linux
indico run -h 10.10.10.107 -q --enable-evalex