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

[BUG] pytest from source #677

Open
evelynmitchell opened this issue Dec 12, 2024 · 0 comments
Open

[BUG] pytest from source #677

evelynmitchell opened this issue Dec 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@evelynmitchell
Copy link
Contributor

evelynmitchell commented Dec 12, 2024

Describe the bug
Current git source code, pytest output:

======================================= test session starts ========================================
platform linux -- Python 3.10.12, pytest-8.3.4, pluggy-1.5.0
rootdir: /content/swarms
configfile: pyproject.toml
plugins: pylama-8.4.1, anyio-4.7.0, typeguard-4.4.1
collected 342 items / 10 errors                                                                    

============================================== ERRORS ==============================================
_________________________ ERROR collecting tests/structs/test_groupchat.py _________________________
ImportError while importing test module '/content/swarms/tests/structs/test_groupchat.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/structs/test_groupchat.py:4: in <module>
    from swarm_models.anthropic import Anthropic
E   ModuleNotFoundError: No module named 'swarm_models.anthropic'
____________________ ERROR collecting tests/structs/test_recursive_workflow.py _____________________
ImportError while importing test module '/content/swarms/tests/structs/test_recursive_workflow.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/structs/test_recursive_workflow.py:6: in <module>
    from swarms.structs import RecursiveWorkflow, Task
E   ImportError: cannot import name 'RecursiveWorkflow' from 'swarms.structs' (/usr/local/lib/python3.10/dist-packages/swarms/structs/__init__.py)
____________________ ERROR collecting tests/structs/test_sequential_workflow.py ____________________
ImportError while importing test module '/content/swarms/tests/structs/test_sequential_workflow.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/structs/test_sequential_workflow.py:9: in <module>
    from swarms.structs.sequential_workflow import (
E   ImportError: cannot import name 'Task' from 'swarms.structs.sequential_workflow' (/usr/local/lib/python3.10/dist-packages/swarms/structs/sequential_workflow.py)
_______________________ ERROR collecting tests/structs/test_swarmnetwork.py ________________________
ImportError while importing test module '/content/swarms/tests/structs/test_swarmnetwork.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/structs/test_swarmnetwork.py:6: in <module>
    from swarms.structs.swarm_net import SwarmNetwork
E   ModuleNotFoundError: No module named 'swarms.structs.swarm_net'
___________________________ ERROR collecting tests/structs/test_team.py ____________________________
ImportError while importing test module '/content/swarms/tests/structs/test_team.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/structs/test_team.py:6: in <module>
    from swarms.structs.team import Team
E   ModuleNotFoundError: No module named 'swarms.structs.team'
________________________ ERROR collecting tests/structs/test_yaml_model.py _________________________
ImportError while importing test module '/content/swarms/tests/structs/test_yaml_model.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/structs/test_yaml_model.py:3: in <module>
    from swarms import (
E   ImportError: cannot import name 'create_yaml_schema_from_dict' from 'swarms' (/usr/local/lib/python3.10/dist-packages/swarms/__init__.py)
______________________ ERROR collecting tests/telemetry/test_posthog_utils.py ______________________
ImportError while importing test module '/content/swarms/tests/telemetry/test_posthog_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/telemetry/test_posthog_utils.py:5: in <module>
    from swarms.telemetry.posthog_utils import (
E   ModuleNotFoundError: No module named 'swarms.telemetry.posthog_utils'
_________________________ ERROR collecting tests/tools/test_tools_base.py __________________________
ImportError while importing test module '/content/swarms/tests/tools/test_tools_base.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/tools/test_tools_base.py:6: in <module>
    from swarms.tools.tool import (
E   ModuleNotFoundError: No module named 'swarms.tools.tool'
________________________ ERROR collecting tests/utils/test_check_device.py _________________________
ImportError while importing test module '/content/swarms/tests/utils/test_check_device.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utils/test_check_device.py:5: in <module>
    from swarms.utils import check_device
E   ImportError: cannot import name 'check_device' from 'swarms.utils' (/usr/local/lib/python3.10/dist-packages/swarms/utils/__init__.py)
______________________ ERROR collecting tests/utils/test_metrics_decorator.py ______________________
ImportError while importing test module '/content/swarms/tests/utils/test_metrics_decorator.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/utils/test_metrics_decorator.py:8: in <module>
    from swarms.utils import metrics_decorator
E   ImportError: cannot import name 'metrics_decorator' from 'swarms.utils' (/usr/local/lib/python3.10/dist-packages/swarms/utils/__init__.py)
===================================== short test summary info ======================================
ERROR tests/structs/test_groupchat.py
ERROR tests/structs/test_recursive_workflow.py
ERROR tests/structs/test_sequential_workflow.py
ERROR tests/structs/test_swarmnetwork.py
ERROR tests/structs/test_team.py
ERROR tests/structs/test_yaml_model.py
ERROR tests/telemetry/test_posthog_utils.py
ERROR tests/tools/test_tools_base.py
ERROR tests/utils/test_check_device.py
ERROR tests/utils/test_metrics_decorator.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================== 10 errors in 153.10s (0:02:33) ==================================

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@evelynmitchell evelynmitchell added the bug Something isn't working label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants