Project

General

Profile

Bug #95281

Importlib-metadata 8.5.0 provoque une erreur

Added by Yann Weber 28 days ago. Updated 24 days ago.

Status:
Solution déployée
Priority:
Normal
Assignee:
Target version:
-
Start date:
12 September 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://code.djangoproject.com/ticket/35756
https://github.com/python/importlib_metadata/issues/506

merci Emmanuel

Au moment du manage.py runserver :

Traceback (most recent call last):
  File "/home/publik/src/combo/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/core/management/commands/runserver.py", line 61, in execute
    super().execute(*args, **options)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/core/management/commands/runserver.py", line 96, in handle
    self.run(**options)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/core/management/commands/runserver.py", line 103, in run
    autoreload.run_with_reloader(self.inner_run, **options)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/autoreload.py", line 638, in run_with_reloader
    start_django(reloader, main_func, *args, **kwargs)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/autoreload.py", line 623, in start_django
    reloader.run(django_main_thread)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/autoreload.py", line 329, in run
    self.run_loop()
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/autoreload.py", line 335, in run_loop
    next(ticker)
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/autoreload.py", line 375, in tick
    for filepath, mtime in self.snapshot_files():
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/autoreload.py", line 391, in snapshot_files
    for file in self.watched_files():
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/autoreload.py", line 289, in watched_files
    yield from iter_all_python_module_files()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/publik/envs/publik-env-py3/lib/python3.11/site-packages/django/utils/autoreload.py", line 116, in iter_all_python_module_files
    return iter_modules_and_files(modules, frozenset(_error_files))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: unhashable type: 'types.SimpleNamespace'

Avec une importlib_metadata <= 8.4 tout fonctionne correctement.


Related issues

Related to Publik Installation Développeur - Bug #95270: Build cassé "CommandError: timeout waiting for https://combo.dev.publik.love/" Fermé12 September 2024

Actions

Associated revisions

Revision 30940e8e (diff)
Added by Yann Weber 27 days ago

setup: pin importlib_metadata to <= 8.4 (#95281)

History

#1

Updated by Robot Gitea 28 days ago

  • Status changed from Nouveau to En cours
  • Assignee set to Yann Weber

Yann Weber (yweber) a ouvert une pull request sur Gitea concernant cette demande :

#2

Updated by Robot Gitea 28 days ago

  • Status changed from En cours to Solution proposée
#3

Updated by Yann Weber 28 days ago

  • Related to Bug #95270: Build cassé "CommandError: timeout waiting for https://combo.dev.publik.love/" added
#4

Updated by Yann Weber 28 days ago

  • Description updated (diff)
#5

Updated by Emmanuel Cazenave 28 days ago

  • Status changed from Solution proposée to En cours

Il y a une remarque dans gitea.

#6

Updated by Robot Gitea 27 days ago

  • Status changed from En cours to Solution proposée
#7

Updated by Robot Gitea 27 days ago

  • Status changed from Solution proposée to Solution validée

Emmanuel Cazenave (ecazenave) a approuvé une pull request sur Gitea concernant cette demande :

#8

Updated by Robot Gitea 27 days ago

  • Status changed from Solution validée to Résolu (à déployer)

Emmanuel Cazenave (ecazenave) a mergé une pull request sur Gitea concernant cette demande :

#9

Updated by Transition automatique 24 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF