Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Startup error: occasional "AssertionError: Cannot find component 'SSL' for 'OpenSSL.SSL.Context'" #19477

Open
Labels
@jvanasco

Description

@jvanasco

I have been getting an odd/flaky mypy bug in a specific environment on Mac OSx. I am hoping someone can point me in the direction to better troubleshoot it and make a proper report.

MyPy crashes on start with this; full details are below:

  File "mypy/lookup.py", line 53, in lookup_fully_qualifiedAssertionError: Cannot find component 'SSL' for 'OpenSSL.SSL.Context'

Assuming I have the following filepath:

/project/src/level1/level2/level3/foo.py

Running mypy on the following will trigger the issue:

/project/src/level1/level2/level3/*.py/project/src/level1/level2/level3/project/src/level1/level2

Running mypy on the following will NOT trigger the issue:

/project/src/level1/project/src/project

Somehow broadening scope fixes this(?!?)

I uninstalled and reinstalled MyPy and pyopenssl, no luck.

I uninstalled and reinstalled MyPy with--no-binary to start pdb debugging against, but can't figure out where anything involved in triggering this is picked up from.

If anyone can offer a suggestion on where I can start poking around, I would be very appreciative. I've lost a quite bit of efficiency today.

Thanks!

    main()  File "mypy/main.py", line 127, in main  File "mypy/main.py", line 211, in run_build  File "mypy/build.py", line 191, in build  File "mypy/build.py", line 267, in _build  File "mypy/build.py", line 2939, in dispatch  File "mypy/build.py", line 3330, in process_graph  File "mypy/build.py", line 3411, in process_fresh_modules  File "mypy/build.py", line 2107, in fix_cross_refs  File "mypy/fixup.py", line 52, in fixup_module  File "mypy/fixup.py", line 157, in visit_symbol_table  File "mypy/fixup.py", line 72, in visit_type_info  File "mypy/fixup.py", line 159, in visit_symbol_table  File "mypy/nodes.py", line 965, in accept  File "mypy/fixup.py", line 183, in visit_decorator  File "mypy/nodes.py", line 851, in accept  File "mypy/fixup.py", line 167, in visit_func_def  File "mypy/types.py", line 2028, in accept  File "mypy/fixup.py", line 269, in visit_callable_type  File "mypy/types.py", line 2991, in accept  File "mypy/fixup.py", line 361, in visit_union_type  File "mypy/types.py", line 1488, in accept  File "mypy/fixup.py", line 233, in visit_instance  File "mypy/fixup.py", line 370, in lookup_fully_qualified_typeinfo  File "mypy/lookup.py", line 53, in lookup_fully_qualifiedAssertionError: Cannot find component 'SSL' for 'OpenSSL.SSL.Context'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp