← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #148534]: how to access Serial port for writing and reading data in sikuli??

 

Question #148534 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/148534

Umesh Raj posted a new comment:
Thanku for the reply..i tried with the 1st option using python package Pyserial. but the sikuli is throwind an error as.
 
Error message:
Traceback (most recent call last):
  File "C:\DOCUME~1\umesh.raj\LOCALS~1\Temp\sikuli-tmp4973352784739764166.py", line 6, in <module>
    import serial
  File "C:\Python25\Lib\site-packages\serial\__init__.py", line 23, in <module>
    from serialjava import *
  File "C:\Python25\Lib\site-packages\serial\serialjava.py", line 35, in <module>
    comm = detect_java_comm([
  File "C:\Python25\Lib\site-packages\serial\serialjava.py", line 29, in detect_java_comm
    raise ImportError("No Java Communications API implementation found")
ImportError: No Java Communications API implementation found

so i am not abale to use that python module in sikuli. same python module is working fine by normal run. and also the python module path is also set in sikuli..
the script in sikuli that throws error is as follows

Release_Name="Suite_Step_0_HS"
myScriptPath = "C:\Python25\Lib\site-packages\serial"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import logg as log
import serial

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.