You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Describe the bug
Current git source code, pytest output:
Upvote & Fund
The text was updated successfully, but these errors were encountered: