dwb / jsonrpc2-zeromq-python Goto Github PK
View Code? Open in Web Editor NEWJSON-RPC 2.0 over ZeroMQ in Python
License: BSD 3-Clause "New" or "Revised" License
JSON-RPC 2.0 over ZeroMQ in Python
License: BSD 3-Clause "New" or "Revised" License
The main dependency here is pyzmq, which supports Python 3. What is preventing this project from supporting Python 3?
When a signal is received while polling on a socket, the interrupt is apparently propagated up to the application, and it is the application's responsibility to handle it correctly. Qt apparently causes signals to be sent in various situations. The end is result is that jsonrpc2_zeromq basically crashes when used in conjunction with Qt.
This is basically the same issue as reported on ipython: ipython/ipython#499
There doesn't appear to be a documented dependency on python 2.7.x, but the set comprehension syntax used in the common.Response.to_dict method does fail when running on python 2.6.x. This was a difficult problem to debug
It would be nice to change setup.py to fail when trying to install on an older version of Python, or fix the set comprehension expression to something that does work with 2.6.x
I'm trying to compile a win32 service which uses jsonrpc2 by py2exe, whenever i run this service i get this error:
File "jsonrpc2_zeromq__init__.pyc", line 14, in
File "jsonrpc2_zeromq\client.pyc", line 16, in
File "zmq__init__.pyc", line 49, in
File "zmq\backend__init__.pyc", line 41, in
File "zmq\backend__init__.pyc", line 29, in
File "zmq\backend\select.pyc", line 27, in select_backend
File "zmq\backend\cython__init__.pyc", line 6, in
File "zmq\backend\cython\error.pyc", line 12, in
File "zmq\backend\cython\error.pyc", line 10, in __load
ImportError: DLL load failed: The specified module could not be found.
This is my setup.py file :
from distutils.core import setup
import py2exe
import zmq.libzmq
setup(
console=[{"script": "windows_installer.py"}],
zipfile='lib/library.zip',
options={
'py2exe': {
'includes': ['zmq.backend.cython', 'win32service', 'builtins', 'jsonrpc2_zeromq', 'jsonrpc2_zeromq.server',
'UserList', 'UserString', 'commands', 'future.backports.misc', 'future.backports',
'zmq.backend.cython.error'],
'excludes': ['zmq.libzmq'],
'dll_excludes': ['libzmq.pyd'],
}
},
data_files=[('lib', (zmq.libzmq.file,))]
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.