# Bug in pyroute2

**URL:** <https://forum.pritunl.com/t/bug-in-pyroute2/358>\
**Category:** Pritunl\
**Created:** [September 2, 2022, 3:18pm UTC](https://forum.pritunl.com/t/bug-in-pyroute2/358 "2022-09-02T15:18:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr0nn](https://forum.pritunl.com/user_avatar/forum.pritunl.com/dr0nn/32/135_2.png) [@dr0nn](https://forum.pritunl.com/u/dr0nn)\
**Post date:** [September 2, 2022, 3:18pm UTC](https://forum.pritunl.com/t/bug-in-pyroute2/358/1 "2022-09-02T15:18:17Z")

</div>

Hi,

Currently, Pritunl ([pritunl/requirements.txt at master · pritunl/pritunl · GitHub](https://github.com/pritunl/pritunl/blob/master/requirements.txt)) is using pyroute2 in version 0.6.7 which has a bug related to uname function [pyroute2 import fails if kernel local version does not start with a dash · Issue #885 · svinota/pyroute2 · GitHub](https://github.com/svinota/pyroute2/issues/885)

Is it feasible to update the library to a newer one? I would like to update Pritunl to the newest version but this bug stops me from doing that.

```auto
File "/usr/lib/pritunl/lib/python3.8/site-packages/pritunl/utils/network.py", line 13, in <module>
    import pyroute2.iproute
  File "/usr/lib/pritunl/lib/python3.8/site-packages/pyroute2/ __init__.py", line 14, in <module>
    from pr2modules.config.version import __version__
  File "/usr/lib/pritunl/lib/python3.8/site-packages/pr2modules/config/ __init__.py", line 25, in <module>
    kernel = [int(x) for x in uname[2].split('-')[0].split('.')]
  File "/usr/lib/pritunl/lib/python3.8/site-packages/pr2modules/config/ __init__.py", line 25, in <listcomp>
    kernel = [int(x) for x in uname[2].split('-')[0].split('.')]
ValueError: invalid literal for int() with base 10: '109+'
type or paste code here

```

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [September 3, 2022, 10:41pm UTC](https://forum.pritunl.com/t/bug-in-pyroute2/358/2 "2022-09-03T22:41:58Z")

</div>

This will be updated in a future release. It can be fixed on an existing installation by running the command `sudo /usr/lib/pritunl/bin/pip install pyroute2==0.7.2`.

---

<div class="post-metadata">

**Author:** ![dr0nn](https://forum.pritunl.com/user_avatar/forum.pritunl.com/dr0nn/32/135_2.png) [@dr0nn](https://forum.pritunl.com/u/dr0nn)\
**Post date:** [September 5, 2022, 12:01pm UTC](https://forum.pritunl.com/t/bug-in-pyroute2/358/3 "2022-09-05T12:01:13Z")

</div>

Thanks, that solved the issue.
