pdm-project / pdm-venv

A plugin for pdm that enables virtualenv management
https://pdm-project.github.io/pdm-venv
MIT License
24 stars 4 forks source link

Error message when using the last version of PDM (with integrated venv) #44

Closed vadim-su closed 2 years ago

vadim-su commented 2 years ago

Describe the bug I get an error when running any command

Failed to load plugin venv=pdm_venv.plugin:entry_point: cannot import name 'is_venv_python' from 'pdm.utils' (/home/vscode/.local/lib/python3.10/site-packages/pdm/utils.py)

To Reproduce Steps to reproduce the behavior:

  1. Install pdm and pdm-venv `pip install --user pdm pdm-venv
  2. Run command 'pdm config -vv'
  3. See error
    pdm config -vv
    Failed to load plugin venv=pdm_venv.plugin:entry_point: cannot import name 'is_venv_python' from 'pdm.utils' (/home/vscode/.local/lib/python3.10/site-packages/pdm/utils.py)
    Site/default configuration (/etc/xdg/pdm/config.toml):
    # Isolate build environment from the project environment
    build_isolation = True
    # The root directory of cached files
    cache_dir = /home/vscode/.cache/pdm
    # Check if there is any newer version available

Expected behavior Maybe we should inform users about pdm-venv integration because it was a surprise for me and I spent some time defining the problem's origin.

Screenshots Annoying message

System (please complete the following information):

frostming commented 2 years ago

pdm 2.0 has builtin support of venv, this plugin is no longer needed. Thanks