Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to run #49

Closed
ilya1725 opened this issue Jan 30, 2025 · 5 comments · Fixed by #50
Closed

Failure to run #49

ilya1725 opened this issue Jan 30, 2025 · 5 comments · Fixed by #50

Comments

@ilya1725
Copy link

Installed 0.6.0.

This error occurred when running pytest:

02:08:36     Traceback (most recent call last):
02:08:36       File "<frozen runpy>", line 198, in _run_module_as_main
02:08:36       File "<frozen runpy>", line 88, in _run_code
02:08:36       File "C:\Python311\Lib\site-packages\pytest\__main__.py", line 5, in <module>
02:08:36         raise SystemExit(pytest.console_main())
02:08:36                          ^^^^^^^^^^^^^^^^^^^^^
02:08:36       File "C:\Python311\Lib\site-packages\_pytest\config\__init__.py", line 189, in console_main
02:08:36         code = main()
02:08:36                ^^^^^^
02:08:36       File "C:\Python311\Lib\site-packages\_pytest\config\__init__.py", line 147, in main
02:08:36         config = _prepareconfig(args, plugins)
02:08:36                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:08:36       File "C:\Python311\Lib\site-packages\_pytest\config\__init__.py", line 328, in _prepareconfig
02:08:36         config = pluginmanager.hook.pytest_cmdline_parse(
02:08:36                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:08:36       File "C:\Python311\Lib\site-packages\pluggy\_hooks.py", line 265, in __call__
02:08:36         return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
02:08:36                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:08:36       File "C:\Python311\Lib\site-packages\pluggy\_manager.py", line 80, in _hookexec
02:08:36         return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
02:08:36                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:08:36       File "C:\Python311\Lib\site-packages\pluggy\_callers.py", line 55, in _multicall
02:08:36         gen.send(outcome)
02:08:36       File "C:\Python311\Lib\site-packages\_pytest\helpconfig.py", line 103, in pytest_cmdline_parse
02:08:36         config: Config = outcome.get_result()
02:08:36                          ^^^^^^^^^^^^^^^^^^^^
02:08:36       File "C:\Python311\Lib\site-packages\pluggy\_result.py", line 60, in get_result
02:08:36         raise ex[1].with_traceback(ex[2])
02:08:36       File "C:\Python311\Lib\site-packages\pluggy\_callers.py", line 39, in _multicall
02:08:36         res = hook_impl.function(*args)
02:08:36               ^^^^^^^^^^^^^^^^^^^^^^^^^
02:08:36       File "C:\Python311\Lib\site-packages\_pytest\config\__init__.py", line 1067, in pytest_cmdline_parse
02:08:36         self.parse(args)
02:08:36       File "C:\Python311\Lib\site-packages\_pytest\config\__init__.py", line 1354, in parse
02:08:36         self._preparse(args, addopts=addopts)
02:08:36       File "C:\Python311\Lib\site-packages\_pytest\config\__init__.py", line 1237, in _preparse
02:08:36         self.pluginmanager.load_setuptools_entrypoints("pytest11")
02:08:36       File "C:\Python311\Lib\site-packages\pluggy\_manager.py", line 287, in load_setuptools_entrypoints
02:08:36         plugin = ep.load()
02:08:36                  ^^^^^^^^^
02:08:36       File "C:\Python311\Lib\importlib\metadata\__init__.py", line 202, in load
02:08:36         module = import_module(match.group('module'))
02:08:36                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:08:36       File "C:\Python311\Lib\importlib\__init__.py", line 126, in import_module
02:08:36         return _bootstrap._gcd_import(name[level:], package, level)
02:08:36                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:08:36       File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
02:08:36       File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
02:08:36       File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
02:08:36       File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
02:08:36       File "C:\Python311\Lib\site-packages\_pytest\assertion\rewrite.py", line 172, in exec_module
02:08:36         exec(co, module.__dict__)
02:08:36       File "C:\Python311\Lib\site-packages\pytest_smoke\plugin.py", line 159, in <module>
02:08:36         @pytest.hookimpl(wrapper=True, tryfirst=True)
02:08:36          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
02:08:36     TypeError: HookimplMarker.__call__() got an unexpected keyword argument 'wrapper'
@yugokato
Copy link
Owner

Hi @ilya1725, could you please share the output of pip freeze with me? It seems like the issue might be related to your pluggy version.

@ilya1725
Copy link
Author

02:06:31   Package                       Version
02:06:31   ----------------------------- ----------
02:06:31   afterglow                     0.7.1
02:06:31   alpenglow                     5.1.91
02:06:31   argparse-addons               0.12.0
02:06:31   attrs                         23.1.0
02:06:31   bcrypt                        4.2.1
02:06:31   bitstruct                     8.19.0
02:06:31   cantools                      39.0.0
02:06:31   certifi                       2023.11.17
02:06:31   cffi                          1.16.0
02:06:31   charset-normalizer            3.3.2
02:06:31   click                         8.1.8
02:06:31   clr-loader                    0.2.3
02:06:31   colorama                      0.4.6
02:06:31   contextlib2                   0.5.5
02:06:31   crccheck                      1.3.0
02:06:31   cryptography                  44.0.0
02:06:31   deprecation                   2.1.0
02:06:31   diskcache                     5.6.3
02:06:31   elementpath                   4.1.5
02:06:31   et-xmlfile                    1.1.0
02:06:31   grpcio                        1.69.0
02:06:31   hightime                      0.2.2
02:06:31   idna                          3.6
02:06:31   iniconfig                     2.0.0
02:06:31   intelhex                      2.3.0
02:06:31   isodate                       0.6.0
02:06:31   isystem.connect               9.21.170.0
02:06:31   itg-automation-test-framework 2.0.545
02:06:31   Jinja2                        3.1.2
02:06:31   labjack-ljm                   1.21.0
02:06:31   logic2-automation             1.0.7
02:06:31   lxml                          4.9.3
02:06:31   MarkdownTools2                1.0.1
02:06:31   MarkupSafe                    2.1.3
02:06:31   minimalmodbus                 2.0.1
02:06:31   niveristand                   2.1.0
02:06:31   npTDMS                        1.6.1
02:06:31   numpy                         1.24.2
02:06:31   openpyxl                      3.1.2
02:06:31   packaging                     23.1
02:06:31   pandas                        1.5.3
02:06:31   paramiko                      3.5.0
02:06:31   pathlib                       1.0.1
02:06:31   pillow                        11.1.0
02:06:31   pip                           24.3.1
02:06:31   pipdeptree                    2.13.1
02:06:31   platformdirs                  2.0.0
02:06:31   pluggy                        1.0.0
02:06:31   polarion                      1.3.0
02:06:31   protobuf                      5.29.3
02:06:31   psutil                        6.1.1
02:06:31   py                            1.11.0
02:06:31   pycparser                     2.21
02:06:31   pydantic                      1.10.8
02:06:31   pyelftools                    0.31
02:06:31   PyNaCl                        1.5.0
02:06:31   PyQt6                         6.6.1
02:06:31   PyQt6-Qt6                     6.6.3
02:06:31   PyQt6-sip                     13.6.0
02:06:31   pyqtgraph                     0.13.4
02:06:31   pyserial                      3.5
02:06:31   pytest                        7.3.1
02:06:31   pytest-fixtures               0.1.0
02:06:31   pytest-html                   3.2.0
02:06:31   pytest-json-report            1.5.0
02:06:31   pytest-metadata               3.0.0
02:06:31   pytest-random-order           1.1.1
02:06:31   pytest-smoke                  0.6.0
02:06:31   python-can                    4.1.0
02:06:31   python-dateutil               2.8.2
02:06:31   python-decouple               3.8
02:06:31   python-dotenv                 1.0.0
02:06:31   pythonnet                     3.0.1
02:06:31   pytz                          2020.1
02:06:31   PyVISA                        1.13.0
02:06:31   pywin32                       None
02:06:31   PyYAML                        6.0
02:06:31   reqif                         0.0.41
02:06:31   requests                      2.31.0
02:06:31   requests-file                 1.5.1
02:06:31   requests-toolbelt             1.0.0
02:06:31   schema                        0.7.5
02:06:31   scipy                         1.12.0
02:06:31   setuptools                    65.0.0
02:06:31   six                           1.16.0
02:06:31   teamcity-messages             1.32
02:06:31   tenacity                      8.2.2
02:06:31   textparser                    0.24.0
02:06:31   texttable                     1.7.0
02:06:31   ttkbootstrap                  1.10.1
02:06:31   typing_extensions             4.6.3
02:06:31   tzdata                        2023.1
02:06:31   tzlocal                       5.2
02:06:31   unittest-xml-reporting        3.2.0
02:06:31   uptime                        3.0.1
02:06:31   urllib3                       2.1.0
02:06:31   wheel                         0.41.3
02:06:31   wrapt                         1.15.0
02:06:31   xmlschema                     2.4.0
02:06:31   zeep                          4.2.1
02:06:31   

@yugokato
Copy link
Owner

Looks like it requires pluggy>=1.2.0. Please try upgrading pluggy to 1.2.0 or later and it should remove that error.
I'll release a patch version that pins pluggy today.
Thanks for reporting this!

@yugokato
Copy link
Owner

FYI - v6.0.1 has been released (https://pypi.org/project/pytest-smoke/0.6.1/)

@ilya1725
Copy link
Author

Thank you for fixing so fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants