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

error using Queu in multiprocessing #5361

Open
0Wall-E opened this issue Jul 26, 2024 · 0 comments
Open

error using Queu in multiprocessing #5361

0Wall-E opened this issue Jul 26, 2024 · 0 comments
Labels

Comments

@0Wall-E
Copy link

0Wall-E commented Jul 26, 2024

Summary

erfan@erfan-Inspiron-N4050:~/RustroverProjects/RustPython/target/release2$ ./rustpython Portals2.py
/home/erfan/.local/lib/rustpython3.12/site-packages/requests/__init__.py:89: RequestsDependencyWarning: Unable to find acceptable character detection dependency (chardet or charset_normalizer).
  RequestsDependencyWarning,
888
Traceback (most recent call last):
  File "/home/erfan/RustroverProjects/RustPython/pylib/Lib/multiprocessing/synchronize.py", line 28, in <module>
    from _multiprocessing import SemLock, sem_unlink
ImportError: cannot import name 'SemLock'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Portals2.py", line 285, in <module>
    b = a.OpenPortals(a)
  File "Portals2.py", line 200, in __init__
    self.portals["portal1"] = {"pct":Queue(), "cnt":Queue(), "rng":(0, int(self2.cl/8))}
  File "/home/erfan/RustroverProjects/RustPython/pylib/Lib/multiprocessing/context.py", line 103, in Queue
    return Queue(maxsize, ctx=self.get_context())
  File "/home/erfan/RustroverProjects/RustPython/pylib/Lib/multiprocessing/queues.py", line 40, in __init__
    from .synchronize import SEM_VALUE_MAX as maxsize
  File "/home/erfan/RustroverProjects/RustPython/pylib/Lib/multiprocessing/synchronize.py", line 33, in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
erfan@erfan-Inspiron-N4050:~/RustroverProjects/RustPython/target/release2$ ./rustpython Portals2.py
/home/erfan/.local/lib/rustpython3.12/site-packages/requests/__init__.py:89: RequestsDependencyWarning: Unable to find acceptable character detection dependency (chardet or charset_normalizer).
  RequestsDependencyWarning,
888
Traceback (most recent call last):
  File "/home/erfan/RustroverProjects/RustPython/pylib/Lib/multiprocessing/synchronize.py", line 28, in <module>
    from _multiprocessing import SemLock, sem_unlink
ImportError: cannot import name 'SemLock'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Portals2.py", line 285, in <module>
    b = a.OpenPortals(a)
  File "Portals2.py", line 200, in __init__
    self.portals["portal1"] = {"pct":Queue(), "cnt":Queue(), "rng":(0, int(self2.cl/8))}
  File "/home/erfan/RustroverProjects/RustPython/pylib/Lib/multiprocessing/context.py", line 103, in Queue
    return Queue(maxsize, ctx=self.get_context())
  File "/home/erfan/RustroverProjects/RustPython/pylib/Lib/multiprocessing/queues.py", line 40, in __init__
    from .synchronize import SEM_VALUE_MAX as maxsize
  File "/home/erfan/RustroverProjects/RustPython/pylib/Lib/multiprocessing/synchronize.py", line 33, in <module>
    " function, see issue 3770.")
ImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants