wget https://openvpn.net/downloads/openvpn-as-bundled-clients-latest.rpm
wget https://openvpn.net/downloads/openvpn-as-latest-el9.x86_64.rpm
yum -y install openvpn-as-bundled-clients-30.rpm
yum -y install openvpn-as-2.14.0_b90cb316-1.el9.x86_64.rpm
Jul 3 18:59:54 localhost systemd[1]: Started OpenVPN Access Server.
Jul 3 18:59:54 localhost openvpnas[14702]: Traceback (most recent call last):
Jul 3 18:59:54 localhost openvpnas[14702]: File “”, line 1, in
Jul 3 18:59:54 localhost openvpnas[14702]: File “”, line 259, in load_module
Jul 3 18:59:54 localhost openvpnas[14702]: File “build/bdist.linux-x86_64/egg/pyovpn/init .py”, line 2, in
Jul 3 18:59:54 localhost openvpnas[14702]: File “”, line 259, in load_module
Jul 3 18:59:54 localhost openvpnas[14702]: File “build/bdist.linux-x86_64/egg/pyovpn/monkeypatch/tags.py”, line 1, in
Jul 3 18:59:54 localhost openvpnas[14702]: File “/usr/local/openvpn_as/lib/python/Twisted-22.4.0-py3.9.egg/twisted/web/_template_util.py”, line 29, in
Jul 3 18:59:54 localhost openvpnas[14702]: from zope.interface import implementer
Jul 3 18:59:54 localhost openvpnas[14702]: File “/usr/local/openvpn_as/lib/python/zope.interface-6.4.post2-py3.9-linux-x86_64.egg/zope/init .py”, line 1, in
Jul 3 18:59:54 localhost openvpnas[14702]: import (‘pkg_resources’).declare_namespace(name )
Jul 3 18:59:54 localhost openvpnas[14702]: ModuleNotFoundError: No module named ‘pkg_resources’
Jul 3 18:59:54 localhost systemd[1]: openvpnas.service: Main process exited, code=exited, status=1/FAILURE
Jul 3 18:59:54 localhost systemd[1]: openvpnas.service: Failed with result ‘exit-code’.
Since this is a paid OpenVPN product, I suggest you ask OpenVPN for support with their packages that don’t work when installed.
Otherwise, suggest installing the default and free version of OpenVPN available in the Rocky repositories.
Ritov
July 3, 2024, 11:32am
3
Its in the EPEL repo:
yum install epel-release -y && yum install openvpn
1 Like
Ritov:
Its in the EPEL repo:
Good catch, forgot to check that when searching my system lol
I have solved it. I don’t understand why python is missing small components.
Install python3-pip
python -m pip install --upgrade pip setuptools wheel
Rocky python 3.9 ModuleNotFoundError: No module named ‘pkg_resources’
Correct method:
dnf install python3-pip-wheel
dnf install python3-setuptools
using pip has installed something outside of Rocky Linux. Sometimes it can be used, but when packages are available in the repositories, better to use them first.
Also, if a later version of Python 3.x is required, eg python3.11, then there are also packages available, eg:
dnf list python3.11*
That said, the OpenVPN packages should have pulled in dependencies it requires, if it doesn’t then they have packaged them incorrectly as otherwise they are assuming they were already installed. They should also do the same for pkg_resources
whatever that package is meant to be. They obviously need to learn how to package rpm’s properly since they missed configuring the dependencies to install during installation of their rpms.
@uranus12 had already installed “zope” from whereever, so I wonder if you install the epel version of openvpn direct onto a newly installed Rocky 9.x?
Yes,Mainly the python3-setuptools component.
system
Closed
September 2, 2024, 12:11am
10
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.