Skip to content

教程执行失败 #140

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

Open
wang-qa opened this issue Apr 14, 2025 · 1 comment
Open

教程执行失败 #140

wang-qa opened this issue Apr 14, 2025 · 1 comment

Comments

@wang-qa
Copy link

wang-qa commented Apr 14, 2025

pip3 install youqu-framework
youqu-startproject my_project
cd my_project
bash env.sh
youqu manage.py startapp autotest_my_app
youqu manage.py run

执行报错

(my_project) ╭─kubuntu at kubuntu-ThinkBook-14-G2-ITL in ~/my_project 25-04-14 - 16:21:36
╰─(.venv) ○ youqu manage.py run
Courtesy Notice:
Pipenv found itself running within a virtual environment,  so it will automatically use that environment, instead of  creating its own for any project. You can set
PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create  its own instead.
You can set PIPENV_VERBOSITY=-1 to suppress this warning.


 ██╗   ██╗  ██████╗  ██╗   ██╗  ██████╗  ██╗   ██╗ 
 ╚██╗ ██╔╝ ██╔═══██╗ ██║   ██║ ██╔═══██╗ ██║   ██║ 
  ╚████╔╝  ██║   ██║ ██║   ██║ ██║   ██║ ██║   ██║ 
   ╚██╔╝   ██║   ██║ ██║   ██║ ██║▄▄ ██║ ██║   ██║ 
    ██║    ╚██████╔╝ ╚██████╔╝ ╚██████╔╝ ╚██████╔╝ 
    ╚═╝     ╚═════╝   ╚═════╝   ╚══▀▀═╝   ╚═════╝  


╱╭━━━╮╱╱╱╱╱╭╮╱╱╭╮╱╭╮╱╱╱╱╭━━━╮╱
╱┃╭━╮┃╱╱╱╱╭╯┃╱╱┃┃╱┃┃╱╱╱╱┃╭━╮┃╱
╱╰╯╭╯┃╱╱╱╱╰╮┃╱╱┃╰━╯┃╱╱╱╱┃┃┃┃┃╱
╱╭━╯╭╯╱╱╱╱╱┃┃╱╱╰━━╮┃╱╱╱╱┃┃┃┃┃╱
╱┃╰━━╮╱╭╮╱╭╯╰╮╱╱╱╱┃┃╱╭╮╱┃╰━╯┃╱
╱╰━━━╯╱╰╯╱╰━━╯╱╱╱╱╰╯╱╰╯╱╰━━━╯╱
Code: https://github.com/linuxdeepin/youqu
Docs: https://youqu.uniontech.com/
PyPI: https://pypi.org/project/youqu
============================================================
x86_64-92: 04/14 16:21:37 | INFO  | [pytest_sessionstart]: 当前系统显示协议为 X11
=========================================================================================================== test session starts ============================================================================================================
collecting ... x86_64-92: 04/14 16:21:37 | ERROR | [pytest_collection_modifyitems]: 
csv_path:       /home/kubunu/my_project/apps/autotest_deepin_some/mycase.csv
tags:   ['']
error_tag_index:        8
collected 2 items                                                                                                                                                                                                                          
用例收集数量:   2 
用例文件数量:   2 
失败重跑次数:   1
最大失败次数:   2
用例超时时间:   1800.0s (030分0秒)
会话超时时间:   3600.0s (1小时00秒)
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/kubunu/my_project/conftest.py", line 344, in pytest_collection_modifyitems
INTERNALERROR>     if containers[csv_path][ConfStr.REMOVED_INDEX.value] is not None and tags[
INTERNALERROR>                                                                          ^^^^^
INTERNALERROR> IndexError: list index out of range
INTERNALERROR> 
INTERNALERROR> The above exception was the direct cause of the following exception:
INTERNALERROR> 
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/_pytest/main.py", line 269, in wrap_session
INTERNALERROR>     session.exitstatus = doit(config, session) or 0
INTERNALERROR>                          ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/_pytest/main.py", line 322, in _main
INTERNALERROR>     config.hook.pytest_collection(session=session)
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
INTERNALERROR>     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_callers.py", line 182, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
INTERNALERROR>     raise exc.with_traceback(exc.__traceback__)
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/_pytest/main.py", line 333, in pytest_collection
INTERNALERROR>     session.perform_collect()
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/_pytest/main.py", line 637, in perform_collect
INTERNALERROR>     hook.pytest_collection_modifyitems(
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_hooks.py", line 513, in __call__
INTERNALERROR>     return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_callers.py", line 182, in _multicall
INTERNALERROR>     return outcome.get_result()
INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_result.py", line 100, in get_result
INTERNALERROR>     raise exc.with_traceback(exc.__traceback__)
INTERNALERROR>   File "/home/kubunu/my_project/.venv/lib/python3.12/site-packages/pluggy/_callers.py", line 103, in _multicall
INTERNALERROR>     res = hook_impl.function(*args)
INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR>   File "/home/kubunu/my_project/conftest.py", line 354, in pytest_collection_modifyitems
INTERNALERROR>     raise IndexError from exc
INTERNALERROR> IndexError

========================================================================================================== no tests ran in 0.03s ===========================================================================================================
Report successfully generated to /home/kubunu/my_project/report/allure_html
@wang-qa wang-qa changed the title 教程不完整 教程执行失败 Apr 14, 2025
@wang-qa
Copy link
Author

wang-qa commented Apr 14, 2025

希望给一个 在桌面,web dbus等环境下 可执行的一个完整case

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

1 participant