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-2.1.7.1.win-amd64-py2.6.msi
Sublime: win64, 2177

Plugin code:
Code: Select all
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.
Code: Select all
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.
Last edited by wuub on Mon Feb 13, 2012 11:15 am, edited 1 time in total.
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
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
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 31 guests