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

ImportError: cannot import name 'import_path' from '_pytest.doctest' #14

Open
boolmriver opened this issue Mar 24, 2024 · 1 comment
Open

Comments

@boolmriver
Copy link

这个问题怎么解决,pytest是最新的。
Traceback (most recent call last):
File "/data/home/scv9515/A_suke_file/ALLMs/llama2-lora-fine-tuning/finetune-lora.py", line 45, in
from transformers.testing_utils import CaptureLogger
File "/data/home/scv9515/miniconda3/envs/bili/lib/python3.10/site-packages/transformers/testing_utils.py", line 131, in
from _pytest.doctest import (
ImportError: cannot import name 'import_path' from '_pytest.doctest' (/data/home/scv9515/miniconda3/envs/bili/lib/python3.10/site-packages/_pytest/doctest.py)

@QAQusers
Copy link

我也遇到了,pytest版本8.2.0,
from _pytest.doctest import (
E ImportError: cannot import name 'import_path' from '_pytest.doctest' (/home/li/.conda/envs/mindspore_py39/lib/python3.9/site-packages/_pytest/doctest.py)

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

No branches or pull requests

2 participants