WHILE IMPORTING _init_() takes at least 3 arguments(2given)

Asked by AMEJRISSI Mohamed

Im trying to run sikulix in a VM(virtual Box) windows 10 and i'm encountering this error:

error] TypeError ( !!WHILE IMPORTING!! !!WHILE IMPORTING!! __init__() takes at least 3 arguments (2 given) )
[error] --- Traceback --- error source first
line: module ( function ) statement
5: fct ( <module> ) import parameters, debug, hashlib, subprocess, maintenance
2: test4 ( <module> ) import fct, device
4: main ( <module> ) import test4
[error] --- Traceback --- end ---------

NB: the same tests work well in my host windows 10 ( the problem is just in the VM windows 10)

i have installed:
Java 8
sikulix ( i tried all the version and the same error everytime)

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
AMEJRISSI Mohamed (mohamed96amej) said :
#1

any suggestions please?

Revision history for this message
RaiMan (raimund-hocke) said :
#2

--- i tried all the version and the same error everytime
hence it is unlikely, that SikuliX is the problem.

general recommendation: use version 2.0.5 (earlier versions not supported)

Compare your host and VM Windows setup about differences in the system settings (path, environment, ...).

Apparently it is a problem in the Python/Jython code (imports in module fct)

--- import parameters, debug, hashlib, subprocess, maintenance
split the imports to one line for each, to get nearer to the offending __init__()

Revision history for this message
AMEJRISSI Mohamed (mohamed96amej) said :
#3

Thank you for your response , it worked well now
I redid everything from scratch ( new VM i installed python, java, i updated the environment variables, and paths and all , and i tried the 2.0.5)

Revision history for this message
RaiMan (raimund-hocke) said :
#4

solved by user