#pyzmq — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #pyzmq, aggregated by home.social.
-
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? https://gavinw.me/pythonic/pyzmq/test-client-server.html
-
Maybe I should read about https://pypi.org/project/pyzmq/ #0MQ #pyzmq
-
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.
https://github.com/zeromq/pyzmq/pull/1872#issuecomment-1571865918
-
Today's headache: #pyzmq 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…
https://github.com/zeromq/pyzmq/pull/1872#issuecomment-1571865918