Giter VIP home page Giter VIP logo

Comments (4)

RonnyPfannschmidt avatar RonnyPfannschmidt commented on May 27, 2024

this looks like a broken install issue - please ensure a compatible version of pluggy is installed

from pytest.

maycuatroi avatar maycuatroi commented on May 27, 2024

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.

RonnyPfannschmidt avatar RonnyPfannschmidt commented on May 27, 2024

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.

maycuatroi avatar maycuatroi commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.