Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Repeated output message with Pandas #817

Description

With the last version of the language server I get repeated messages like this in the output window

Traceback (most recent call last):
  File "/Users/albireo/.vscode-insiders/extensions/ms-python.python-2019.4.6033-alpha/languageServer.0.2.30/scrape_module.py", line 1489, in <module>
    state.initial_import(sys.argv[2])
  File "/Users/albireo/.vscode-insiders/extensions/ms-python.python-2019.4.6033-alpha/languageServer.0.2.30/scrape_module.py", line 872, in initial_import
    mod = __import__(self.module_name)
  File "/Users/albireo/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/__init__.py", line 23, in <module>
    from pandas.compat.numpy import *
  File "/Users/albireo/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/site-packages/pandas/compat/__init__.py", line 446, in <module>
    import typing
  File "/Users/albireo/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/site-packages/typing.py", line 1356, in <module>
    class Callable(extra=collections_abc.Callable, metaclass=CallableMeta):
  File "/Users/albireo/.pyenv/versions/3.7.2/Python.framework/Versions/3.7/lib/python3.7/site-packages/typing.py", line 1004, in __new__
    self._abc_registry = extra._abc_registry
AttributeError: type object 'Callable' has no attribute '_abc_registry'

They don't seem to break anything as far as I can see.

Activity

  1. MikhailArkhipov commented on Mar 23, 2019

    @MikhailArkhipov

    Jake Bailey (@jakebailey) - was it suppressed with #798 ?

  2. jakebailey commented on Mar 23, 2019

    @jakebailey
    Member

    Warnings from the warnings module are suppressed, not actual exceptions. The AttributeError would still show.

  3. MikhailArkhipov commented on Mar 24, 2019

    @MikhailArkhipov

    Should suppress them too IMO. They don't provide any value to the user.

  4. added a commit that references this issue on Mar 25, 2019
    4bdd748
  5. added a commit that references this issue on Nov 1, 2019
    8e02abe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions