Receiving __init__() got an unexpected keyword argument 'name' exception accessing some pages

1,981 views
Skip to first unread message

Tom Meadon

unread,
Jul 13, 2018, 9:19:18 AM7/13/18
to NetBox
Brand new install,v2.3.5, installed by following the steps in https://netbox.readthedocs.io/en/latest/

Receiving the attached error when accessing some pages (e.g. IP Addresses).

Server is Ubuntu Server 18.04.

Ouput of pip3 freeze:

asn1crypto==0.24.0
attrs==17.4.0
Automat==0.6.0
bcrypt==3.1.4
blinker==1.4
certifi==2018.1.18
cffi==1.11.5
chardet==3.0.4
click==6.7
cloud-init==18.2
colorama==0.3.7
command-not-found==0.3
configobj==5.0.6
constantly==15.1.0
coreapi==2.3.3
coreschema==0.0.4
cryptography==2.1.4
distro-info==0.18
Django==1.11.14
django-cors-headers==2.3.0
django-debug-toolbar==1.9.1
django-filter==2.0.0
django-js-asset==1.1.0
django-mptt==0.9.0
django-tables2==1.21.2
django-timezone-field==2.1
djangorestframework==3.8.2
drf-yasg==1.9.1
flex==6.13.2
future==0.16.0
graphviz==0.8.4
gunicorn==19.9.0
httplib2==0.9.2
hyperlink==17.3.1
idna==2.6
incremental==16.10.1
inflection==0.3.1
itypes==1.1.0
Jinja2==2.10
jsonpatch==1.16
jsonpointer==1.10
jsonschema==2.6.0
keyring==10.6.0
keyrings.alt==3.0
language-selector==0.1
lxml==4.2.3
Markdown==2.6.11
MarkupSafe==1.0
natsort==5.3.3
ncclient==0.5.3
netaddr==0.7.18
oauthlib==2.0.6
openapi-codec==1.3.2
PAM==0.4.2
paramiko==2.4.1
Pillow==5.2.0
psycopg2-binary==2.7.5
py-gfm==0.1.3
pyasn1==0.4.2
pyasn1-modules==0.2.1
pycparser==2.18
pycrypto==2.6.1
pycryptodome==3.6.4
pygobject==3.26.1
PyJWT==1.5.3
PyNaCl==1.2.1
pyOpenSSL==17.5.0
pyserial==3.4
python-apt==1.6.1
python-debian==0.1.32
pytz==2018.5
pyxdg==0.25
PyYAML==3.12
requests==2.18.4
requests-unixsocket==0.1.5
rfc3987==1.3.7
ruamel.yaml==0.15.43
SecretStorage==2.3.1
service-identity==16.0.0
six==1.11.0
sqlparse==0.2.4
ssh-import-id==5.7
strict-rfc3339==0.7
swagger-spec-validator==2.3.1
systemd-python==234
Twisted==17.9.0
ufw==0.35
unattended-upgrades==0.1
uritemplate==3.0.0
urllib3==1.22
validate-email==1.3
xmltodict==0.11.0
zope.interface==4.3.2

Can anyone help...?
error.PNG

Richard Bongard

unread,
Jul 13, 2018, 9:39:22 AM7/13/18
to NetBox
I have the exact same error after an update from 2.3.4 to 2.3.5. Any ideas?

Matheus Pacheco

unread,
Jul 13, 2018, 10:33:15 AM7/13/18
to NetBox
Same here ... migration from 2.3.1 to 2.3.5

asn1crypto==0.24.0
bcrypt==3.1.4
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
click==6.7
coreapi==2.3.3
coreschema==0.0.4
cryptography==2.2.2

Django==1.11.14
django-cors-headers==2.3.0
django-debug-toolbar==1.9.1
django-filter==2.0.0
django-js-asset==1.1.0
django-mptt==0.9.0
django-tables2==1.21.2
django-timezone-field==2.1
djangorestframework==3.8.2
drf-yasg==1.9.1
flex==6.13.2
future==0.16.0
graphviz==0.8.4
idna==2.7
inflection==0.3.1
itypes==1.1.0
Jinja2==2.10
jsonpointer==1.14
jsonschema==2.6.0
jtextfsm==0.3.1
junos-eznc==2.1.7
lxml==4.2.3
Markdown==2.6.11
MarkupSafe==1.0
napalm==2.3.0
natsort==5.3.3
ncclient==0.5.3
netaddr==0.7.18
netmiko==2.0.2
openapi-codec==1.3.2
paramiko==2.4.1
Pillow==5.2.0
psycopg2-binary==2.7.5
py-gfm==0.1.3
pyasn1==0.4.3
pycparser==2.18
pycryptodome==3.6.4
pyeapi==0.8.2
pyIOSXR==0.52
PyNaCl==1.2.1
pynxos==0.0.3
pyserial==3.4
pytz==2018.5
PyYAML==3.13
requests==2.19.1
rfc3987==1.3.7
ruamel.yaml==0.15.43
scp==0.10.2
simplejson==3.13.2
six==1.11.0
sqlparse==0.2.4
strict-rfc3339==0.7
swagger-spec-validator==2.3.1
textfsm==0.3.2
uritemplate==3.0.0
urllib3==1.23
validate-email==1.3
xmltodict==0.11.0

Tim Weippert

unread,
Jul 13, 2018, 11:39:58 AM7/13/18
to NetBox
I had also the issue, got a traceback:

Environment:


Request Method: GET

Django Version: 1.11.14
Python Version: 3.5.3
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'corsheaders',
 'debug_toolbar',
 'django_filters',
 'django_tables2',
 'mptt',
 'rest_framework',
 'timezone_field',
 'circuits',
 'dcim',
 'ipam',
 'extras',
 'secrets',
 'tenancy',
 'users',
 'utilities',
 'virtualization',
 'drf_yasg')
Installed Middleware:
('debug_toolbar.middleware.DebugToolbarMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'django.middleware.security.SecurityMiddleware',
 'utilities.middleware.ExceptionHandlingMiddleware',
 'utilities.middleware.LoginRequiredMiddleware',
 'utilities.middleware.APIVersionMiddleware')



Traceback:

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in view
  68.             return self.dispatch(request, *args, **kwargs)

File "/usr/local/lib/python3.5/dist-packages/django/views/generic/base.py" in dispatch
  88.         return handler(request, *args, **kwargs)

File "/opt/netbox/netbox/utilities/views.py" in get
  87.             self.queryset = self.filter(request.GET, self.queryset).qs

File "/usr/local/lib/python3.5/dist-packages/django_filters/filterset.py" in qs
  236.                 self.errors

File "/usr/local/lib/python3.5/dist-packages/django_filters/filterset.py" in errors
  213.         return self.form.errors

File "/usr/local/lib/python3.5/dist-packages/django_filters/filterset.py" in form
  258.             Form = self.get_form_class()

File "/usr/local/lib/python3.5/dist-packages/django_filters/filterset.py" in get_form_class
  250.             for name, filter_ in self.filters.items()])

File "/usr/local/lib/python3.5/dist-packages/django_filters/filterset.py" in <listcomp>
  250.             for name, filter_ in self.filters.items()])

File "/usr/local/lib/python3.5/dist-packages/django_filters/filters.py" in field
  138.             self._field = self.field_class(label=self.label, **field_kwargs)

File "/usr/local/lib/python3.5/dist-packages/django_filters/fields.py" in __init__
  159.         super().__init__(*args, **kwargs)

File "/usr/local/lib/python3.5/dist-packages/django/forms/fields.py" in __init__
  345.         super(DecimalField, self).__init__(max_value, min_value, *args, **kwargs)

File "/usr/local/lib/python3.5/dist-packages/django/forms/fields.py" in __init__
  267.         super(IntegerField, self).__init__(*args, **kwargs)

Exception Type: TypeError at /dcim/sites/
Exception Value: __init__() got an unexpected keyword argument 'name'

Maybe someone can help, too?

Tom Meadon

unread,
Jul 13, 2018, 12:04:00 PM7/13/18
to NetBox
I just tried a clean install of 2.3.4 and am getting the same error..

Tom Meadon

unread,
Jul 13, 2018, 12:58:57 PM7/13/18
to NetBox
... and 2.3.2 ...

Matheus Pacheco

unread,
Jul 13, 2018, 1:02:55 PM7/13/18
to Tom Meadon, NetBox
Looks like an issue with Django, but I'm not sure what I'm talking about :)

Objects are working fine thought. If you click on an IP (history panel), or a server, you can do not receive this error.

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/dfb107f7-58b6-40cc-ac62-56eea5eb5316%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Meadon

unread,
Jul 13, 2018, 1:07:10 PM7/13/18
to Matheus Pacheco, NetBox
Problem for me is that I have no objects - I am a brand new user having a very disappointing start to a tool I've heard so many good things about!

Matheus Pacheco

unread,
Jul 13, 2018, 1:09:00 PM7/13/18
to Tom Meadon, NetBox
Absolutely right ... I'm just pointing out to help find the source issue. 

Even with what I said it's impossible to use the tool on a good way.

Richard Bongard

unread,
Jul 13, 2018, 1:21:14 PM7/13/18
to NetBox
I reverted my system back to 2.3.4 and I am working fine again.  I will wait to see if their is a solution before I try the upgrade again.


On Friday, July 13, 2018 at 9:19:18 AM UTC-4, Tom Meadon wrote:

Tom Meadon

unread,
Jul 13, 2018, 1:30:49 PM7/13/18
to Richard Bongard, NetBox
I wonder what the difference between your 2.3.4 and my 2.3.4 is..

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.

Richard Bongard

unread,
Jul 13, 2018, 1:39:31 PM7/13/18
to NetBox
I am using Ubuntu 16.04 LTS. Other than that, I am not sure.

Matheus Pacheco

unread,
Jul 13, 2018, 1:47:26 PM7/13/18
to NetBox
Richard,

pip3 freeze, pls ?

Magnus Isaksson

unread,
Jul 13, 2018, 2:34:07 PM7/13/18
to NetBox
Same problem here.

