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.

Sometimes no analysis for pip installed libraries #601

Description

Some libraries installed via pip such as numpy end up with an message like:

[Info  - 12:17:31 PM] Import not found: numpy

And no analysis info.

Sometimes the analysis gets hung up on analyzing some pip related libraries and appears to not proceed, but that may be another issue.

Activity

  1. MikhailArkhipov commented on Feb 13, 2019

    @MikhailArkhipov

    To verify with the dependency handling. Current imports code is not bullet proof.

  2. jakebailey commented on Feb 13, 2019

    @jakebailey
    MemberAuthor

    Also on a Django project:

    Analysis queued: cool
    [Info  - 1:37:08 PM] Import not found: django.db
    Import:  django.db c:\Users\jabaile\Desktop\djangoo\venv\lib\site-packages\django\db\__init__.py 
    Analysis queued: django.db
    [Info  - 1:37:08 PM] Import not found: django.core
    Import:  django.core c:\Users\jabaile\Desktop\djangoo\venv\lib\site-packages\django\core\__init__.py 
    
  3. MikhailArkhipov commented on Feb 14, 2019

    @MikhailArkhipov

    I found where 'import not found' is coming from. It is red herring - typeshed resolution happens to report this way that the stub is not found. Fixed that with a better message. Secondary issue, which is, in fact, caused import to start looking for a stub is that file inside workspace was being considered library rather than user code.

  4. MikhailArkhipov commented on Feb 14, 2019

    @MikhailArkhipov

    There is recursive import in scikit-learn, opening _k_means eventually leads to spectral.py which again imports from .k_means_ import k_means. Current import/dependency resolution does not handle this reliably. Needs #432. However, I handled recursion via RDT since the module is already there - although its analysis is incomplete.

  5. added 2 commits that reference this issue on Feb 19, 2019
    b03b848
    d07af9a
  6. added a commit that references this issue on Feb 28, 2019
    eaa08a4
  7. added 3 commits that reference this issue on Nov 1, 2019
    90f4ff6
    b58a0ab
    02eae29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions