Good Morning,
this ist he result you asked for:
root@server:~# dpkg -L intelmq-api /. /etc /etc/apache2 /etc/apache2/conf-available /etc/intelmq /etc/intelmq/api-apache.conf /etc/intelmq/api-config.json /etc/intelmq/api-sudoers.conf /etc/intelmq/manager /etc/intelmq/manager/positions.conf /etc/sudoers.d /etc/sudoers.d/01_intelmq-api /usr /usr/bin /usr/bin/intelmq-api-adduser /usr/lib /usr/lib/python3 /usr/lib/python3/dist-packages /usr/lib/python3/dist-packages/intelmq_api /usr/lib/python3/dist-packages/intelmq_api/__init__.py /usr/lib/python3/dist-packages/intelmq_api/api.py /usr/lib/python3/dist-packages/intelmq_api/config.py /usr/lib/python3/dist-packages/intelmq_api/files.py /usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi /usr/lib/python3/dist-packages/intelmq_api/runctl.py /usr/lib/python3/dist-packages/intelmq_api/serve.py /usr/lib/python3/dist-packages/intelmq_api/session.py /usr/lib/python3/dist-packages/intelmq_api/util.py /usr/lib/python3/dist-packages/intelmq_api/version.py /usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info /usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info/PKG-INFO /usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info/dependency_links.txt /usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info/requires.txt /usr/lib/python3/dist-packages/intelmq_api-3.0.1.egg-info/top_level.txt /usr/share /usr/share/dbconfig-common /usr/share/dbconfig-common/data /usr/share/dbconfig-common/data/intelmq-api /usr/share/dbconfig-common/data/intelmq-api/install /usr/share/dbconfig-common/data/intelmq-api/install/sqlite3 /usr/share/doc /usr/share/doc/intelmq-api /usr/share/doc/intelmq-api/changelog.Debian.gz /usr/share/doc/intelmq-api/copyright /etc/apache2/conf-available/intelmq-api.conf
The file /usr/lib/python3/dist-packages/intelmq_api/serve.py is listed but the error message said "No module named intelmq_api.serve"
Cheers Chris
-----Ursprüngliche Nachricht----- Von: IntelMQ-users intelmq-users-bounces@lists.cert.at Im Auftrag von Bernhard Reiter Gesendet: Donnerstag, 24. März 2022 19:11 An: intelmq-users@lists.cert.at Betreff: Re: [IntelMQ-users] Installation problems intelmq and manager
Hi Christian,
Am Donnerstag, 24. März 2022, 17:05:51 CET schrieb Harbich, Christian:
Thu Mar 24 16:04:46.596148 2022] [wsgi:error] [pid 6604] [client 127.0.0.1:35488] File "/usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi", line 11, in application [Thu Mar 24 16:04:46.596224 2022] [wsgi:error] [pid 6604] [client 127.0.0.1:35488] from intelmq_api.serve import __hug_wsgi__ [Thu Mar 24 16:04:46.596253 2022] [wsgi:error] [pid 6604] [client 127.0.0.1:35488] ImportError: No module named intelmq_api.serve
I tried to find out how I can install the intelmq_api.serve module but I didn't find out how.
it is part of https://github.com/certtools/intelmq-api/tree/develop/intelmq_api (in particular it is file https://github.com/certtools/intelmq-api/blob/develop/intelmq_api/serve.py)
So the /usr/lib/python3/dist-packages/intelmq_api/intelmq-api.wsgi has to find this python module, when it is called from Apache (and the Apache environment). There are many methods how to potentially achieve this. Remembered correctly, you have used the native packages. What does dpkg -L intelmq-api say?
Btw it was not mentioned in the docu that the apache needs the wsgi module. Maybe this could be added in the prerequirement section
Ideally, if you have used the packages, it could have been a dependency. Otherwise it would be cool if you'd create a pull request with an improvement of the documentation where you would have expected the hint.
Thanks! Bernhard