Skip to content

pytest errors #29

@KeithFrohn

Description

@KeithFrohn

Hi, I think the project is terrific. I would like to contribute.

I hit some errors when running pytest. Perhaps some folders are missing?

  • Agent.ai.prompts.renderer
  • Agent.platforms.locators.mobile
  • Agent.platforms.collectors.xml_collector

I'm not sure why gradio_client is not found. I see it listed in pip list.

See output below.

(.venv) (base) keith@MacBookPro Agent % pytest tests/utest -q     

==================================================================================================================== ERRORS ====================================================================================================================
_______________________________________________________________________________________________ ERROR collecting tests/utest/ai/test_renderer.py _______________________________________________________________________________________________
ImportError while importing test module '/Users/keith/Programming/RobotFrameworkAgent/Agent/tests/utest/ai/test_renderer.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utest/ai/test_renderer.py:2: in <module>
    from Agent.ai.prompts.renderer import UIRenderer
E   ModuleNotFoundError: No module named 'Agent.ai.prompts.renderer'
________________________________________________________________________________________ ERROR collecting tests/utest/platforms/test_mobile_locator.py _________________________________________________________________________________________
ImportError while importing test module '/Users/keith/Programming/RobotFrameworkAgent/Agent/tests/utest/platforms/test_mobile_locator.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utest/platforms/test_mobile_locator.py:2: in <module>
    from Agent.platforms.locators.mobile import MobileLocatorBuilder
E   ModuleNotFoundError: No module named 'Agent.platforms.locators.mobile'
_________________________________________________________________________________________ ERROR collecting tests/utest/platforms/test_xml_collector.py _________________________________________________________________________________________
ImportError while importing test module '/Users/keith/Programming/RobotFrameworkAgent/Agent/tests/utest/platforms/test_xml_collector.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utest/platforms/test_xml_collector.py:3: in <module>
    from Agent.platforms.collectors.xml_collector import XMLCollector
E   ModuleNotFoundError: No module named 'Agent.platforms.collectors.xml_collector'
_______________________________________________________________________________________________ ERROR collecting tests/utest/vlm/test_client.py ________________________________________________________________________________________________
ImportError while importing test module '/Users/keith/Programming/RobotFrameworkAgent/Agent/tests/utest/vlm/test_client.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utest/vlm/test_client.py:3: in <module>
    from Agent.ai.vlm._client import OmniParserClient, OmniParserError
Agent/ai/vlm/__init__.py:1: in <module>
    from ._client import OmniParserClient, OmniParserError
Agent/ai/vlm/_client.py:9: in <module>
    from gradio_client import Client, handle_file
E   ModuleNotFoundError: No module named 'gradio_client'
______________________________________________________________________________________________ ERROR collecting tests/utest/vlm/test_interface.py ______________________________________________________________________________________________
ImportError while importing test module '/Users/keith/Programming/RobotFrameworkAgent/Agent/tests/utest/vlm/test_interface.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utest/vlm/test_interface.py:3: in <module>
    from Agent.ai.vlm.interface import OmniParserOrchestrator
Agent/ai/vlm/__init__.py:1: in <module>
    from ._client import OmniParserClient, OmniParserError
Agent/ai/vlm/_client.py:9: in <module>
    from gradio_client import Client, handle_file
E   ModuleNotFoundError: No module named 'gradio_client'
_______________________________________________________________________________________________ ERROR collecting tests/utest/vlm/test_parser.py ________________________________________________________________________________________________
ImportError while importing test module '/Users/keith/Programming/RobotFrameworkAgent/Agent/tests/utest/vlm/test_parser.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utest/vlm/test_parser.py:2: in <module>
    from Agent.ai.vlm._parser import OmniParserResultProcessor
Agent/ai/vlm/__init__.py:1: in <module>
    from ._client import OmniParserClient, OmniParserError
Agent/ai/vlm/_client.py:9: in <module>
    from gradio_client import Client, handle_file
E   ModuleNotFoundError: No module named 'gradio_client'
______________________________________________________________________________________________ ERROR collecting tests/utest/vlm/test_selector.py _______________________________________________________________________________________________
ImportError while importing test module '/Users/keith/Programming/RobotFrameworkAgent/Agent/tests/utest/vlm/test_selector.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../anaconda3/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utest/vlm/test_selector.py:3: in <module>
    from Agent.ai.vlm._selector import OmniParserElementSelector
Agent/ai/vlm/__init__.py:1: in <module>
    from ._client import OmniParserClient, OmniParserError
Agent/ai/vlm/_client.py:9: in <module>
    from gradio_client import Client, handle_file
E   ModuleNotFoundError: No module named 'gradio_client'
=========================================================================================================== short test summary info ============================================================================================================
ERROR tests/utest/ai/test_renderer.py
ERROR tests/utest/platforms/test_mobile_locator.py
ERROR tests/utest/platforms/test_xml_collector.py
ERROR tests/utest/vlm/test_client.py
ERROR tests/utest/vlm/test_interface.py
ERROR tests/utest/vlm/test_parser.py
ERROR tests/utest/vlm/test_selector.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2 skipped, 7 errors in 0.83s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions