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

运行不了啊,在win10 + Pycharm上 #6

Open
luohuatan opened this issue Aug 10, 2021 · 2 comments
Open

运行不了啊,在win10 + Pycharm上 #6

luohuatan opened this issue Aug 10, 2021 · 2 comments

Comments

@luohuatan
Copy link

(venv) C:\projects\PytestAutoTestFrameWork>python RunTestCase.py
Traceback (most recent call last):
File "C:\projects\PytestAutoTestFrameWork\RunTestCase.py", line 11, in
import pytest
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages\pytest.py", line 6, in
from pytest.assertion import register_assert_rewrite
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages_pytest\assertion_init
.py", line 6, in
from pytest.assertion import rewrite
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages_pytest\assertion\rewrite.py", line 20, in
from pytest.assertion import util
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages_pytest\assertion\util.py", line 5, in
import pytest.code
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages_pytest_code_init
.py", line 2, in
from .code import Code # noqa
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages_pytest_code\code.py", line 11, in
import pluggy
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages\pluggy_init
.py", line 16, in
from .manager import PluginManager, PluginValidationError
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages\pluggy\manager.py", line 6, in
import importlib_metadata
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages\importlib_metadata_init.py", line 478, in
version = version(name)
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages\importlib_metadata_init.py", line 445, in version
return distribution(package).version
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages\importlib_metadata_init_.py", line 418, in distribution
return Distribution.from_name(package)
File "C:\projects\PytestAutoTestFrameWork\venv\lib\site-packages\importlib_metadata_init_.py", line 179, in from_name
dists = resolver(name)
File "", line 1454, in find_distributions
File "C:\Users\94393\AppData\Local\Programs\Python\Python39\lib\importlib\metadata.py", line 487, in find_distributions
found = cls._search_paths(context.name, context.path)
AttributeError: 'str' object has no attribute 'name'

@Sun5211
Copy link

Sun5211 commented Jan 21, 2022

因为作者可能用的python2

@13691579846
Copy link
Owner

用的python3 看起来是环境问题

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

3 participants