Skip to content

missing 'proto' module #448

@0-wiz-0

Description

@0-wiz-0

Environment details

  • OS type and version: NetBSD-9.99.99/amd64
  • Python version: python 3.10.7
  • pip version: pip 22.2.2
  • google-api-core version: 2.10.1

Steps to reproduce

I'm trying to run the self tests using the pypi distfile and running 'pytest'.
I see:

___________________________________ ERROR collecting tests/unit/test_rest_streaming.py ___________________________________
ImportError while importing test module '/scratch/devel/py-google-api-core/work/google-api-core-2.10.1/tests/unit/test_res
t_streaming.py'.                                                                                                          
Hint: make sure your test modules/packages have valid Python names.                                                       
Traceback:                                                                                                                
/usr/pkg/lib/python3.10/importlib/__init__.py:126: in import_module                                                       
    return _bootstrap._gcd_import(name[level:], package, level)                                                           
tests/unit/test_rest_streaming.py:22: in <module>                                                                         
    import proto                                                                                                          
E   ModuleNotFoundError: No module named 'proto'                                                                          

and pytest fails collecting the tests.

Where is the proto module supposed to come from?

When I manually remove the test file, pytest runs to completion with

7 failed, 559 passed, 71 skipped, 138 warnings

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions