# Rocky 9.4 install openvpn as 2.14.0 error

**URL:** <https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903>\
**Category:** Rocky Linux Help & Support\
**Created:** [July 3, 2024, 11:07am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903 "2024-07-03T11:07:23Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![uranus12](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/uranus12/32/2970_2.png) [@uranus12](https://forums.rockylinux.org/u/uranus12)\
**Post date:** [July 3, 2024, 11:07am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/1 "2024-07-03T11:07:23Z")

</div>

wget [https://openvpn.net/downloads/openvpn-as-bundled-clients-latest.rpm](https://openvpn.net/downloads/openvpn-as-bundled-clients-latest.rpm)  
wget [https://openvpn.net/downloads/openvpn-as-latest-el9.x86\_64.rpm](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’.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 3, 2024, 11:14am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/2 "2024-07-03T11:14:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ritov](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@Ritov](https://forums.rockylinux.org/u/Ritov)\
**Post date:** [July 3, 2024, 11:32am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/3 "2024-07-03T11:32:29Z")

</div>

> [@iwalker](#):
>
> Otherwise, suggest installing the default and free version of OpenVPN available in the Rocky repositories.

Its in the EPEL repo:

`yum install epel-release -y && yum install openvpn`

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 3, 2024, 11:45am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/4 "2024-07-03T11:45:58Z")

</div>

> [@Ritov](#):
>
> Its in the EPEL repo:

Good catch, forgot to check that when searching my system lol 🙂

---

<div class="post-metadata">

**Author:** ![uranus12](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/uranus12/32/2970_2.png) [@uranus12](https://forums.rockylinux.org/u/uranus12)\
**Post date:** [July 3, 2024, 11:55am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/5 "2024-07-03T11:55:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![uranus12](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/uranus12/32/2970_2.png) [@uranus12](https://forums.rockylinux.org/u/uranus12)\
**Post date:** [July 3, 2024, 11:58am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/6 "2024-07-03T11:58:07Z")

</div>

> [@uranus12](#):
>
> ModuleNotFoundError: No module named ‘pkg\_resources’

Rocky python 3.9 ModuleNotFoundError: No module named ‘pkg\_resources’

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 3, 2024, 1:18pm UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/7 "2024-07-03T13:18:16Z")

</div>

> [@uranus12](#):
>
> 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

Correct method:

```auto
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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![gerry666uk](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gerry666uk](https://forums.rockylinux.org/u/gerry666uk)\
**Post date:** [July 3, 2024, 7:56pm UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/8 "2024-07-03T19:56:54Z")

</div>

@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?

---

<div class="post-metadata">

**Author:** ![uranus12](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/uranus12/32/2970_2.png) [@uranus12](https://forums.rockylinux.org/u/uranus12)\
**Post date:** [July 4, 2024, 12:10am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/9 "2024-07-04T00:10:55Z")

</div>

Yes,Mainly the python3-setuptools component.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [September 2, 2024, 12:11am UTC](https://forums.rockylinux.org/t/rocky-9-4-install-openvpn-as-2-14-0-error/14903/10 "2024-09-02T00:11:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
