home.social

#pyzmq — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pyzmq, aggregated by home.social.

fetched live
  1. Here is my example of testing PyZMQ client and server code with pytest and pytest-mock. I haven't found much information on this topic. Anyone else have examples of testing PyZMQ code? gavinw.me/pythonic/pyzmq/test-

  2. Dzisiejszy ból głowy: #pyzmq sypie się z:

    TypeError: '<' not supported between instances of 'str' and 'int'

    przy wywołaniu:

    ./setup.py build_ext -j12

    ale tylko w niektórych środowiskach.

    Okazało się, że błąd pochodzi z klasy UnixCCompiler nadpisanej przez numpy. Nadpisywanie występuje tylko jeśli Cython i Pythran są dodatkowo zainstalowane (Cython opcjonalnie importuje Pythrana, Pythran importuje numpy.distutils).

    Teraz pozostaje jeszcze znaleźć rozwiązanie tego problemu.

    github.com/zeromq/pyzmq/pull/1

    #Gentoo #Python

  3. Today's headache: fails with:

    TypeError: '<' not supported between instances of 'str' and 'int'

    if you call:

    ./setup.py build_ext -j12

    but only in some environments.

    It turned out that the error comes from numpy overriding UnixCCompiler, and the override only happens if both Cython and Pythran are installed in addition to numpy (Cython optonally imports Pythran, and Pythran imports numpy.distutils).

    Now how to resolve that…

    github.com/zeromq/pyzmq/pull/1