Install error with update.sh #19455
Unanswered
DLHirk
asked this question in
Help Wanted!
Replies: 1 comment
-
Well.... I think I got around this. I found a suggestion in #9986 that someone posted to set pytz==2022.1 in local_requirements.txt. This enabled the update script to complete. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Working with Netbox 3.4.2 and running into the following problem with update.sh:
Applying database migrations (python3 netbox/manage.py migrate)...
Traceback (most recent call last):
File "/opt/netbox/venv/lib64/python3.8/site-packages/backports/zoneinfo/_common.py", line 15, in load_tzdata
return importlib_resources.open_binary(package_name, resource_name)
File "/usr/lib64/python3.8/importlib/resources.py", line 91, in open_binary
return reader.open_resource(resource)
File "", line 1048, in open_resource
FileNotFoundError: [Errno 2] No such file or directory: '/opt/netbox/venv/lib64/python3.8/site-packages/tzdata/zoneinfo/America/Coyhaique'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "netbox/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/netbox/venv/lib64/python3.8/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/opt/netbox/venv/lib64/python3.8/site-packages/django/core/management/init.py", line 420, in execute
django.setup()
File "/opt/netbox/venv/lib64/python3.8/site-packages/django/init.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/netbox/venv/lib64/python3.8/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/opt/netbox/venv/lib64/python3.8/site-packages/django/apps/config.py", line 193, in create
import_module(entry)
File "/usr/lib64/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 843, in exec_module
File "", line 219, in _call_with_frames_removed
File "/opt/netbox/venv/lib64/python3.8/site-packages/timezone_field/init.py", line 1, in
from timezone_field.fields import TimeZoneField
File "/opt/netbox/venv/lib64/python3.8/site-packages/timezone_field/fields.py", line 11, in
class TimeZoneField(models.Field):
File "/opt/netbox/venv/lib64/python3.8/site-packages/timezone_field/fields.py", line 41, in TimeZoneField
default_zoneinfo_tzs = [ZoneInfo(tz) for tz in pytz.common_timezones]
File "/opt/netbox/venv/lib64/python3.8/site-packages/timezone_field/fields.py", line 41, in
default_zoneinfo_tzs = [ZoneInfo(tz) for tz in pytz.common_timezones]
File "/opt/netbox/venv/lib64/python3.8/site-packages/backports/zoneinfo/_common.py", line 27, in load_tzdata
raise ZoneInfoNotFoundError(f"No time zone found with key {key}")
backports.zoneinfo._common.ZoneInfoNotFoundError: 'No time zone found with key America/Coyhaique'
Beta Was this translation helpful? Give feedback.
All reactions