Skip to content

import attr from attrs imports wrong package #1210

@radekzc

Description

@radekzc

2023-12-13 19:48:09.894 [info] from lsprotocol import types as lsp
File "/home/svobora/.vscode-server/extensions/ms-python.pylint-2023.10.1/bundled/libs/lsprotocol/types.py", line 14, in
import attrs
File "/home/svobora/.vscode-server/extensions/ms-python.pylint-2023.10.1/bundled/libs/attrs/init.py", line 3, in
from attr import (
ImportError: cannot import name 'AttrsInstance' from 'attr' (/usr/lib/python3/dist-packages/attr/init.py)

It imports attr package from system python folder (Ubuntu 22.04). What to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions