I'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@mailc.net> 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&reg; 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&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Jython-users mailing list
Jython-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-users



--
Jim Baker
jbaker@zyasoft.com