Use the handbook and a new Debian 11 VM. Then follow the installation guide step by step – do everything exactly as written in the handbook (copy/paste the commands).
Note everything that does not work exactly as in the handbook.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
root@aleksis:~# pip3 install aleksisCollecting aleksis Downloading AlekSIS-2021.12.post0-py2.py3-none-any.whl (3.0 kB)Collecting aleksis-app-untis<2.2,>=2.1 Downloading AlekSIS_App_Untis-2.1.3-py3-none-any.whl (65 kB) |████████████████████████████████| 65 kB 469 kB/s Collecting aleksis-app-dashboardfeeds<2.1,>=2.0 Downloading AlekSIS_App_DashboardFeeds-2.0.1-py3-none-any.whl (60 kB) |████████████████████████████████| 60 kB 891 kB/s Collecting aleksis-app-hjelp<2.1,>=2.0 Downloading AlekSIS_App_Hjelp-2.0.2-py3-none-any.whl (74 kB) |████████████████████████████████| 74 kB 404 kB/s Collecting aleksis-app-resint<2.2,>=2.1 Downloading AlekSIS_App_Resint-2.1-py3-none-any.whl (39 kB)Collecting aleksis-app-csvimport<2.3,>=2.2 Downloading AlekSIS_App_CSVImport-2.2.1-py3-none-any.whl (57 kB) |████████████████████████████████| 57 kB 607 kB/s Collecting aleksis-core[ldap,s3,sentry]<2.8,>=2.7 Downloading AlekSIS_Core-2.7.4-py3-none-any.whl (472 kB) |████████████████████████████████| 472 kB 10.5 MB/s Collecting aleksis-app-alsijil<2.1,>=2.0 Downloading AlekSIS_App_Alsijil-2.0.1-py3-none-any.whl (150 kB) |████████████████████████████████| 150 kB 9.9 MB/s Collecting aleksis-app-chronos<2.3,>=2.2 Downloading AlekSIS_App_Chronos-2.2.1-py3-none-any.whl (103 kB) |████████████████████████████████| 103 kB 14.2 MB/s Collecting aleksis-app-ldap<2.2,>=2.1 Downloading AlekSIS_App_LDAP-2.1-py3-none-any.whl (26 kB)Collecting aleksis-core<3.0,>=2.7 Downloading AlekSIS_Core-2.9-py3-none-any.whl (548 kB) |████████████████████████████████| 548 kB 8.0 MB/s Collecting calendarweek<0.6.0,>=0.5.0 Downloading calendarweek-0.5.2-py3-none-any.whl (10 kB)Collecting tqdm<5.0.0,>=4.62.3 Downloading tqdm-4.64.0-py2.py3-none-any.whl (78 kB) |████████████████████████████████| 78 kB 822 kB/s Collecting phonenumbers<9.0,>=8.10 Downloading phonenumbers-8.12.49-py2.py3-none-any.whl (2.6 MB) |████████████████████████████████| 2.6 MB 5.0 MB/s Collecting pandas<2.0.0,>=1.0.0 Downloading pandas-1.4.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB) |████████████████████████████████| 11.7 MB 9.0 MB/s Collecting dateparser<2.0.0,>=1.0.0 Downloading dateparser-1.1.1-py2.py3-none-any.whl (288 kB) |████████████████████████████████| 288 kB 11.5 MB/s Requirement already satisfied: chardet<5.0.0,>=4.0.0 in /usr/lib/python3/dist-packages (from aleksis-app-csvimport<2.3,>=2.2->aleksis) (4.0.0)Collecting ruamel.yaml<0.18.0,>=0.17.19 Downloading ruamel.yaml-0.17.21-py3-none-any.whl (109 kB) |████████████████████████████████| 109 kB 9.8 MB/s Collecting feedparser<7.0.0,>=6.0.0 Downloading feedparser-6.0.10-py3-none-any.whl (81 kB) |████████████████████████████████| 81 kB 1.1 MB/s Collecting django-feed-reader<2.0.0,>=1.0.0 Downloading django_feed_reader-1.0.0-py3-none-any.whl (22 kB)Collecting ics<0.8,>=0.7 Downloading ics-0.7-py2.py3-none-any.whl (42 kB) |████████████████████████████████| 42 kB 155 kB/s Collecting django-ldapdb<2.0.0,>=1.4.0 Downloading django_ldapdb-1.5.1-py2.py3-none-any.whl (22 kB)Collecting python-magic<0.5.0,>=0.4.22 Downloading python_magic-0.4.26-py2.py3-none-any.whl (13 kB)Collecting defusedxml<0.8.0,>=0.7.0 Downloading defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)Collecting mysqlclient<3.0.0,>=2.0.0 Downloading mysqlclient-2.1.0.tar.gz (87 kB) |████████████████████████████████| 87 kB 785 kB/s ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0ttsia4u/mysqlclient_178750ac0672442cadbb044cece28284/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0ttsia4u/mysqlclient_178750ac0672442cadbb044cece28284/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-stg1nzlc cwd: /tmp/pip-install-0ttsia4u/mysqlclient_178750ac0672442cadbb044cece28284/ Complete output (15 lines): /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-0ttsia4u/mysqlclient_178750ac0672442cadbb044cece28284/setup.py", line 15, in <module> metadata, options = get_config() File "/tmp/pip-install-0ttsia4u/mysqlclient_178750ac0672442cadbb044cece28284/setup_posix.py", line 70, in get_config libs = mysql_config("libs") File "/tmp/pip-install-0ttsia4u/mysqlclient_178750ac0672442cadbb044cece28284/setup_posix.py", line 31, in mysql_config raise OSError("{} not found".format(_mysql_config_path)) OSError: mysql_config not found mysql_config --version mariadb_config --version mysql_config --libs ----------------------------------------WARNING: Discarding https://files.pythonhosted.org/packages/de/79/d02be3cb942afda6c99ca207858847572e38146eb73a7c4bfe3bdf154626/mysqlclient-2.1.0.tar.gz#sha256=973235686f1b720536d417bf0a0d39b4ab3d5086b2b6ad5e6752393428c02b12 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading mysqlclient-2.0.3.tar.gz (88 kB) |████████████████████████████████| 88 kB 4.2 MB/s ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0ttsia4u/mysqlclient_8c0f3b409d07416f825d756aa9aa7322/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0ttsia4u/mysqlclient_8c0f3b409d07416f825d756aa9aa7322/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-3ncm0sq_ cwd: /tmp/pip-install-0ttsia4u/mysqlclient_8c0f3b409d07416f825d756aa9aa7322/ Complete output (15 lines): /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-0ttsia4u/mysqlclient_8c0f3b409d07416f825d756aa9aa7322/setup.py", line 15, in <module> metadata, options = get_config() File "/tmp/pip-install-0ttsia4u/mysqlclient_8c0f3b409d07416f825d756aa9aa7322/setup_posix.py", line 70, in get_config libs = mysql_config("libs") File "/tmp/pip-install-0ttsia4u/mysqlclient_8c0f3b409d07416f825d756aa9aa7322/setup_posix.py", line 31, in mysql_config raise OSError("{} not found".format(_mysql_config_path)) OSError: mysql_config not found mysql_config --version mariadb_config --version mysql_config --libs ----------------------------------------WARNING: Discarding https://files.pythonhosted.org/packages/3c/df/59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7/mysqlclient-2.0.3.tar.gz#sha256=f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading mysqlclient-2.0.2.tar.gz (88 kB) |████████████████████████████████| 88 kB 834 kB/s ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0ttsia4u/mysqlclient_69df6472d2de453a8657a922d4c9113f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0ttsia4u/mysqlclient_69df6472d2de453a8657a922d4c9113f/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-wrvcjrhg cwd: /tmp/pip-install-0ttsia4u/mysqlclient_69df6472d2de453a8657a922d4c9113f/ Complete output (12 lines): /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-0ttsia4u/mysqlclient_69df6472d2de453a8657a922d4c9113f/setup.py", line 15, in <module> metadata, options = get_config() File "/tmp/pip-install-0ttsia4u/mysqlclient_69df6472d2de453a8657a922d4c9113f/setup_posix.py", line 65, in get_config libs = mysql_config("libs") File "/tmp/pip-install-0ttsia4u/mysqlclient_69df6472d2de453a8657a922d4c9113f/setup_posix.py", line 31, in mysql_config raise OSError("{} not found".format(_mysql_config_path)) OSError: mysql_config not found ----------------------------------------WARNING: Discarding https://files.pythonhosted.org/packages/0e/68/f79de0e0fcdb041783124b825771e0ba6a3d0893b7b4c4735f130e42af47/mysqlclient-2.0.2.tar.gz#sha256=8df057b08fc27d8f7106bfa997d0a21e2acef017f905f06d6fb0aa6a20d4d2b2 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading mysqlclient-2.0.1.tar.gz (87 kB) |████████████████████████████████| 87 kB 796 kB/s ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0ttsia4u/mysqlclient_f773134218214fcfbf7eb3eaf846fbcf/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0ttsia4u/mysqlclient_f773134218214fcfbf7eb3eaf846fbcf/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-blkf5vtd cwd: /tmp/pip-install-0ttsia4u/mysqlclient_f773134218214fcfbf7eb3eaf846fbcf/ Complete output (12 lines): /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-0ttsia4u/mysqlclient_f773134218214fcfbf7eb3eaf846fbcf/setup.py", line 15, in <module> metadata, options = get_config() File "/tmp/pip-install-0ttsia4u/mysqlclient_f773134218214fcfbf7eb3eaf846fbcf/setup_posix.py", line 65, in get_config libs = mysql_config("libs") File "/tmp/pip-install-0ttsia4u/mysqlclient_f773134218214fcfbf7eb3eaf846fbcf/setup_posix.py", line 31, in mysql_config raise OSError("{} not found".format(_mysql_config_path)) OSError: mysql_config not found ----------------------------------------WARNING: Discarding https://files.pythonhosted.org/packages/a5/e1/e5f2b231c05dc51d9d87fa5066f90d1405345c54b14b0b11a1c859020f21/mysqlclient-2.0.1.tar.gz#sha256=fb2f75aea14722390d2d8ddf384ad99da708c707a96656210a7be8af20a2c5e5 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading mysqlclient-2.0.0.tar.gz (87 kB) |████████████████████████████████| 87 kB 767 kB/s ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-0ttsia4u/mysqlclient_bb82841dd258437ca456652b202a003b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-0ttsia4u/mysqlclient_bb82841dd258437ca456652b202a003b/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ry7lfmbs cwd: /tmp/pip-install-0ttsia4u/mysqlclient_bb82841dd258437ca456652b202a003b/ Complete output (12 lines): /bin/sh: 1: mysql_config: not found /bin/sh: 1: mariadb_config: not found /bin/sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-0ttsia4u/mysqlclient_bb82841dd258437ca456652b202a003b/setup.py", line 15, in <module> metadata, options = get_config() File "/tmp/pip-install-0ttsia4u/mysqlclient_bb82841dd258437ca456652b202a003b/setup_posix.py", line 65, in get_config libs = mysql_config("libs") File "/tmp/pip-install-0ttsia4u/mysqlclient_bb82841dd258437ca456652b202a003b/setup_posix.py", line 31, in mysql_config raise OSError("{} not found".format(_mysql_config_path)) OSError: mysql_config not found ----------------------------------------WARNING: Discarding https://files.pythonhosted.org/packages/ca/cf/dd8124bf8b3d2ae465db9c8ce35c51650c31784b095f41faf6f8cad987a0/mysqlclient-2.0.0.tar.gz#sha256=201dfcc2a3c8a0859ea399947f1af8abe74b706beba0ebac149180d9d7b0f6e8 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.Collecting aleksis-app-untis<2.2,>=2.1 Downloading AlekSIS_App_Untis-2.1.2-py3-none-any.whl (65 kB) |████████████████████████████████| 65 kB 485 kB/s Downloading AlekSIS_App_Untis-2.1.1-py3-none-any.whl (65 kB) |████████████████████████████████| 65 kB 436 kB/s Downloading AlekSIS_App_Untis-2.1-py3-none-any.whl (65 kB) |████████████████████████████████| 65 kB 408 kB/s INFO: pip is looking at multiple versions of aleksis-app-resint to determine which version is compatible with other requirements. This could take a while.INFO: pip is looking at multiple versions of aleksis-app-ldap to determine which version is compatible with other requirements. This could take a while.INFO: pip is looking at multiple versions of aleksis-app-hjelp to determine which version is compatible with other requirements. This could take a while.Collecting aleksis-app-hjelp<2.1,>=2.0 Downloading AlekSIS_App_Hjelp-2.0.1-py3-none-any.whl (81 kB) |████████████████████████████████| 81 kB 1.1 MB/s Downloading AlekSIS_App_Hjelp-2.0-py3-none-any.whl (80 kB) |████████████████████████████████| 80 kB 1.0 MB/s INFO: pip is looking at multiple versions of aleksis-app-dashboardfeeds to determine which version is compatible with other requirements. This could take a while.Collecting aleksis-app-dashboardfeeds<2.1,>=2.0 Downloading AlekSIS_App_DashboardFeeds-2.0-py3-none-any.whl (66 kB) |████████████████████████████████| 66 kB 491 kB/s INFO: pip is looking at multiple versions of aleksis-app-csvimport to determine which version is compatible with other requirements. This could take a while.INFO: pip is looking at multiple versions of aleksis-app-chronos to determine which version is compatible with other requirements. This could take a while.Collecting aleksis-app-chronos<2.3,>=2.2 Downloading AlekSIS_App_Chronos-2.2-py3-none-any.whl (103 kB) |████████████████████████████████| 103 kB 20.5 MB/s INFO: pip is looking at multiple versions of aleksis-app-resint to determine which version is compatible with other requirements. This could take a while.INFO: pip is looking at multiple versions of aleksis-app-ldap to determine which version is compatible with other requirements. This could take a while.INFO: pip is looking at multiple versions of aleksis-app-hjelp to determine which version is compatible with other requirements. This could take a while.INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.INFO: pip is looking at multiple versions of aleksis-app-alsijil to determine which version is compatible with other requirements. This could take a while.Collecting aleksis-app-alsijil<2.1,>=2.0 Downloading AlekSIS_App_Alsijil-2.0-py3-none-any.whl (149 kB) |████████████████████████████████| 149 kB 10.7 MB/s INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtrackingINFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtrackingINFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtrackingINFO: pip is looking at multiple versions of aleksis-app-dashboardfeeds to determine which version is compatible with other requirements. This could take a while.INFO: pip is looking at multiple versions of aleksis to determine which version is compatible with other requirements. This could take a while.ERROR: Cannot install aleksis because these package versions have conflicting dependencies.The conflict is caused by: aleksis-app-untis 2.1.3 depends on mysqlclient<3.0.0 and >=2.0.0 aleksis-app-untis 2.1.2 depends on mysqlclient<3.0.0 and >=2.0.0 aleksis-app-untis 2.1.1 depends on mysqlclient<3.0.0 and >=2.0.0 aleksis-app-untis 2.1 depends on mysqlclient<3.0.0 and >=2.0.0To fix this you could try to:1. loosen the range of package versions you've specified2. remove package versions to allow pip attempt to solve the dependency conflictERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
To fix:
Run apt install libmariadb-dev
That resolvs it but now python-ldap throws an error:
c0fb873907ca21b6113a21d83ce544b0 Stored in directory: /root/.cache/pip/wheels/c8/65/c6/d3e34e553ddae460031b9102a227c0a3ee074c9511f1076cdf Building wheel for python-ldap (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /tmp/tmp601ljnq8_in_process.py build_wheel /tmp/tmpq02cusk0 cwd: /tmp/pip-install-6pyw6w47/python-ldap_6951eeb022b14e99a3f374144da5bde3 Complete output (109 lines): /tmp/pip-build-env-utipk34s/overlay/lib/python3.9/site-packages/setuptools/config/setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead. warnings.warn(msg, warning_class) running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-39 copying Lib/ldapurl.py -> build/lib.linux-x86_64-cpython-39 copying Lib/ldif.py -> build/lib.linux-x86_64-cpython-39 creating build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/async.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/asyncsearch.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/filter.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/compat.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/logger.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/functions.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/dn.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/constants.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/pkginfo.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-cpython-39/ldap copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-cpython-39/ldap creating build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/vlv.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/pagedresults.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-cpython-39/ldap/controls copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-cpython-39/ldap/controls creating build/lib.linux-x86_64-cpython-39/ldap/extop copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-cpython-39/ldap/extop copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-cpython-39/ldap/extop copying Lib/ldap/extop/passwd.py -> build/lib.linux-x86_64-cpython-39/ldap/extop creating build/lib.linux-x86_64-cpython-39/ldap/schema copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-cpython-39/ldap/schema copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-cpython-39/ldap/schema copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-cpython-39/ldap/schema copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-cpython-39/ldap/schema creating build/lib.linux-x86_64-cpython-39/slapdtest copying Lib/slapdtest/__init__.py -> build/lib.linux-x86_64-cpython-39/slapdtest copying Lib/slapdtest/_slapdtest.py -> build/lib.linux-x86_64-cpython-39/slapdtest running egg_info writing Lib/python_ldap.egg-info/PKG-INFO writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt writing requirements to Lib/python_ldap.egg-info/requires.txt writing top-level names to Lib/python_ldap.egg-info/top_level.txt reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'Doc/.build' adding license file 'LICENCE' writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt' /tmp/pip-build-env-utipk34s/overlay/lib/python3.9/site-packages/setuptools/command/build_py.py:153: SetuptoolsDeprecationWarning: Installing 'slapdtest.certs' as data is deprecated, please list it in `packages`. !! ############################ # Package would be ignored # ############################ Python recognizes 'slapdtest.certs' as an importable package, however it is included in the distribution as "data". This behavior is likely to change in future versions of setuptools (and therefore is considered deprecated). Please make sure that 'slapdtest.certs' is included as a package by using setuptools' `packages` configuration field or the proper discovery methods (for example by using `find_namespace_packages(...)`/`find_namespace:` instead of `find_packages(...)`/`find:`). You can read more about "package discovery" and "data files" on setuptools documentation page. !! check.warn(importable) creating build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/README -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/ca.conf -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/ca.pem -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/client.conf -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/client.key -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/client.pem -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/gencerts.sh -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/gennssdb.sh -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/server.conf -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/server.key -> build/lib.linux-x86_64-cpython-39/slapdtest/certs copying Lib/slapdtest/certs/server.pem -> build/lib.linux-x86_64-cpython-39/slapdtest/certs running build_ext building '_ldap' extension creating build/temp.linux-x86_64-cpython-39 creating build/temp.linux-x86_64-cpython-39/Modules x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-RNBry6/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.4.0 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -I/usr/include/python3.9 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-cpython-39/Modules/LDAPObject.o In file included from Modules/LDAPObject.c:3: Modules/common.h:15:10: fatal error: lber.h: Datei oder Verzeichnis nicht gefunden 15 | #include <lber.h> | ^~~~~~~~ compilation terminated. error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1 ---------------------------------------- ERROR: Failed building wheel for python-ldap Building wheel for qrcode (setup.py) ... done Created wheel for qrcode: filename=qrcode-7.3.1-py3-none-any.whl size=40386 sha256=51c6634a9b66e9afadd8cece5381b35527e509689d5ce1240c690e60b81b6d99 Stored in directory: /root/.cache/pip/wheels/93/54/16/55cec87f8d902ed84b94ab8fdb7e89ae1158c06e130bc83b03 Building wheel for configobj (setup.py) ... done Created wheel for configobj: filename=configobj-5.0.6-py3-none-any.whl size=34546 sha256=f9d048c43e21cd4e8c49e78e816d23a078493cacbfe109e05cc58b06c309fc80 Stored in directory: /root/.cache/pip/wheels/4b/35/53/dfa4d3a4196794cb0a777a97c68dcf02b073d33de9c135d72a Building wheel for sgmllib3k (setup.py) ... done Created wheel for sgmllib3k: filename=sgmllib3k-1.0.0-py3-none-any.whl size=6064 sha256=749f782afc4c44bfc00d7aee62ea8ad4370a8e922ecd46703e5e6c7f719618dc Stored in directory: /root/.cache/pip/wheels/65/7a/a7/78c287f64e401255dff4c13fdbc672fed5efbfd21c530114e1Successfully built django-sass-processor bs4 celery-progress django-allauth django-dbbackup django-haystack django-impersonate django-invitations django-jsonstore django-menu-generator-ng django-titofisto django-yarnpkg jwcrypto mysqlclient psycopg2 pycountry python-crontab qrcode configobj sgmllib3kFailed to build python-ldapERROR: Could not build wheels for python-ldap which use PEP 517 and cannot be installed directly
To fix:
Run
apt install libldap2-dev libsasl2-dev
That resolvs it without an error. In the documentation we shoud add the three dependencys
libmariadb-dev libldap2-dev libsasl2-dev
From page 35 section: "Install AlekSIS itself"
Runing aleksis-admin yarn install
/usr/local/lib/python3.9/dist-packages/aleksis/core/settings.py:399: UserWarning: The default OIDC RSA key in /etc/aleksis/oidc.pem does not exist. RSA will be disabled for now, but creating and configuring a key is recommended. To silence this warning, set oauth2.oidc.rsa_key to the empty string in a configuration file. warnings.warn(
To fix:
Run openssl genrsa -out /etc/aleksis/oidc.pem
From page 35 section: "Install AlekSIS itself"
Runing aleksis-admin createinitialrevisions
Creating revisions for School term- Created 0 / 0Creating revisions for Person- Created 0 / 0Creating revisions for dummy person- Created 0 / 0Creating revisions for Addtitional field for groups- Created 0 / 0Creating revisions for GroupTraceback (most recent call last): File "/usr/local/bin/aleksis-admin", line 8, in <module> sys.exit(aleksis_cmd()) File "/usr/local/lib/python3.9/dist-packages/aleksis/core/__main__.py", line 14, in aleksis_cmd execute_from_command_line(sys.argv) File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/usr/local/lib/python3.9/dist-packages/django/core/management/__init__.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, **cmd_options) File "/usr/local/lib/python3.9/dist-packages/django/core/management/base.py", line 398, in execute output = self.handle(*args, **options) File "/usr/local/lib/python3.9/dist-packages/reversion/management/commands/createinitialrevisions.py", line 66, in handle live_objs = _safe_subquery( File "/usr/local/lib/python3.9/dist-packages/reversion/models.py", line 389, in _safe_subquery left_query = left_query.annotate(**{exist_annotation_name: models.Exists(right_subquery)}) File "/usr/local/lib/python3.9/dist-packages/django/db/models/query.py", line 1091, in annotate return self._annotate(args, kwargs, select=True) File "/usr/local/lib/python3.9/dist-packages/django/db/models/query.py", line 1130, in _annotate clone.query.add_annotation( File "/usr/local/lib/python3.9/dist-packages/django_cte/query.py", line 49, in add_annotation super(CTEQuery, self).add_annotation(annotation, *args, **kw) File "/usr/local/lib/python3.9/dist-packages/django/db/models/sql/query.py", line 1062, in add_annotation annotation = annotation.resolve_expression(self, allow_joins=True, reuse=None, File "/usr/local/lib/python3.9/dist-packages/django_cte/expressions.py", line 45, in resolve_expression for cte in get_query(clone)._with_ctes:AttributeError: 'Query' object has no attribute '_with_ctes'
That resolvs it without an error. In the documentation we shoud add the three dependencys libmariadb-dev libldap2-dev libsasl2-dev
Please add this as a separate paragraph. This paragraph should explain the difference between installing aleksis and aleksis-core. If installing only the AlekSIS Core, no extra dependencies are required. The aleksis package is a meta-package that will install all official apps, and thus it requires these extra dependencies.
To fix: Run openssl genrsa -out /etc/aleksis/oidc.pem
This needs a bit of explanation as well.
To fix: apt install celery and chown www-data: /etc/aleksis/oidc.pem
The first part of this fix is valid – add celery to the main dependency list. But the second part is unrelated (add it to the part above where the certificate is generated).
To fix chown -R www-data: /var/lib/aleksis
Please note that we already do this chown, but too early. Update the docs to do this later, after all initial setup tasks.
We shoud specifie that you need to set the right domain / ip in /etc/aleksis/aleksis.toml
Yes, and that also needs some explanation (both what the hostname is needed for, and also why one should not use * instead of specifying the real hostname).