Message11037

Author stefan.richthofer
Recipients sowmya.rani, stefan.richthofer
Date 2017-01-26.02:12:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485396726.67.0.792563636663.issue2544@psf.upfronthosting.co.za>
In-reply-to
Content
sowmya,
basically, when filing an issue it would be helpful, to post the actual error message or describe the behavior that occurred. Ideally stripped down to the root cause as far as possible.

That said, happybase depends on thriftpy, which is probably not installed for your Jython.
Looking at thriftpy in turn shows that thriftpy uses native C-extensions and/or Cython. You could probably make that work on posix-systems using JyNI (www.jyni.org). You would have to use CPython to process setup.py running with --prefix compliant to your Jython-setup. Jython is unfortunately (currently) not capable of cythonizing the sources (not even with JyNI).

However, it appears like thriftpy does not necessarily require the C-extensions. An excerpt from its setup.py:

# cython detection
try:
    from Cython.Build import cythonize
    CYTHON = True
except ImportError:
    CYTHON = False

cmdclass = {}
ext_modules = []

# pypy detection
PYPY = "__pypy__" in sys.modules
UNIX = platform.system() in ("Linux", "Darwin")

# only build ext in CPython with UNIX platform
if UNIX and not PYPY:
    # rebuild .c files if cython available
    if CYTHON:
        cythonize("thriftpy/transport/cybase.pyx")
        cythonize("thriftpy/transport/**/*.pyx")
        cythonize("thriftpy/protocol/cybin/cybin.pyx")

    ext_modules.append(Extension("thriftpy.transport.cybase",
                                 ["thriftpy/transport/cybase.c"]))
    ext_modules.append(Extension("thriftpy.transport.buffered.cybuffered",
                                 ["thriftpy/transport/buffered/cybuffered.c"]))
    ext_modules.append(Extension("thriftpy.transport.memory.cymemory",
                                 ["thriftpy/transport/memory/cymemory.c"]))
    ext_modules.append(Extension("thriftpy.transport.framed.cyframed",
                                 ["thriftpy/transport/framed/cyframed.c"]))
    ext_modules.append(Extension("thriftpy.protocol.cybin",
["thriftpy/protocol/cybin/cybin.c"]))


This way it would unfortunately fail to detect Jython. You would have to modify setup.py such that Cython-stuff is ruled out in Jython case similar to the PyPy-check.

Hope this somewhat helps...
History
Date User Action Args
2017-01-26 02:12:06stefan.richthofersetmessageid: <1485396726.67.0.792563636663.issue2544@psf.upfronthosting.co.za>
2017-01-26 02:12:06stefan.richthofersetrecipients: + stefan.richthofer, sowmya.rani
2017-01-26 02:12:06stefan.richthoferlinkissue2544 messages
2017-01-26 02:12:05stefan.richthofercreate