Title: Error on collecting tests: · Issue #372 · googleapis/python-api-core · GitHub
Open Graph Title: Error on collecting tests: · Issue #372 · googleapis/python-api-core
X Title: Error on collecting tests: · Issue #372 · googleapis/python-api-core
Description: While updating the packaging for this package for openSUSE, we run the test suite and it errored on us: Environment details OS type and version: Linux/openSUSE/Tumbleweed as of today (2022-04-27) Python version: python --version 3.9.12 (...
Open Graph Description: While updating the packaging for this package for openSUSE, we run the test suite and it errored on us: Environment details OS type and version: Linux/openSUSE/Tumbleweed as of today (2022-04-27) P...
X Description: While updating the packaging for this package for openSUSE, we run the test suite and it errored on us: Environment details OS type and version: Linux/openSUSE/Tumbleweed as of today (2022-04-27) P...
Opengraph URL: https://github.com/googleapis/python-api-core/issues/372
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error on collecting tests: ","articleBody":"While updating the packaging for this package for openSUSE, we run the test suite and it errored on us:\r\n\r\n#### Environment details\r\n\r\n - OS type and version: Linux/openSUSE/Tumbleweed as of today (2022-04-27)\r\n - Python version: `python --version` 3.9.12 (but also with 3.8.13 and 3.10.4)\r\n - pip version: `pip --version` 22.0.4\r\n - `google-api-core` version: `pip show google-api-core` 2.7.2\r\n\r\n#### Steps to reproduce\r\n\r\n 1. see below\r\n\r\n#### Stack trace\r\n```\r\n[ 9s] + PYTHONPATH=/home/abuild/rpmbuild/BUILDROOT/python-google-api-core-2.7.2-0.x86_64/usr/lib/python3.9/site-packages\r\n[ 9s] + PYTHONDONTWRITEBYTECODE=1\r\n[ 9s] + pytest-3.9 --ignore=_build.python39 --ignore=_build.python310 --ignore=_build.python38 -v\r\n[ 9s] ============================= test session starts ==============================\r\n[ 9s] platform linux -- Python 3.9.12, pytest-7.1.1, pluggy-1.0.0 -- /usr/bin/python3.9\r\n[ 9s] cachedir: .pytest_cache\r\n[ 9s] rootdir: /home/abuild/rpmbuild/BUILD/google-api-core-2.7.2\r\n[ 9s] plugins: asyncio-0.17.2\r\n[ 9s] asyncio: mode=legacy\r\n[ 10s] collecting ... collected 614 items / 1 error\r\n[ 10s]\r\n[ 10s] ==================================== ERRORS ====================================\r\n[ 10s] ______________ ERROR collecting tests/unit/test_rest_streaming.py ______________\r\n[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_database.py:129: in FindFileContainingSymbol\r\n[ 10s] return self._file_desc_protos_by_symbol[symbol]\r\n[ 10s] E KeyError: 'Genre'\r\n[ 10s]\r\n[ 10s] During handling of the above exception, another exception occurred:\r\n[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_database.py:138: in FindFileContainingSymbol\r\n[ 10s] return self._file_desc_protos_by_symbol[top_level]\r\n[ 10s] E KeyError: ''\r\n[ 10s]\r\n[ 10s] During handling of the above exception, another exception occurred:\r\n[ 10s] tests/unit/test_rest_streaming.py:36: in \u003cmodule\u003e\r\n[ 10s] class Genre(proto.Enum):\r\n[ 10s] /usr/lib/python3.9/site-packages/proto/enums.py:102: in __new__\r\n[ 10s] file_info.generate_file_pb(new_class=cls, fallback_salt=full_name)\r\n[ 10s] /usr/lib/python3.9/site-packages/proto/_file_info.py:138: in generate_file_pb\r\n[ 10s] descriptor = pool.FindEnumTypeByName(full_name)\r\n[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_pool.py:534: in FindEnumTypeByName\r\n[ 10s] self._FindFileContainingSymbolInDb(full_name)\r\n[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_pool.py:728: in _FindFileContainingSymbolInDb\r\n[ 10s] raise error\r\n[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_pool.py:723: in _FindFileContainingSymbolInDb\r\n[ 10s] file_proto = self._internal_db.FindFileContainingSymbol(symbol)\r\n[ 10s] /usr/lib/python3.9/site-packages/google/protobuf/descriptor_database.py:141: in FindFileContainingSymbol\r\n[ 10s] raise KeyError(symbol)\r\n[ 10s] E KeyError: 'Genre'\r\n[ 10s] =============================== warnings summary ===============================\r\n[ 10s] ../../../../../usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:191\r\n[ 10s] /usr/lib/python3.9/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.\r\n[ 10s] config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)\r\n\r\n[ ... this warning repeated many times ... ]\r\n\r\n[ 10s] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\r\n[ 10s] =========================== short test summary info ============================\r\n[ 10s] ERROR tests/unit/test_rest_streaming.py - KeyError: 'Genre'\r\n[ 10s] !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!\r\n[ 10s] ======================== 19 warnings, 1 error in 1.39s =========================\r\n[ 10s] error: Bad exit status from /var/tmp/rpm-tmp.4T1eKX (%check)\r\n[ 10s]\r\n```\r\n[Complete build log](https://github.com/googleapis/python-api-core/files/8570403/_log.txt) with all details of packages used and steps taken to reproduce.","author":{"url":"https://github.com/mcepl","@type":"Person","name":"mcepl"},"datePublished":"2022-04-27T08:44:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/372/python-api-core/issues/372"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0bd1d411-4e5e-2a18-0ea9-02f71185597b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A80A:1162D4:BEF75:118F97:6A4DFAA3 |
| html-safe-nonce | 3f5793a70db690aa83ef0f6ce5c40d25cf44a4dd782df070e7879902e0638256 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODBBOjExNjJENDpCRUY3NToxMThGOTc6NkE0REZBQTMiLCJ2aXNpdG9yX2lkIjoiNDk1MDA1NDE2OTUzODg1MzUzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 63c70472a3d8d337377429c594da9a17f56f77b0a5c33da59697a3e9f3eca34c |
| hovercard-subject-tag | issue:1217015106 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-api-core/372/issue_layout |
| twitter:image | https://opengraph.githubassets.com/786328256cd61cf5f05ecf259d06b785f044178226913e9959b9fc19e7c54bed/googleapis/python-api-core/issues/372 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/786328256cd61cf5f05ecf259d06b785f044178226913e9959b9fc19e7c54bed/googleapis/python-api-core/issues/372 |
| og:image:alt | While updating the packaging for this package for openSUSE, we run the test suite and it errored on us: Environment details OS type and version: Linux/openSUSE/Tumbleweed as of today (2022-04-27) P... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mcepl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992456 |
| octolytics-dimension-repository_nwo | googleapis/python-api-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992456 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-api-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4314b1df11fa8a565684f3a72dc971e3785da365 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width