Cannot upgrade from 2.4.9 to 2.5.0 with python 3.4.2 #2230

Closed
opened 2025-12-29 17:23:58 +01:00 by adam · 2 comments
Owner

Originally created by @anx-ag on GitHub (Dec 20, 2018).

Environment

  • Python version: 3.4.2
  • NetBox version: 2.4.9

Steps to Reproduce

Run ./upgrade.sh for netbox 2.5.0

Expected Behavior

A working upgrade to 2.5.0

Observed Behavior

Applying database migrations (python3 netbox/manage.py migrate)...
Traceback (most recent call last):
File "netbox/manage.py", line 8, in
from django.core.management import execute_from_command_line
File "/usr/local/lib/python3.4/dist-packages/django/core/management/init.py", line 11, in
from django.conf import settings
File "/usr/local/lib/python3.4/dist-packages/django/conf/init.py", line 18, in
from django.utils.functional import LazyObject, empty
File "/usr/local/lib/python3.4/dist-packages/django/utils/functional.py", line 12
return _curried_func(*args, *moreargs, **{**kwargs, **morekwargs})
^
SyntaxError: invalid syntax
Collecting static files (python3 netbox/manage.py collectstatic --no-input)...
Traceback (most recent call last):
File "netbox/manage.py", line 8, in
from django.core.management import execute_from_command_line
File "/usr/local/lib/python3.4/dist-packages/django/core/management/init.py", line 11, in
from django.conf import settings
File "/usr/local/lib/python3.4/dist-packages/django/conf/init.py", line 18, in
from django.utils.functional import LazyObject, empty
File "/usr/local/lib/python3.4/dist-packages/django/utils/functional.py", line 12
return _curried_func(*args, *moreargs, **{**kwargs, **morekwargs})
^
SyntaxError: invalid syntax

Originally created by @anx-ag on GitHub (Dec 20, 2018). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.4.2<!-- Example: 3.5.4 --> * NetBox version: 2.4.9<!-- Example: 2.3.6 --> <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> ### Steps to Reproduce Run ./upgrade.sh for netbox 2.5.0 <!-- What did you expect to happen? --> ### Expected Behavior A working upgrade to 2.5.0 <!-- What happened instead? --> ### Observed Behavior Applying database migrations (python3 netbox/manage.py migrate)... Traceback (most recent call last): File "netbox/manage.py", line 8, in <module> from django.core.management import execute_from_command_line File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 11, in <module> from django.conf import settings File "/usr/local/lib/python3.4/dist-packages/django/conf/__init__.py", line 18, in <module> from django.utils.functional import LazyObject, empty File "/usr/local/lib/python3.4/dist-packages/django/utils/functional.py", line 12 return _curried_func(*args, *moreargs, **{**kwargs, **morekwargs}) ^ SyntaxError: invalid syntax Collecting static files (python3 netbox/manage.py collectstatic --no-input)... Traceback (most recent call last): File "netbox/manage.py", line 8, in <module> from django.core.management import execute_from_command_line File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 11, in <module> from django.conf import settings File "/usr/local/lib/python3.4/dist-packages/django/conf/__init__.py", line 18, in <module> from django.utils.functional import LazyObject, empty File "/usr/local/lib/python3.4/dist-packages/django/utils/functional.py", line 12 return _curried_func(*args, *moreargs, **{**kwargs, **morekwargs}) ^ SyntaxError: invalid syntax
adam closed this issue 2025-12-29 17:23:58 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 20, 2018):

NetBox v2.5 requires Django 2.1, which requires Python 3.5 or later.

@jeremystretch commented on GitHub (Dec 20, 2018): NetBox v2.5 requires Django 2.1, which requires Python 3.5 or later.
Author
Owner

@anx-ag commented on GitHub (Dec 21, 2018):

Thanks for the fast response - In the headline it was only saying "requires python 3" and I was not reading the subtext, sorry :-/

@anx-ag commented on GitHub (Dec 21, 2018): Thanks for the fast response - In the headline it was only saying "requires python 3" and I was not reading the subtext, sorry :-/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2230