|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
pyserial uage with JythonHello
I try to use pyserial in my environment and I have the following error: Traceback (most recent call last): .... .... File "./scripts/python-site/serial/__init__.py", line 17, in <module> from serialjava import * File "./scripts/python-site/serial/serialjava.py", line 9, in <module> import javax.comm ImportError: No module named comm pyserial requires java.comm ...which is not available in Jython: ~$ java -jar Local/jython/jython.jar Jython 2.5.1rc2 (Release_2_5_1rc2:6790, Sep 12 2009, 14:44:25) [Java HotSpot(TM) Server VM (Sun Microsystems Inc.)] on java1.6.0_14 Type "help", "copyright", "credits" or "license" for more information. >>> import javax.comm Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named comm >>> Any hints? Thanks a lot in advance. Kind regards René PS Jython 2.5 is great. Thank you everybody! ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
|
|
Re: pyserial uage with JythonRene-
I don't think java.comm is part of the JDK distribution, is it? I just took a look at my JDK and I don't have it on the Mac. I think you'll need to download it (http://java.sun.com/products/javacomm/) if you haven't already. You'll need to make sure that the JAR file containing java.comm resides in your classpath, and then you should be able to import it using Jython. Hope this helps. Josh Juneau juneau001@... http://jj-blogger.blogspot.com Twitter ID: javajuneau On Thu, Sep 17, 2009 at 11:35 AM, Rene Maurer <rmnet@...> wrote: Hello ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
|
|
Re: pyserial uage with JythonI'm not familiar with this package, but the error is quite clear. You need to ensure you have the jar implementing javax.comm on your classpath and available to Java (and thus to Jython). Good luck!
- Jim On Thu, Sep 17, 2009 at 9:35 AM, Rene Maurer <rmnet@...> wrote: Hello -- Jim Baker jbaker@... ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
|
|
Re: pyserial uage with JythonHi You probably need install it. You can find the code and bins for different OS in josu On 2009 ira 17, at 18:35, Rene Maurer wrote:
------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
|
|
Re: pyserial uage with JythonJosh,
Thank you for answering (and thanks to the others as well). I was deep in my code to get it work. So I have just posted to the forum before thinking about. Of course I need to download javax.comm and add it to my classpath... Sorry for asking this stupid question. Regards, René * Josh Juneau writes 17.09.2009 19:22: > Rene- > > I don't think java.comm is part of the JDK distribution, is it? I just > took a look at my JDK and I don't have it on the Mac. I think you'll > need to download it (http://java.sun.com/products/javacomm/) if you > haven't already. You'll need to make sure that the JAR file containing > java.comm resides in your classpath, and then you should be able to > import it using Jython. > > Hope this helps. > > Josh Juneau > juneau001@... <mailto:juneau001@...> > http://jj-blogger.blogspot.com > Twitter ID: javajuneau > > > On Thu, Sep 17, 2009 at 11:35 AM, Rene Maurer <rmnet@... > <mailto:rmnet@...>> wrote: > > Hello > > I try to use pyserial in my environment and I have the following > error: > > Traceback (most recent call last): > .... > .... > File "./scripts/python-site/serial/__init__.py", line 17, in <module> > from serialjava import * > File "./scripts/python-site/serial/serialjava.py", line 9, in <module> > import javax.comm > ImportError: No module named comm > > pyserial requires java.comm ...which is not available in Jython: > > ~$ java -jar Local/jython/jython.jar > Jython 2.5.1rc2 (Release_2_5_1rc2:6790, Sep 12 2009, 14:44:25) > [Java HotSpot(TM) Server VM (Sun Microsystems Inc.)] on java1.6.0_14 > Type "help", "copyright", "credits" or "license" for more information. > >>> import javax.comm > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: No module named comm > >>> > > Any hints? > > Thanks a lot in advance. > > Kind regards > René > > PS > Jython 2.5 is great. > Thank you everybody! > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Jython-users mailing list > Jython-users@... > <mailto:Jython-users@...> > https://lists.sourceforge.net/lists/listinfo/jython-users > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
| Free embeddable forum powered by Nabble | Forum Help |