Sublime Forum

Using python library (ZeroMQ) in a plugin

#1

Is there any way to use ZeroMQ from a sublime plugin on windows?
I’ve tried using binary builds from here: github.com/zeromq/pyzmq/downloads and they give initial impression of working, but when I try to create a connection everything falls apart (ST2 crashes).

File: pyzmq-2.1.7.1.win-amd64-py2.6.msi
Sublime: win64, 2177

Plugin code:

import zmq c = zmq.Context() s = c.socket(zmq.PUB) s.bind("tcp://*:5555")

This works, but as soon as I do this on the other side, everything just blows up.

c = zmq.Context()
s = c.socket(zmq.SUB)
s.connect("tcp://127.0.0.1:5555")

I have the .mdmp / appcompat / WERInternalMetadata saved if necessary.

EDIT: Actually, it sometimes crashes on s.bind(“tcp://*:5555”) as well.

0 Likes

#2

whachya whachya whachya doooon? :smile:

0 Likes