PyZMQ: Python bindings for zeromq

Related tags

Communicationpyzmq
Overview

PyZMQ: Python bindings for ØMQ

Build Status

This package contains Python bindings for ØMQ. ØMQ is a lightweight and fast messaging implementation.

PyZMQ should work with any reasonable version of Python (≥ 3.4), as well as Python 2.7 and 3.3, as well as PyPy. The Cython backend used by CPython supports libzmq ≥ 2.1.4 (including 3.2.x and 4.x), but the CFFI backend used by PyPy only supports libzmq ≥ 3.2.2 (including 4.x).

For a summary of changes to pyzmq, see our changelog.

ØMQ 3.x, 4.x

PyZMQ fully supports the 3.x and 4.x APIs of libzmq, developed at zeromq/libzmq. No code to change, no flags to pass, just build pyzmq against the latest and it should work.

PyZMQ does not support the old libzmq 2 API on PyPy.

Documentation

See PyZMQ's Sphinx-generated documentation on Read the Docs for API details, and some notes on Python and Cython development. If you want to learn about using ØMQ in general, the excellent ØMQ Guide is the place to start, which has a Python version of every example. We also have some information on our wiki.

Downloading

Unless you specifically want to develop PyZMQ, we recommend downloading the PyZMQ source code or wheels from PyPI, or install with conda.

You can also get the latest source code from our GitHub repository, but building from the repository will require that you install recent Cython.

Building and installation

For more detail on building pyzmq, see our Wiki.

We build wheels for macOS, Windows, and Linux, so you can get a binary on those platforms with:

pip install pyzmq

but compiling from source with pip install pyzmq should work in most environments. Especially on macOS, make sure you are using the latest pip (≥ 8), or it may not find the right wheels.

If the wheel doesn't work for some reason, or you want to force pyzmq to be compiled (this is often preferable if you already have libzmq installed and configured the way you want it), you can force installation with:

pip install --no-binary=:all: pyzmq

When compiling pyzmq (e.g. installing with pip on Linux), it is generally recommended that zeromq be installed separately, via homebrew, apt, yum, etc:

# Debian-based
sudo apt-get install libzmq3-dev

# RHEL-based
sudo yum install libzmq3-devel

If this is not available, pyzmq will try to build libzmq as a Python Extension, though this is not guaranteed to work.

Building pyzmq from the git repo (including release tags on GitHub) requires Cython.

Old versions

pyzmq 16 drops support Python 2.6 and 3.2. If you need to use one of those Python versions, you can pin your pyzmq version to before 16:

pip install 'pyzmq<16'

For libzmq 2.0.x, use 'pyzmq<2.1'

pyzmq-2.1.11 was the last version of pyzmq to support Python 2.5, and pyzmq ≥ 2.2.0 requires Python ≥ 2.6. pyzmq-13.0.0 introduces PyPy support via CFFI, which only supports libzmq-3.2.2 and newer.

PyZMQ releases ≤ 2.2.0 matched libzmq versioning, but this is no longer the case, starting with PyZMQ 13.0.0 (it was the thirteenth release, so why not?). PyZMQ ≥ 13.0 follows semantic versioning conventions accounting only for PyZMQ itself.

