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:

I try to use pyserial in my  environment and I have the following

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

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;
Jython-users mailing list

Jim Baker