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

[FEATURE] lambda_multiprocessing support #667

Open
jmikedupont2 opened this issue Dec 6, 2024 · 1 comment
Open

[FEATURE] lambda_multiprocessing support #667

jmikedupont2 opened this issue Dec 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jmikedupont2
Copy link

jmikedupont2 commented Dec 6, 2024

Suggestion to use
https://github.com/mdavis-xyz/lambda_multiprocessing

Current Issue:

[ERROR] OSError: [Errno 38] Function not implemented
Traceback (most recent call last):
  File "/var/lang/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/var/task/main.py", line 5, in <module>
    from swarms import Agent
  File "/var/task/src/swarms/swarms/__init__.py", line 38, in <module>
    from swarms.agents import *  # noqa: E402, F403
  File "/var/task/src/swarms/swarms/agents/__init__.py", line 13, in <module>
    from swarms.agents.tool_agent import ToolAgent
  File "/var/task/src/swarms/swarms/agents/tool_agent.py", line 2, in <module>
    from swarms.tools.json_former import Jsonformer
  File "/var/task/src/swarms/swarms/tools/__init__.py", line 1, in <module>
    from swarms.tools.tool_utils import (
  File "/var/task/src/swarms/swarms/tools/tool_utils.py", line 6, in <module>
    from swarms.utils.formatter import formatter
  File "/var/task/src/swarms/swarms/utils/__init__.py", line 2, in <module>
    from swarms.utils.data_to_text import (
  File "/var/task/src/swarms/swarms/utils/data_to_text.py", line 5, in <module>
    from swarms.utils.pdf_to_text import pdf_to_text
  File "/var/task/src/swarms/swarms/utils/pdf_to_text.py", line 1, in <module>
    from swarms.utils.try_except_wrapper import try_except_wrapper
  File "/var/task/src/swarms/swarms/utils/try_except_wrapper.py", line 7, in <module>
    logger = initialize_logger("try_except_wrapper")
  File "/var/task/src/swarms/swarms/utils/loguru_logger.py", line 31, in initialize_logger
    logger.add(
  File "/var/lang/lib/python3.11/site-packages/loguru/_logger.py", line 988, in add
    handler = Handler(
  File "/var/lang/lib/python3.11/site-packages/loguru/_handler.py", line 93, in __init__
    self._queue = multiprocessing.SimpleQueue()
  File "/var/lang/lib/python3.11/multiprocessing/context.py", line 113, in SimpleQueue
    return SimpleQueue(ctx=self.get_context())
  File "/var/lang/lib/python3.11/multiprocessing/queues.py", line 341, in __init__
    self._rlock = ctx.Lock()
  File "/var/lang/lib/python3.11/multiprocessing/context.py", line 68, in Lock
    return Lock(ctx=self.get_context())
  File "/var/lang/lib/python3.11/multiprocessing/synchronize.py", line 169, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1, ctx=ctx)
  File "/var/lang/lib/python3.11/multiprocessing/synchronize.py", line 57, in __init__
    sl = self._semlock = _multiprocessing.SemLock(

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
@jmikedupont2 jmikedupont2 added the bug Something isn't working label Dec 6, 2024
Copy link

github-actions bot commented Dec 6, 2024

Hello there, thank you for opening an Issue ! 🙏🏻 The team was notified and they will get back to you asap.

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