The-Swarm-Corporation / swarms-cloud

Deploy your autonomous agents to production grade environments with 99% Uptime Guarantee, Infinite Scalability, and self-healing.
https://docs.swarms.world/en/latest/
MIT License
27 stars 10 forks source link

[BUG] ModuleNotFoundError: No module named 'modal' #8

Closed vyomakesh09 closed 10 months ago

vyomakesh09 commented 11 months ago

CLIENT: Server listening on port 35899... Received JSON data in run script Error: No test ids received from stdin, could be an error or a run request without ids provided. Running pytest with no test ids as args. Args being used: ['--rootdir', '/home/v/swarms-cloud'] ============================= test session starts ============================== platform linux -- Python 3.10.12, pytest-7.4.2, pluggy-1.3.0 rootdir: /home/v/swarms-cloud plugins: anyio-3.7.1 collected 5 items / 5 errors

==================================== ERRORS ==================================== _____ ERROR collecting tests/test_agent_api_wrapper.py ___ ImportError while importing test module '/home/v/swarms-cloud/tests/test_agent_api_wrapper.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/test_agent_api_wrapper.py:5: in from swarms_cloud.main import agent_api_wrapper swarms_cloud/init.py:3: in from swarms_cloud.func_api_wrapper import api_wrapper, FuncAPIWrapper swarms_cloud/func_apiwrapper.py:3: in import modal E ModuleNotFoundError: No module named 'modal' ____ ERROR collecting tests/test_api_generator.py ___ ImportError while importing test module '/home/v/swarms-cloud/tests/test_api_generator.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/test_api_generator.py:7: in from swarms_cloud.api_key_generator import generate_api_key swarms_cloud/init.py:3: in from swarms_cloud.func_api_wrapper import api_wrapper, FuncAPIWrapper swarms_cloud/func_apiwrapper.py:3: in import modal E ModuleNotFoundError: No module named 'modal' ____ ERROR collecting tests/test_func_wrapper.py __ ImportError while importing test module '/home/v/swarms-cloud/tests/test_func_wrapper.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/test_func_wrapper.py:5: in from swarms_cloud import FuncAPIWrapper, api_wrapper swarms_cloud/init.py:3: in from swarms_cloud.func_api_wrapper import api_wrapper, FuncAPIWrapper swarms_cloud/func_api_wrapper.py:3: in import modal E ModuleNotFoundError: No module named 'modal' __ ERROR collecting tests/test_sky.py __ ImportError while importing test module '/home/v/swarms-cloud/tests/test_sky.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/test_sky.py:2: in from swarms_cloud.sky_api import SkyInterface swarms_cloud/init.py:3: in from swarms_cloud.func_api_wrapper import api_wrapper, FuncAPIWrapper swarms_cloud/func_apiwrapper.py:3: in import modal E ModuleNotFoundError: No module named 'modal' ____ ERROR collecting tests/test_supabase_pro.py __ ImportError while importing test module '/home/v/swarms-cloud/tests/test_supabase_pro.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/test_supabase_pro.py:5: in from swarms_cloud.supabase_handler import SwarmCloudUsageLogger swarms_cloud/init.py:3: in from swarms_cloud.func_api_wrapper import api_wrapper, FuncAPIWrapper swarms_cloud/func_api_wrapper.py:3: in import modal E ModuleNotFoundError: No module named 'modal' =============================== warnings summary =============================== ../.local/lib/python3.10/site-packages/PyPDF2/init.py:21 /home/v/.local/lib/python3.10/site-packages/PyPDF2/init.py:21: DeprecationWarning: PyPDF2 is deprecated. Please move to the pypdf library instead. warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ ERROR tests/test_agent_api_wrapper.py ERROR tests/test_api_generator.py ERROR tests/test_func_wrapper.py ERROR tests/test_sky.py ERROR tests/test_supabase_pro.py !!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!! ========================= 1 warning, 5 errors in 1.76s ========================= Finished running tests!