Comments (4)
this looks like a broken install issue - please ensure a compatible version of pluggy is installed
from pytest.
I'm trying to install pluggy version 1.4.0 but it doesn't work
(base) binhna@DESKTOP-D9VLB13:/mnt/d/Github/drawio$ pip install pluggy -U
Requirement already satisfied: pluggy in /home/binhna/miniconda3/lib/python3.11/site-packages (1.4.0)
(base) binhna@DESKTOP-D9VLB13:/mnt/d/Github/drawio$ pytest .
Traceback (most recent call last):
File "/home/binhna/miniconda3/bin/pytest", line 5, in <module>
from pytest import console_main
File "/home/binhna/miniconda3/lib/python3.11/site-packages/pytest/__init__.py", line 6, in <module>
from _pytest.assertion import register_assert_rewrite
File "/home/binhna/miniconda3/lib/python3.11/site-packages/_pytest/assertion/__init__.py", line 10, in <module>
from _pytest.assertion import rewrite
File "/home/binhna/miniconda3/lib/python3.11/site-packages/_pytest/assertion/rewrite.py", line 36, in <module>
from _pytest.assertion import util
File "/home/binhna/miniconda3/lib/python3.11/site-packages/_pytest/assertion/util.py", line 23, in <module>
from _pytest.config import Config
File "/home/binhna/miniconda3/lib/python3.11/site-packages/_pytest/config/__init__.py", line 43, in <module>
from pluggy import HookimplOpts
ImportError: cannot import name 'HookimplOpts' from 'pluggy' (/home/binhna/miniconda3/lib/python3.11/site-packages/pluggy/__init__.py)
(base) binhna@DESKTOP-D9VLB13:/mnt/d/Github/drawio$
from pytest.
the pluggy package at version 1.4.0 clearly has it - please show the content of your module and more details
this looks like a broken installation
from pytest.
@RonnyPfannschmidt Thank you so much. The problem is:
Somehow, pluggy version 1.0.0 was already installed in the site-packages. When I tried to install it via pip, although I attempted to uninstall and then reinstall it, the command output clearly indicated that version 1.4.0 had been installed. However, in reality, it was still using version 1.0.0 until I manually deleted the pluggy folder in the site packages. After reinstalling, it worked.
from pytest.
Related Issues (20)
- Let `OutcomeException` inherit from `Exception` instead of `BaseException` HOT 3
- Official Pytest Docker Image HOT 3
- I am getting error "pytest: error: unrecognized arguments: --env" while executing tests using pytest HOT 8
- Handle warnings raised at import time early in pytest process
- `monkeypatch.setattr` started failing in Pytest 8.1.2 (setuptools CI) HOT 1
- Show nicer tracebacks for BaseExceptionGroup from fixture setup/teardown
- Issue with pytest 8.2.0 and tornado async tests HOT 3
- Pytest 8.2.0 breaks Jenkins unittesting [Python 3.10] HOT 6
- Getting `AttributeError: 'FixtureDef' object has no attribute 'unittest'` in pytest 8.2.0 HOT 9
- 'FixtureDef' object has no attribute 'unittest' (an Async @ 8.2.0 issue?) HOT 1
- PyTest 8.2.0 in compatible with certain versions of pytorch, especially DDP tests HOT 1
- v8.2.0 raises `Can't instantiate abstract class` when a test class implements an abstract class HOT 4
- With 8.2.0, attempt to import docs from niece module fails HOT 1
- Since 8.2.0, automatic multiprocessing causes race conditions in my project HOT 3
- Support marker keyword arguments in marker expression (test selection via `-m`) HOT 3
- The teardown does not execute properly for session level fixture when we use --reruns HOT 5
- `--doctest-modules` option causes namespace packages' subpackages to be added to `sys.path` HOT 4
- pytest 8.2.0 runs `unittest.case.TestCase.__init__` during collecting phase in the same process HOT 6
- Support Dark Mode for Pytest Docs Website HOT 5
- Incorrect confcutdir inferred when rootdir is under a symlink directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest.