Hello, I'm trying to deploy this excellent tool to monitor and document an educational center in Spain, but I get stuck when I try to get cabling and patch in seeddatabase tool, I got a internal server error in django. It says that django-filter is not installed but actually is installed.
There is dump of the error:
AssertionError at /api/1/patch/
Using DjangoFilterBackend, but django-filter is not installed
Request Method: GET Request URL: http://192.168.50.55/api/1/patch/?format=json&draw=1&columns%5B0] [data]=id&columns[0][name]=&columns[0][searchable]=true&columns[0] [orderable]=false&columns[0][search][value]=&columns[0][search] [regex]=false&columns[1][data]=cabling.room.id&columns[1][name]=&columns[1] [searchable]=true&columns[1][orderable]=true&columns[1][search] [value]=&columns[1][search][regex]=false&columns[2] [data]=interface.netbox.sysname&columns[2][name]=&columns[2] [searchable]=true&columns[2][orderable]=true&columns[2][search] [value]=&columns[2][search][regex]=false&columns[3] [data]=interface.ifname&columns[3][name]=&columns[3] [searchable]=true&columns[3][orderable]=true&columns[3][search] [value]=&columns[3][search][regex]=false&columns[4] [data]=interface.ifalias&columns[4][name]=&columns[4] [searchable]=true&columns[4][orderable]=true&columns[4][search] [value]=&columns[4][search][regex]=false&columns[5] [data]=cabling.jack&columns[5][name]=&columns[5][searchable]=true&columns[5] [orderable]=true&columns[5][search][value]=&columns[5][search] [regex]=false&columns[6][data]=split&columns[6][name]=&columns[6] [searchable]=true&columns[6][orderable]=true&columns[6][search] [value]=&columns[6][search][regex]=false&order[0][column]=1&order[0] [dir]=asc&start=0&length=10&search=&page=1&page_size=10&cabling__room=&interface__netbox=&ordering=cabling__room__id&_=1508259028338 Django Version: 1.7.11 Exception Type: AssertionError Exception Value:
Using DjangoFilterBackend, but django-filter is not installed
Exception Location: /usr/lib/python2.7/dist-packages/rest_framework/filters.py in __init__, line 37 Python Executable: /usr/bin/python Python Version: 2.7.13 Python Path:
['/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/etc/nav/python']
This installed in a multicore virtual machine.
Thanks in advance,
S. Grau
On 17. okt. 2017 19:03, sgrau5@xtec.cat wrote:
Hello, I'm trying to deploy this excellent tool to monitor and document an educational center in Spain, but I get stuck when I try to get cabling and patch in seeddatabase tool, I got a internal server error in django. It says that django-filter is not installed but actually is installed.
I will quote a comment on an issue we have that I guess is the problem:
"If I'm guessing correctly, you're using the Debian Stretch version of the Debian package, which was only recently released, and hasn't received extensive testing.
It appears it pulls in django-filter version 0.13 from Debian, which is not compatible with NAV or Django 1.7, which NAV uses. We would need to package an older version of django-filter for Debian Stretch for this to work. Bug report probably belongs in https://github.com/UNINETT/nav-debian instead."
This comment can be found at https://github.com/UNINETT/nav/issues/1596
You can try with an older version of django-filter, our requirements are 0.7.x .
There is dump of the error:
AssertionError at /api/1/patch/
Using DjangoFilterBackend, but django-filter is not installed
Request Method: GET Request URL: http://192.168.50.55/api/1/patch/?format=json&draw=1&columns%5B0] [data]=id&columns[0][name]=&columns[0][searchable]=true&columns[0] [orderable]=false&columns[0][search][value]=&columns[0][search] [regex]=false&columns[1][data]=cabling.room.id&columns[1][name]=&columns[1] [searchable]=true&columns[1][orderable]=true&columns[1][search] [value]=&columns[1][search][regex]=false&columns[2] [data]=interface.netbox.sysname&columns[2][name]=&columns[2] [searchable]=true&columns[2][orderable]=true&columns[2][search] [value]=&columns[2][search][regex]=false&columns[3] [data]=interface.ifname&columns[3][name]=&columns[3] [searchable]=true&columns[3][orderable]=true&columns[3][search] [value]=&columns[3][search][regex]=false&columns[4] [data]=interface.ifalias&columns[4][name]=&columns[4] [searchable]=true&columns[4][orderable]=true&columns[4][search] [value]=&columns[4][search][regex]=false&columns[5] [data]=cabling.jack&columns[5][name]=&columns[5][searchable]=true&columns[5] [orderable]=true&columns[5][search][value]=&columns[5][search] [regex]=false&columns[6][data]=split&columns[6][name]=&columns[6] [searchable]=true&columns[6][orderable]=true&columns[6][search] [value]=&columns[6][search][regex]=false&order[0][column]=1&order[0] [dir]=asc&start=0&length=10&search=&page=1&page_size=10&cabling__room=&interface__netbox=&ordering=cabling__room__id&_=1508259028338 Django Version: 1.7.11 Exception Type: AssertionError Exception Value:
Using DjangoFilterBackend, but django-filter is not installed
Exception Location: /usr/lib/python2.7/dist-packages/rest_framework/filters.py in __init__, line 37 Python Executable: /usr/bin/python Python Version: 2.7.13 Python Path:
['/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/etc/nav/python']
This installed in a multicore virtual machine.
Thanks in advance,
S. Grau
Hello, downgrade the version of Django filter does'nt work in debian 9, I tried to reinstall it in debian 8 and it works flawlessly.
Thank you very much.
Regards!
On Mon, 23 Oct 2017 13:07:24 +0200 sgrau5@xtec.cat wrote:
Hello, downgrade the version of Django filter does'nt work in debian 9, I tried to reinstall it in debian 8 and it works flawlessly.
Hi,
we just pushed a ported version of django-filter 0.7 for Debian Stretch to the repository today, which should make things work again.
Great, thanks for the update.
I will try sooner.
thank you again.
S. Grau
El dia 23 oct. 2017 15:10, "Morten Brekkevold" morten.brekkevold@uninett.no va escriure:
On Mon, 23 Oct 2017 13:07:24 +0200 sgrau5@xtec.cat wrote:
Hello, downgrade the version of Django filter does'nt work in debian 9, I tried to reinstall it in debian 8 and it works flawlessly.
Hi,
we just pushed a ported version of django-filter 0.7 for Debian Stretch to the repository today, which should make things work again.
-- Morten Brekkevold UNINETT