No module named 'zoneinfo'

Open
#641 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
django, python
Domain
backend

Research direction

Reproduce the failure by running the migration command through manage.py, then inspect the Django template-library loading path for qr_code.templatetags.qr_code. Confirm the environment and dependency versions involved in the No module named 'zoneinfo' error; done means migrations complete without InvalidTemplateLibrary.

Written by the indexing model from the issue text.

Description

Hi

I'm installing webvirtcloud to manage kvm with manual on README.
But I've got in problem relative with "zoneinfo". (My box is running with Ubuntu 20.04.6 LTS)

I changed python3 version from 3.8 to 3.11, but not working.

Traceback (most recent call last):
  File "/srv/webvirtcloud/manage.py", line 21, in <module>
    main()
  File "/srv/webvirtcloud/manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/__init__.py", line 436, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 412, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 458, in execute
    output = self.handle(*args, **options)
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 106, in wrapper
    res = handle_func(*args, **kwargs)
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/commands/migrate.py", line 100, in handle
    self.check(databases=[database])
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/management/base.py", line 485, in check
    all_issues = checks.run_checks(
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/checks/registry.py", line 88, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/core/checks/templates.py", line 60, in check_for_template_tags_with_the_same_name
    for module_name, module_path in get_template_tag_modules():
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/template/backends/django.py", line 105, in get_template_tag_modules
    for name in get_package_libraries(pkg):
  File "/srv/webvirtcloud/venv/lib/python3.8/site-packages/django/template/backends/django.py", line 130, in get_package_libraries
    raise InvalidTemplateLibrary(
django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'qr_code.templatetags.qr_code': No module named 'zoneinfo'
Dominant language
JavaScript
Stars
1.9k
Forks
398
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from retspen/webvirtcloud

All issues in retspen/webvirtcloud

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.