Comments
  • Workaround for

    Workaround for "gevent missed a libzmq recv event on 17!"

    I saw some activity regarding this bug, but wasn't sure of the correct way to work around it. This is the simple application that is seeing this error:

    https://github.com/gtaylor/EVE-Market-Data-Relay/blob/master/emdr/daemons/announcer/main.py

    stderr shows:

    BUG: gevent missed a libzmq recv event on 17!
    

    Given what I have, what is the correct way to avoid this bug? I see something about using a poller, but wasn't sure if that was a fix.

    gevent 
    opened by gtaylor 28
  • python binding installation fails under cygwin

    python binding installation fails under cygwin

    Compiling the python binding under cygwin fails. This may be a problem with zeromq linking to libraries. However, pyzmq brings out the problem.

    $ uname -a
        CYGWIN_NT-6.1 TMOON-DEV2 1.7.9(0.237/5/3) 2011-03-29 10:10 i686 Cygwin
    $ mkdir /tmp/tmp1
    $ cd /tmp/tmp1
    $ wget 'http://download.zeromq.org/zeromq-2.1.7.zip'
    $ unzip zeromq-2.1.7.zip
    $ cd zeromq-2.1.7
    $ ./configure
    $ make 
        ... succeeds...
    $ make install
        
        ... notable output...
        libtool: install: ranlib /usr/local/lib/libzmq.a
        ----------------------------------------------------------------------
        Libraries have been installed in:
           /usr/local/lib
        
        If you ever happen to want to link against installed libraries
        in a given directory, LIBDIR, you must either use libtool, and
        specify the full pathname of the library, or use the `-LLIBDIR'
        flag during linking and do at least one of the following:
           - add LIBDIR to the `PATH' environment variable
             during execution
           - add LIBDIR to the `LD_RUN_PATH' environment variable
             during linking
           - use the `-LLIBDIR' linker flag
        
        See any operating system documentation about shared libraries for
        more information, such as the ld(1) and ld.so(8) manual pages.
        ----------------------------------------------------------------------
        ... succeeds ...
    $ cd ../
    $ wget --no-check-certificate 'https://github.com/downloads/zeromq/pyzmq/pyzmq-2.1.7.zip'
    $ unzip pyzmq-2.1.7.zip
    $ cd pyzmq-2.1.7
    $ which python && python --version
        /usr/bin/python
        Python 2.6.5
    $ python setup.py configure --zmq=/usr/local
        running configure
        ******************************************
        Configure: Autodetecting ZMQ settings...
            Custom ZMQ dir:       /usr/local
        cc -I/usr/local/include -Izmq/utils -Izmq/core -Izmq/devices -c detect/vers.c -o detect/vers.o
        cc detect/vers.o -L/usr/local/lib -Wl,-R/usr/local/lib -lzmq -o detect/vers.exe
        /usr/local/lib/libzmq.a(libzmq_la-zmq.o): In function `zmq_init':
        /tmp/tmp1/zeromq-2.1.7/src/zmq.cpp:280: undefined reference to `std::nothrow'
        /tmp/tmp1/zeromq-2.1.7/src/zmq.cpp:280: undefined reference to `std::nothrow'
        /usr/local/lib/libzmq.a(libzmq_la-zmq.o):zmq.cpp:(.eh_frame+0x12): undefined reference to `___gxx_personality_v0'
        /usr/local/lib/libzmq.a(libzmq_la-ctx.o): In function `_ZNSt17_Rb_tree_iteratorISt4pairIKSsN3zmq10endpoint_tEEEppEv':
        /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/stl_tree.h:182: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
        /usr/lib/gcc/i686-pc-cygwin/4.3.4/include/c++/bits/stl_tree.h:182: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
        /usr/local/lib/libzmq.a(libzmq_la-ctx.o): In function `_ZNSt8_Rb_treeISsSt4pairIKSsN3zmq10endpoint_tEESt10_Select1stIS4_ESt4lessISsESaIS4_EE5eraseESt17_Rb_tree_iteratorIS4_E':
        ...error continue for a long time...
    

    The undefined references are to many different libraries. I may re-post this error at zeromq.

    -J_Tom_Moon_79

    Windows 
    opened by jtmoon79 28
  • Unable to make pyzmq work on pypy 5.1.1 32 bit on Windows

    Unable to make pyzmq work on pypy 5.1.1 32 bit on Windows

    Error on use of pyzmq-15.3.0.dev0

    When importing pyzmq, compilation claims that "sys/un.h" doesn't exist although there shouldn't be such "sys/un.h" because of Windows.

    C:\Users\Administrator>pypy -c "import zmq"
    _cffi_ext.c
    C:\pypy-5.1.1-win32\site-packages\zmq\backend\cffi\__pycache__\_cffi_ext.c(53) : fatal error C1083: Cannot open include file: 'sys/un.h': No such file or directory
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\pypy-5.1.1-win32\site-packages\zmq\__init__.py", line 56, in <module>
        from zmq import backend
      File "C:\pypy-5.1.1-win32\site-packages\zmq\backend\__init__.py", line 40, in <module>
        reraise(*exc_info)
      File "C:\pypy-5.1.1-win32\site-packages\zmq\backend\__init__.py", line 27, in <module>
        _ns = select_backend(first)
      File "C:\pypy-5.1.1-win32\site-packages\zmq\backend\select.py", line 27, in select_backend
        mod = __import__(name, fromlist=public_api)
      File "C:\pypy-5.1.1-win32\site-packages\zmq\backend\cffi\__init__.py", line 6, in <module>
        from zmq.backend.cffi import (constants, error, message, context, socket,
      File "C:\pypy-5.1.1-win32\site-packages\zmq\backend\cffi\constants.py", line 4, in <module>
        from ._cffi import C, c_constant_names
      File "C:\pypy-5.1.1-win32\site-packages\zmq\backend\cffi\_cffi.py", line 100, in <module>
        "Please check that you have zeromq headers and libraries." % e)
    ImportError: PyZMQ CFFI backend couldn't find zeromq: CompileError: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
    Please check that you have zeromq headers and libraries.
    

    Error on installation of pyzmq-15.2.0

    Building ZeroMQ doesn't seem to work well.

    C:\Users\Administrator>pypy -m pip install pyzmq
    Collecting pyzmq
      Using cached pyzmq-15.2.0.zip
    Requirement already satisfied (use --upgrade to upgrade): py in c:\pypy-5.1.1-win32\site-packages (from pyzmq)
    Requirement already satisfied (use --upgrade to upgrade): cffi in c:\pypy-5.1.1-win32\lib_pypy (from pyzmq)
    Installing collected packages: pyzmq
      Running setup.py install for pyzmq
    
    ...
    
        LINK : fatal error LNK1181: cannot open input file 'libsodium.lib'
        error: command 'C:\\Program Files (x86)\\Common Files\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\link.exe' failed with exit status 1181
    

    Environment

    Note

    I've not tried http://zeromq.org/docs:windows-installations because I don't have idea how to build libzmq\builds\msvc\vs2008\libzmq.sln without Visual Studio. (32 bit version of VCBuild.exe doesn't seem to be included in VC++ for Python 27 so it is impossible to complete C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe libzmq\builds\msvc\vs2008\libzmq.sln.)

    opened by sakurai-youhei 27
  • manylinux1 wheels for pyzmq?

    manylinux1 wheels for pyzmq?

    It would be great if pyzmq could ship binary wheels for linux as well.

    @matthew-brett made some with this build script:

    https://github.com/matthew-brett/manylinux-builds/blob/master/build_pyzmqs.sh

    The result has been uploaded to a rackspace container and can be installed with pip 8.1:

    pip install \
        --trusted-host=ccdd0ebb5a931e58c7c5-aae005c4999d7244ac63632f8b80e089.r77.cf2.rackcdn.com \
        --find-links=http://ccdd0ebb5a931e58c7c5-aae005c4999d7244ac63632f8b80e089.r77.cf2.rackcdn.com \
        pyzmq
    

    If you think those wheels are correct, it would be great to upload them to PyPI (for instance with twine).

    opened by ogrisel 27
  • Simple RPC based service for PyZMQ

    Simple RPC based service for PyZMQ

    This adds an rpc subpackage to zmq and implements a "simple" RPC service. This version is focused only on the request/reply pattern, but handles load balancing using ROUTER/DEALER sockets. While we definitely want to explore richer RPC APIs that allow for arbitrary socket types and message patterns, this version is very useful because of its extreme simplicity and good performance..

    Still working on:

    • Making the serialization approach pluggable. I use pickle now, but will allow json and other approaches.
    • Adding an async client example.

    Needs review:

    • Python3 compliance.
    • General API choices.
    opened by ellisonbg 27
  • cffi cannot find libzmq.so

    cffi cannot find libzmq.so

    I have installing libzmq in /home/ericu/local with the --prefix option on its configure script. Pyzmq installs fine under CPython 2.7.5. It does not work under pypy even with the environmental variables set.

    [email protected]:~/fairywren$ LIBRARY_PATH=/home/ericu/local/lib C_INCLUDE_PATH=/home/ericu/local/include pypy -c 'import zmq'
    Traceback (most recent call last):
      File "app_main.py", line 72, in run_toplevel
      File "app_main.py", line 566, in run_it
      File "<string>", line 1, in <module>
      File "/home/ericu/pypy-ericu/site-packages/zmq/__init__.py", line 52, in <module>
        from zmq.sugar import backend
      File "/home/ericu/pypy-ericu/site-packages/zmq/sugar/__init__.py", line 16, in <module>
        from zmq.sugar import (
      File "/home/ericu/pypy-ericu/site-packages/zmq/sugar/constants.py", line 16, in <module>
        from .backend import constants
      File "/home/ericu/pypy-ericu/site-packages/zmq/sugar/backend.py", line 29, in <module>
        from zmq.cffi_core import (
      File "/home/ericu/pypy-ericu/site-packages/zmq/cffi_core/__init__.py", line 12, in <module>
        from zmq.cffi_core import (constants, error, message, context, socket,
      File "/home/ericu/pypy-ericu/site-packages/zmq/cffi_core/constants.py", line 4, in <module>
        from ._cffi import C, constant_names, zmq_version_info
      File "/home/ericu/pypy-ericu/site-packages/zmq/cffi_core/_cffi.py", line 195, in <module>
        "Please check that you have zeromq headers and libraries." % e)
    ImportError: PyZMQ CFFI backend couldn't find zeromq: cannot load library /home/ericu/pypy-ericu/site-packages/zmq/cffi_core/__pycache__/_cffi__g6ed94bfax67d4e236.pypy-21.so: libzmq.so.3: cannot open shared object file: No such file or directory
    Please check that you have zeromq headers and libraries.
    [email protected]:~/fairywren$ 
    
    opened by hydrogen18 26
  • Build fails on HP-UX

    Build fails on HP-UX

    I have zmq2.2 installed. when I try: g1u1148c:kuehna/pyzmq-2.2.0.1 $ python setup.py build_ext --inplace running build_ext


    Using bundled libzmq already have bundled/uuid already have bundled/zeromq already have platform.hpp


    building 'zmq.libzmq' extension gcc +Onolimit -O -I/usr/local/include -I/usr/local/include/ncurses -I/usr/local/lib/hpux32/libffi-3.0.11/include -DNDEBUG -O +z -Ibundled/zeromq/include -Ibundled/uuid -Ibundled -I/usr/local/include/python2.7 -c buildutils/initlibzmq.c -o build/temp.hp-ux-B.11.23-ia64-2.7/buildutils/initlibzmq.o gcc: error: +Onolimit: No such file or directory gcc: error: +z: No such file or directory error: command 'gcc' failed with exit status 1

    I don't know where it gets those stupid options from but when I do: gcc -Wall -O -I/usr/local/include -I/usr/local/include/ncurses -I/usr/local/lib/hpux32/libffi-3.0.11/include -DNDEBUG -I/usr/local/include/python2.7 -c buildutils/initlibzmq.c -o build/temp.hp-ux-B.11.23-ia64-2.7/buildutils/initlibzmq.o There is no problem not even a warning. Python 2.7.3

    opened by Nagilum23 25
  • Ctrl-C doesn't kill python on windows

    Ctrl-C doesn't kill python on windows

    Like the title says - python 2.7, pyzmq and zeromq are both 2.1.4.

    This simple code https://gist.github.com/920133 doesn't die when you hit ctrl-c in the terminal.

    Windows 
    opened by SavageMessiah 23
  • Import failure on Windows 7 with 32 bit python

    Import failure on Windows 7 with 32 bit python

    I'm running the 32 bit version of python on Windows 7 64-bit Enterprise. When trying to import I get the following error:

    Traceback (most recent call last): File "", line 1, in File "c:\Users\Yaoj993\AppData\Local\Programs\Python\Python35-32\lib\site-pack ages\zmq__init__.py", line 37, in libzmq = ctypes.cdll.LoadLibrary(bundled[0]) File "c:\Users\Yaoj993\AppData\Local\Programs\Python\Python35-32\lib\ctypes_ init__.py", line 425, in LoadLibrary return self.dlltype(name) File "c:\Users\Yaoj993\AppData\Local\Programs\Python\Python35-32\lib\ctypes_ init__.py", line 347, in init self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found

    15.2.0 works without issue.

    opened by kmonson 22
  • PyZMQ API improvements

    PyZMQ API improvements

    Some new APIs and deprecations of old ones that made no sense.

    Deprecations

    • Stop using POLLERR, and deprecate on_err in ZMQStream, which never did anything because POLLER can never occur on zmq sockets.

    New Features

    • default socket options can be set as attributes on Contexts. This lets you do ctx.linger = 0 to set the initial LINGER of all subsequently created sockets, and the same with all sockopts.
    • ZMQStream.on_recv_stream/on_send_send callbacks, which get the stream as the first argument, in addition to those that were previously passed. Makes it easier to use a single function as the callback for multiple sockets.

    Changes

    • zmq.Message renamed to zmq.Frame, to better match high-level binding naming conventions. zmq.Message name remains for backwards compatibility.

    Cleanup

    • Removed some #! lines from module files that are not scripts
    opened by minrk 22
  • asyncio IPC PUSH/PULL Socket.close + Context.term + Context.destroy do not reliably flush messages with LINGER == -1

    asyncio IPC PUSH/PULL Socket.close + Context.term + Context.destroy do not reliably flush messages with LINGER == -1

    libzmq-4.1.2 pyzmq-15.2.0 Python-3.5.1 (default, Dec 7 2015, 21:59:10) [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)]

    HWM = 2

    According to the docs if you set LINGER to -1, socket.close is supposed to flush out all messages before returning. There are a few issues with this:

    1. If socket.close / Context.destroy really were to flush the messages they should return futures
    2. they do not actually wait for the the messages to get flushed.

    I tried this with several messages of length ~700k and maybe 10% of the time the last two messages were not flushed.

    If I add an asyncio.sleep after the term/destroy/close then the messages get flushed

    opened by thehesiod 21
  • BUG: error importing zmq

    BUG: error importing zmq

    What pyzmq version?

    24.0.1

    What libzmq version?

    libzmq3-3.2.5_1

    Python version (and how it was installed)

    python 3.9

    OS

    Freebsd 13.1-RELEASE-p5

    What happened?

    I can't import zmq. I am getting this error: Python 3.9.15 (main, Oct 22 2022, 01:13:09) [Clang 13.0.0 ([email protected]:llvm/llvm-project.git llvmorg-13.0.0-0-gd7b669b3a on freebsd13 Type "help", "copyright", "credits" or "license" for more information.

    import zmq Traceback (most recent call last): File "", line 1, in File "/home/philippe/.local/lib/python3.9/site-packages/zmq/init.py", line 61, in _load_libzmq() File "/home/philippe/.local/lib/python3.9/site-packages/zmq/init.py", line 36, in _load_libzmq from . import libzmq ImportError: /home/philippe/.local/lib/python3.9/site-packages/zmq/libzmq.cpython-39.so: Undefined symbol "unw_getcontext"

    Code to reproduce bug

    No response

    Traceback, if applicable

    No response

    More info

    No response

    opened by pnael 4
  • BUG: 3 tests fail

    BUG: 3 tests fail

    What pyzmq version?

    24.0.1

    What libzmq version?

    4.3.4

    Python version (and how it was installed)

    3.9

    OS

    FreeBSD 13.1

    What happened?

    3 tests failed:

    =========================================================================================== ERRORS ===========================================================================================
    __________________________________________________________________________ ERROR at setup of TestPoll.test_timeout ___________________________________________________________________________
    
    self = <flaky.flaky_pytest_plugin.FlakyPlugin object at 0x850696cd0>, item = <TestCaseFunction test_timeout>
    
        def pytest_runtest_setup(self, item):
            """
            Pytest hook to modify the test before it's run.
        
            :param item:
                The test item.
            """
            if not self._has_flaky_attributes(item):
                if hasattr(item, 'iter_markers'):
                    for marker in item.iter_markers(name='flaky'):
    >                   self._make_test_flaky(item, *marker.args, **marker.kwargs)
    E                   TypeError: _make_test_flaky() got an unexpected keyword argument 'reruns'
    
    /usr/local/lib/python3.9/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError
    _________________________________________________________________________ ERROR at setup of TestSelect.test_timeout __________________________________________________________________________
    
    self = <flaky.flaky_pytest_plugin.FlakyPlugin object at 0x850696cd0>, item = <TestCaseFunction test_timeout>
    
        def pytest_runtest_setup(self, item):
            """
            Pytest hook to modify the test before it's run.
        
            :param item:
                The test item.
            """
            if not self._has_flaky_attributes(item):
                if hasattr(item, 'iter_markers'):
                    for marker in item.iter_markers(name='flaky'):
    >                   self._make_test_flaky(item, *marker.args, **marker.kwargs)
    E                   TypeError: _make_test_flaky() got an unexpected keyword argument 'reruns'
    
    /usr/local/lib/python3.9/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError
    _____________________________________________________________________ ERROR at setup of TestEINTRSysCall.test_retry_poll _____________________________________________________________________
    
    self = <flaky.flaky_pytest_plugin.FlakyPlugin object at 0x850696cd0>, item = <TestCaseFunction test_retry_poll>
    
        def pytest_runtest_setup(self, item):
            """
            Pytest hook to modify the test before it's run.
        
            :param item:
                The test item.
            """
            if not self._has_flaky_attributes(item):
                if hasattr(item, 'iter_markers'):
                    for marker in item.iter_markers(name='flaky'):
    >                   self._make_test_flaky(item, *marker.args, **marker.kwargs)
    E                   TypeError: _make_test_flaky() got an unexpected keyword argument 'reruns'
    
    /usr/local/lib/python3.9/site-packages/flaky/flaky_pytest_plugin.py:244: TypeError
    ====================================================================================== warnings summary ======================================================================================
    zmq/tests/test_socket.py:585
      /disk-samsung/freebsd-ports/net/py-pyzmq/work-py39/pyzmq-24.0.1/zmq/tests/test_socket.py:585: PytestUnknownMarkWarning: Unknown pytest.mark.large - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
        @mark.large
    
    zmq/tests/test_win32_shim.py:23
      /disk-samsung/freebsd-ports/net/py-pyzmq/work-py39/pyzmq-24.0.1/zmq/tests/test_win32_shim.py:23: PytestUnknownMarkWarning: Unknown pytest.mark.new_console - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
        @mark.new_console
    
    zmq/tests/test_win32_shim.py:25
      /disk-samsung/freebsd-ports/net/py-pyzmq/work-py39/pyzmq-24.0.1/zmq/tests/test_win32_shim.py:25: PytestUnknownMarkWarning: Unknown pytest.mark.new_console - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
        @mark.new_console
    
    zmq/tests/test_cython.py::test_cython[3]
      /usr/local/lib/python3.9/site-packages/pyximport/pyximport.py:51: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
        import imp
    
    zmq/tests/test_cython.py::test_cython[3]
      /usr/local/lib/python3.9/site-packages/pythran/config.py:8: DeprecationWarning: 
      
        `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
        of the deprecation of `distutils` itself. It will be removed for
        Python >= 3.12. For older Python versions it will remain present.
        It is recommended to use `setuptools < 60.0` for those Python versions.
        For more details, see:
          https://numpy.org/devdocs/reference/distutils_status_migration.html 
      
      
        import numpy.distutils.system_info as numpy_sys
    
    zmq/tests/test_cython.py::test_cython[3]
      /usr/local/lib/python3.9/site-packages/pythran/tables.py:4530: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
      Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
        if not hasattr(numpy, method):
    
    zmq/tests/test_cython.py::test_cython[3]
      /usr/local/lib/python3.9/site-packages/pythran/tables.py:4530: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
      Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
        if not hasattr(numpy, method):
    
    zmq/tests/test_cython.py::test_cython[3]
      /usr/local/lib/python3.9/site-packages/pythran/tables.py:4530: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
      Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
        if not hasattr(numpy, method):
    
    zmq/tests/test_cython.py::test_cython[3]
      /usr/local/lib/python3.9/site-packages/pythran/tables.py:4563: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
      Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
        obj = getattr(themodule, elem)
    
    zmq/tests/test_cython.py::test_cython[3]
      /usr/local/lib/python3.9/site-packages/pythran/tables.py:4563: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
      Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
        obj = getattr(themodule, elem)
    
    zmq/tests/test_cython.py::test_cython[3]
      /usr/local/lib/python3.9/site-packages/pythran/tables.py:4563: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
      Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
        obj = getattr(themodule, elem)
    
    zmq/tests/test_ioloop.py::TestIOLoop::test_current
      /disk-samsung/freebsd-ports/net/py-pyzmq/work-py39/pyzmq-24.0.1/zmq/tests/test_ioloop.py:98: DeprecationWarning: zmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops.
        loop = ioloop.IOLoop.current()
    
    zmq/tests/test_socket.py::TestSocket::test_int_sockopts
    zmq/tests/test_socket.py::TestSocket::test_int_sockopts
    zmq/tests/test_socket.py::TestSocket::test_mockable
      /disk-samsung/freebsd-ports/net/py-pyzmq/work-py39/pyzmq-24.0.1/zmq/sugar/socket.py:263: DeprecationWarning: Socket.socket_type is deprecated, use Socket.type
        warn("Socket.socket_type is deprecated, use Socket.type", DeprecationWarning)
    
    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    ================================================================================== short test summary info ===================================================================================
    ERROR zmq/tests/test_poll.py::TestPoll::test_timeout - TypeError: _make_test_flaky() got an unexpected keyword argument 'reruns'
    ERROR zmq/tests/test_poll.py::TestSelect::test_timeout - TypeError: _make_test_flaky() got an unexpected keyword argument 'reruns'
    ERROR zmq/tests/test_retry_eintr.py::TestEINTRSysCall::test_retry_poll - TypeError: _make_test_flaky() got an unexpected keyword argument 'reruns'
    ============================================================= 324 passed, 31 skipped, 15 warnings, 3 errors in 76.37s (0:01:16) ==============================================================
    *** Error code 1
    

    Code to reproduce bug

    Testing uses:
    
            @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} build_ext --inplace
            @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
    
    
    
    ### Traceback, if applicable
    
    ```shell
    n/a
    

    More info

    No response

    question 
    opened by yurivict 1
  • dish.join problem

    dish.join problem

    Hi, I installed the last version of pyzmq 24.0.1 and its seems that it contain the draft options, therefore radio and dish are included. I try to run your radio-dish example: image

    but the following message showed:

    Traceback (most recent call last): File "C:/Users/ShacharZ/Desktop/pythonProject2/main.py", line 12, in dish.join('1') File "zmq\backend\cython\socket.pyx", line 722, in zmq.backend.cython.socket.Socket.join File "zmq\backend\cython\checkrc.pxd", line 22, in zmq.backend.cython.checkrc._check_rc zmq.error.Again: Resource temporarily unavailable

    I will be happy for any help.

    question 
    opened by ShacharZi 1
  • Documentation libzmq version typo

    Documentation libzmq version typo

    Looking at the documentation, I am seeing that libzmq versions (≥ 3.2.2, ≥ 4.0.1 ) are supported (https://pyzmq.readthedocs.io/en/latest/#supported-libzmq), but am seeing zmq.error.ZMQVersionError: zmq.has requires libzmq >= 4.1, have 4.0.4 on my machine. This is confusing to me, since this fits the constraints of the docs, but is being displayed as an error.

    Is this a typo with the documentation or a mischecking by the error? (possibly 4.1.0 was meant, instead of 4.0.1 in the docs?)

    Edit: This is pyzmq version 24.0.1 (did not see this error on 24.0.0)

    docs 
    opened by bmcdonald3 2
Releases(v14.1.1)
Zulip server and webapp - powerful open source team chat

Zulip overview Zulip is a powerful, open source group chat application that combines the immediacy of real-time chat with the productivity benefits of

Zulip 17k Jan 07, 2023
A wiki system with complex functionality for simple integration and a superb interface. Store your knowledge with style: Use django models.

django-wiki Django support The below table explains which Django versions are supported. Release Django Upgrade from 0.7.x 2.2, 3.0, 3.1 0.5 or 0.6 0.

django-wiki 1.6k Dec 28, 2022
GitHub repository for the SecureDrop whistleblower platform. Do not submit tips here!

SecureDrop is an open-source whistleblower submission system that media organizations can use to securely accept documents from, and communicate with

Freedom of the Press Foundation 3.4k Jan 01, 2023
Indico - A feature-rich event management system, made @ CERN, the place where the Web was born.

Indico Indico is: 🗓 a general-purpose event management tool; 🌍 fully web-based; 🧩 feature-rich but also extensible through the use of plugins; ⚖️ O

Indico 1.4k Dec 31, 2022
Abilian Social Business Engine - an enterprise social networking / collaboration platform.

About Abilian SBE (Social Business Engine) is a platform for social business applications, and more specifically collaborative / enterprise 2.0 busine

Abilian open source projects 63 Dec 29, 2022
Easy-to-use and powerful offline translation tool

Introduction Virtaal is a graphical program for doing translation. It is meant to be easy to use and powerful at the same time. Although the initial f

Translate 271 Nov 22, 2022
Generate links that users can use to submit messages encrypted with your public key.

Hawkpost Hawkpost lets you create unique links that you can share with the person that desires to send you important information but doesn't know how

Whitesmith 901 Dec 27, 2022
Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com

ATTENTION: master branch is experimental, please read below Askbot - a Django Q&A forum platform This is Askbot project - open source Q&A system, like

ASKBOT 1.5k Dec 28, 2022
Insular email distribution - mail server as Docker images

Mailu is a simple yet full-featured mail server as a set of Docker images. It is free software (both as in free beer and as in free speech), open to s

Mailu 4.2k Jan 04, 2023
PyZMQ: Python bindings for zeromq

PyZMQ: Python bindings for ØMQ This package contains Python bindings for ØMQ. ØMQ is a lightweight and fast messaging implementation. PyZMQ should wor

The ZeroMQ project 3.2k Jan 02, 2023
Read/sync your IMAP mailboxes (python2)

Upstream status (master branch): Upstream status (next branch): Financial contributors: Links: Official github code repository: offlineimap Website: w

OfflineIMAP 1.7k Dec 29, 2022
Mail hosting made simple

Modoboa Modoboa is a mail hosting and management platform including a modern and simplified Web User Interface. It provides useful components such as

Modoboa 2.4k Jan 05, 2023
Synapse: Matrix reference homeserver

Synapse Contents Introduction About Matrix Support Synapse Installation Connecting to Synapse from a client Registering a new user from a client ACME

matrix.org 10.4k Jan 02, 2023
Reference client for Bitmessage: a P2P encrypted decentralised communication protocol:

PyBitmessage Bitmessage is a P2P communication protocol used to send encrypted messages to another person or to many subscribers. It is decentralized

Bitmessage 2.7k Dec 30, 2022
Build SMS applications with Python

RapidSMS RapidSMS is a free and open source framework for building interactive SMS applications, which integrates tightly with Django to provide a ric

RapidSMS 622 Dec 31, 2022
Online translation tool

Pootle Docs | Changes | Issues | Community Support | Contributing | Development Channel Pootle is an online translation and localization tool. It work

Translate 1.4k Jan 06, 2023
the first third-party instant messaging client for Google Hangouts

hangups hangups is the first third-party instant messaging client for Google Hangouts. It includes both a Python library and a reference client with a

Tom Dryer 1.7k Dec 25, 2022
Main repo for Inboxen.org

Inboxen This is the complete system with everything you need to set up Inboxen. The current maintainer of this repo is Matt Molyneaux GPG keys GPG key

Inboxen 249 Nov 13, 2022
Securely and anonymously share files, host websites, and chat with friends using the Tor network

OnionShare OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor ne

Micah Lee 5.4k Jan 02, 2023
Easy HTML form without PHP or JavaScript

This repository is no longer active. If you're looking for a simple and powerful hosted form API, please check out https://formspree.io. If you are in

Formspree 2.8k Dec 22, 2022