My code was working, untill I imported wandb and started to return error.
I used pip to install wandb.
Does someone had a error like that?
Here is the error:
Traceback (most recent call last):
File "unimatch_v2.py", line 6, in <module>
import wandb
File "/home/pdi/.local/lib/python3.8/site-packages/wandb/__init__.py", line 27, in <module>
from wandb import sdk as wandb_sdk
File "/home/pdi/.local/lib/python3.8/site-packages/wandb/sdk/__init__.py", line 7, in <module>
from .wandb_init import _attach, init # noqa: F401
File "/home/pdi/.local/lib/python3.8/site-packages/wandb/sdk/wandb_init.py", line 31, in <module>
from . import wandb_login, wandb_setup
File "/home/pdi/.local/lib/python3.8/site-packages/wandb/sdk/wandb_login.py", line 25, in <module>
from .wandb_settings import Settings, Source
File "/home/pdi/.local/lib/python3.8/site-packages/wandb/sdk/wandb_settings.py", line 45, in <module>
from wandb.sdk.internal.system.env_probe_helpers import is_aws_lambda
File "/home/pdi/.local/lib/python3.8/site-packages/wandb/sdk/internal/system/env_probe_helpers.py", line 3, in <module>
from sentry_sdk.integrations.aws_lambda import get_lambda_bootstrap # type: ignore
File "/home/pdi/.local/lib/python3.8/site-packages/sentry_sdk/integrations/aws_lambda.py", line 18, in <module>
from sentry_sdk.integrations._wsgi_common import _filter_headers
File "/home/pdi/.local/lib/python3.8/site-packages/sentry_sdk/integrations/_wsgi_common.py", line 13, in <module>
from django.http.request import RawPostDataException
File "/home/pdi/.local/lib/python3.8/site-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/home/pdi/.local/lib/python3.8/site-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/home/pdi/.local/lib/python3.8/site-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/home/pdi/.local/lib/python3.8/site-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/home/pdi/.local/lib/python3.8/site-packages/django/db/models/__init__.py", line 6, in <module>
from django.db.models.query import Q, QuerySet, Prefetch # NOQA
File "/home/pdi/.local/lib/python3.8/site-packages/django/db/models/query.py", line 13, in <module>
from django.db.models.fields import AutoField, Empty, FieldDoesNotExist
File "/home/pdi/.local/lib/python3.8/site-packages/django/db/models/fields/__init__.py", line 18, in <module>
from django import forms
File "/home/pdi/.local/lib/python3.8/site-packages/django/forms/__init__.py", line 6, in <module>
from django.forms.fields import * # NOQA
File "/home/pdi/.local/lib/python3.8/site-packages/django/forms/fields.py", line 18, in <module>
from django.forms.utils import from_current_timezone, to_current_timezone
File "/home/pdi/.local/lib/python3.8/site-packages/django/forms/utils.py", line 15, in <module>
from django.utils.html import format_html, format_html_join, escape
File "/home/pdi/.local/lib/python3.8/site-packages/django/utils/html.py", line 16, in <module>
from .html_parser import HTMLParser, HTMLParseError
File "/home/pdi/.local/lib/python3.8/site-packages/django/utils/html_parser.py", line 12, in <module>
HTMLParseError = _html_parser.HTMLParseError
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
Thanks in advance