← Back to team overview

sikuli-driver team mailing list archive

[Question #243487]: Sikuli IDE runs on new Win7 64bit machine, but I get a typeError from NetBeans 7.4 and Sikuli 1.0.1

 

New question #243487 on Sikuli:
https://answers.launchpad.net/sikuli/+question/243487

I have a brand new project defined as Python -> Jython 2.5.1 platform

In the Platform Manager 
Main tab -> Jython 2.5.1
Python tab -> added c:\SikuliX\sikuli-script.jar\Lib
Java tab -> added c:\SikuliX\sikuli-script.jar

This is my project ...

# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
from sikuli.Sikuli import *
__author__="rod"
__date__ ="$Feb 6, 2014 2:19:05 PM$"

if __name__ == "__main__":
    print "Hello World"

Running the project I get ....
Traceback (most recent call last):
  File "C:\Users\rod\Documents\NetBeansProjects\NewPythonProject4\src\newpythonproject4.py", line 4, in <module>
    from sikuli.Sikuli import *
  File "C:\SikuliX\sikuli-script.jar\Lib\sikuli\__init__.py", line 6, in <module>
TypeError: log(): 1st arg can't be coerced to String

Debugging the project I get .....
[LOG]PythonDebugger : overall Starting
[LOG]PythonDebugger.taskStarted : I am Starting a new Debugging Session ...
[LOG]This window is an interactive debugging context aware Python Shell 
[LOG]where you can enter python console commands while debugging 
>>>c:\users\rod\appdata\roaming\netbeans\7.4\config\nbpython\debug\nbpythondebug\jpydaemon.py
args =  ['C:\\Users\\rod\\AppData\\Roaming\\NetBeans\\7.4\\config\\nbPython\\debug\\nbpythondebug\\jpydaemon.py', 'localhost', '29100']
localDebuggee= None
JPyDbg connecting  localhost  on in=  29100 /out= 29101
JPyDbgI0001 : connected to  localhost
>>>log(): 1st arg can't be coerced to String['Traceback (most recent call last):
deamon ended
', '  File "C:/Users/rod/Documents/NetBeansProjects/NewPythonProject4/src/newpythonproject4.py", line 4, in <module>

    from sikuli.Sikuli import *
', '  File "C:\\SikuliX\\sikuli-script.jar\\Lib\\sikuli\\__init__.py", line 6, in <module>
', "TypeError: log(): 1st arg can't be coerced to String
"]
Debug session normal end

not getting past the "from sikuli.Sikuli import *" is a show stopper...I have poured over the Sikuli.org site, tried to use C:\SikuliX\sikului-ide.jar and C:\SikuliX\sikului-java.jar in various combinations, and I get the same result every time.  Any insight is appreciated.

Thank you, Rod

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