Home Download Buy Blog Forum Support

Using python library (ZeroMQ) in a plugin

Using python library (ZeroMQ) in a plugin

Postby wuub on Mon Feb 13, 2012 10:55 am

Is there any way to use ZeroMQ from a sublime plugin on windows?
I've tried using binary builds from here: https://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-
Sublime: win64, 2177

Plugin code:
Code: Select all
import zmq
c = zmq.Context()
s = c.socket(zmq.PUB)

This works, but as soon as I do this on the other side, everything just blows up.
Code: Select all
c = zmq.Context()
s = c.socket(zmq.SUB)

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

EDIT: Actually, it sometimes crashes on s.bind("tcp://*:5555") as well.
Last edited by wuub on Mon Feb 13, 2012 11:15 am, edited 1 time in total.
SublimeREPL via Package Control Twitter: @wuub
Posts: 161
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: Using python library (ZeroMQ) in a plugin

Postby sublimator on Mon Feb 13, 2012 11:10 am

whachya whachya whachya doooon? :)
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
Posts: 645
Joined: Thu Mar 20, 2008 5:41 am

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 28 guests