Just upgraded from 2.3.4 to 2.3.5

CentOS 7, Postgresql 9.6

pip3 freeze:

asn1crypto==0.24.0
bcrypt==3.1.4
certifi==2018.4.16
cffi==1.11.5
chardet==3.0.4
click==6.7
coreapi==2.3.3
coreschema==0.0.4
cryptography==2.2.2
Django==1.11.14
django-cors-headers==2.3.0
django-debug-toolbar==1.9.1
django-filter==2.0.0
django-js-asset==1.1.0
django-mptt==0.9.0
django-tables2==1.21.2
django-timezone-field==2.1
djangorestframework==3.8.2
drf-yasg==1.9.1
flex==6.13.2
future==0.16.0
graphviz==0.8.4
gunicorn==19.7.1
idna==2.6

inflection==0.3.1
itypes==1.1.0
Jinja2==2.10
jsonpointer==1.14
jsonschema==2.6.0
jtextfsm==0.3.1
junos-eznc==2.1.7
lxml==4.2.1

Markdown==2.6.11
MarkupSafe==1.0
napalm==2.3.0
natsort==5.3.3
ncclient==0.5.3
netaddr==0.7.18
netmiko==2.1.1

openapi-codec==1.3.2
paramiko==2.4.1
Pillow==5.2.0
psycopg2-binary==2.7.5
py-gfm==0.1.3
pyasn1==0.4.3
pycparser==2.18
pycryptodome==3.6.4
pyeapi==0.8.2
pyIOSXR==0.52
PyNaCl==1.2.1
pynxos==0.0.3
pyserial==3.4
pytz==2018.4
PyYAML==3.12
requests==2.18.4
rfc3987==1.3.7
ruamel.yaml==0.15.37
scp==0.10.2
six==1.11.0
sqlparse==0.2.4
strict-rfc3339==0.7
swagger-spec-validator==2.1.0
textfsm==0.4.0
uritemplate==3.0.0
urllib3==1.22
validate-email==1.3
xmltodict==0.11.0

Jeremy Stretch

unread,
Jul 13, 2018, 3:07:12 PM7/13/18
to Magnus Isaksson, NetBox
This looks like an issue with the django-filter package, which just released v2.0.0. I'll dig into this shortly, but for now you should be able to fix this for the time being by downgrading to a 1.1 release of the package:

pip3 install django-filter==1.1.0

Please let me know if you continue to experience issues afterward.

Jeremy

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to netbox-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/7a64fe61-e5eb-4d05-a111-fde34c2ff7cc%40googlegroups.com.

Matheus Pacheco

unread,
Jul 13, 2018, 3:13:01 PM7/13/18
to jstr...@digitalocean.com, magnus....@gmail.com, NetBox
Ive opened a Bug Report on project GitHUb


To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "NetBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/CADvjYzo4vVwgtnn0Th0Ow-z2m4BYdQsrezbGmv6QRT78gh%3DOuw%40mail.gmail.com.

Richard Bongard

unread,
Jul 13, 2018, 3:15:58 PM7/13/18
to NetBox
I can confirm, I upgraded again to 2.3.5 from git but downgraded to django-filter==1.1.0 and indeed this does work.

Richard
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.

Matheus Pacheco

unread,
Jul 13, 2018, 3:16:53 PM7/13/18
to rbon...@gmail.com, NetBox
Also confirm ... works fine with django-filter downgrade.

Thanks Jeremy.

Magnus Isaksson

unread,
Jul 13, 2018, 3:18:12 PM7/13/18
to NetBox
That solved it!

Thank you and i are looking forward to your fix.

//Magnus
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.

Tom Meadon

unread,
Jul 14, 2018, 5:04:36 AM7/14/18
to Jeremy Stretch, Magnus Isaksson, NetBox

Brilliant, that’s solved it for me also.  Thanks Jeremy, looking forward to the fix.

 

Cheers,

 

Tom

To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.

 

--

You received this message because you are subscribed to the Google Groups "NetBox" group.

To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netbox-discuss/CADvjYzo4vVwgtnn0Th0Ow-z2m4BYdQsrezbGmv6QRT78gh%3DOuw%40mail.gmail.com.

David Abarca

unread,
Jul 19, 2018, 1:18:07 PM7/19/18
to NetBox
I just upgraded form 2.3.3 to 2.3.6 after testing the old version for a while but now I get the same error as others describe.

I've tried to revert the django-filter  to 1.1.0 as others have, restarted the service but still I can't access some pages. What else can I do?

// David


On Friday, 13 July 2018 21:07:12 UTC+2, Jeremy Stretch wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to netbox-discus...@googlegroups.com.
To post to this group, send email to netbox-...@googlegroups.com.
Message has been deleted

Carlos Albornoz

unread,
Jul 20, 2018, 4:46:27 PM7/20/18
to NetBox
Same here!!

UPDATE:

I upgraded form 2.3.3 to 2.3.6, aaaand before run ./upgrade.sh do "git pull" :) turum tss

Cheers.
Reply all
Reply to author
Forward
0 new messages