On Fri, 1 Dec 2017 18:37:01 +0100 Vinsonnaud Ludovic ludovic.vinsonnaud@institutoptique.fr wrote:
I'm in version 4.8.1
Good!
So the patch is working with your command.
$ patch -p2 -d /usr/share/pyshared < 1625.diff
- patching file nav/portadmin/snmputils.py
- patching file nav/smidumps/dnos_switching_mib.py
- patching file nav/web/portadmin/views.py
But when I restart apache here's the error in the log
[snip]
[Fri Dec 01 10:44:51.129536 2017] [wsgi:error] ImportError: No module named dnos_switching_mib
Ah, this is an added complication of patching a Debian system.
The patch creates an entirely new file in the Python library, under the `/usr/share/pyshared` directory. Since this file was not a part of the original Debian package, there is no symlink to it under the `/usr/lib/python2.7/dist-packages` directory (Debian uses symlinks to support multiple installed versions of Python).
Please try this (as root, with a permissive umask):
ln -s /usr/share/pyshared/nav/smidumps/dnos_switching_mib.py \ /usr/share/python2.7/dist-packages/nav/smidumps/