From: Alex G. <ale...@ne...> - 2011-06-22 16:51:50
|
22.06.2011 18:42, Safoura kirjoitti: > Jim Baker<jbaker<at> zyasoft.com> writes: > >> >> Sorry for being too optimistic. We ended up not supporting any of those > modules in 2.5.1, because we wanted to get some critical bug fixes out first. > 2.5.2 is more bug fixes, plus Java integration. There's some experimental > support for ctypes in 2.5.2, but it's really more of a placeholder at this > point. And none of the other modules mentioned (bz2, CJK codecs, sqlite3, or > completion of unicodedata) have been completed either. They might be released on > PyPI first as a separate download, or in 2.6. Nothing really too difficult to > do, but we don't have the resources since we are an all-volunteer project. > Contributions welcome! >> >> >> >> We do need to update the FAQ of course. >> I do recommend JNA if you can modify your ctypes code. JNA is pretty close to > ctypes - JNA's API apparently was significantly influenced by ctypes! JNA also > seems to work well with Jython. >> >> The other option is to use something like execnet. For execnet specifically: > it allows you to pair Jython with CPython, and it does seem to work well. But > its GPL license makes it a non starter for many people. There are other choices > out there too. >> >> - JimOn Wed, Nov 17, 2010 at 5:24 AM, Marius<wishinet<at> googlemail.com> > wrote: >> Hi! >> I checked out the website: >> "We do plan to support bz2, ctypes, sqlite3, flesh out unicodedata, >> and support cjk codecs in 2.5.1."<- >> (http://www.jython.org/faq3.html) >> ->Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) >> [OpenJDK Server VM (Sun Microsystems Inc.)] on java1.6.0_18 >> Type "help", "copyright", "credits" or "license" for more information. >>>>> import ctypes >> Traceback (most recent call last): >> File "<stdin>", line 1, in<module> >> ImportError: No module named ctypes >> Is there support for ctypes with Jython? Or can I get ctypes working >> with Jython somehow? >> Thanks :), >> Marius >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta todayhttp://p.sf.net/sfu/msIE9- > sfdev2dev >> _______________________________________________ >> Jython-users mailing listJython-users<at> > lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/jython-users >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today >> http://p.sf.net/sfu/msIE9-sfdev2dev >> >> _______________________________________________ >> Jython-users mailing list >> Jython-users<at> lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/jython-users >> > Hi Jim, > As I was doing some research for my problem, I found this post and joined this > mailing list. > I need to communicate with some device which I have a perfectly working Python > module for. I also have an extensive Java program which needs to talk to the > device and I thought I just call the perfect python module functions from the > already existing Java code. > Therefore I have been looking for a way to call the Python module lib's > functions from Java and found out that Jython is designed to do that. > However, the Python module uses "PyUSB" library which apparently uses ctypes to > communicate with native libraries in Python. > Now is it true that I won't simply be able to continue this project any more > because ctypes is not supported in Jython? I was so excited about this but now > don't know how to go further. > If that is the case, is there any thing other than Jython that you could suggest > as a solution, by any chance? > Any comment/suggestion would be greatly appreciated. Try Py4J. It will bridge CPython and Jython so you can use stuff from both. > Thanks so much > Safi > > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |