[2.0.4] Jython scripting: import Python (pip installed) module like a fake data generator (fake-data)
Using manual I added the path to Python site-packages
- make a folder Lib/site-packages in your SikulixAppData folder
- add a file sites.txt into that folder
- in the file have a line containing the absolute path to your Python site-packages folder
- restart the IDE
But I have an error:
[error] script [ 10000messages ] stopped with error in line 12
[error] TypeError ( find_module() takes exactly 3 arguments (2 given) )
[error] --- Traceback --- error source first
line: module ( function ) statement
489: pkgutil ( find_loader ) TypeError: find_module() takes exactly 3 arguments (2 given)
594: pkgutil ( get_data ) File "C:\Users\
6: __init__ ( <module> ) _replaces = pkgutil.
37: __init__ ( import_module ) File "C:\Python27\
45: loading ( find_available_
15: config ( <module> ) AVAILABLE_LOCALES = find_available_
11: factory ( <module> ) from faker.config import AVAILABLE_LOCALES, DEFAULT_LOCALE, PROVIDERS
1: __init__ ( <module> ) from faker.factor
y import Factory # noqa F401
12: main ( <module> ) from faker import Faker
[error] --- Traceback --- end --------------
Code:
from faker import Faker
faker = Faker()
...
paste(faker.
...
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: