-
Notifications
You must be signed in to change notification settings - Fork 235
[Fixed 2015-10-25] importing python modules doesn't seem to work anymore #155
Comments
Seems related to this: ImportError (module.sikuli has no module.py) |
ok, I will check next week, when I am back from vacation ;-) |
Should work with the nightly build 1.1.1 (when available) |
fix: 4a6bc67 |
just to leave it in the list |
I have this:
and from
and it works when launching by hitting the Run button.
Using SikuliX 1.1.1. under Linux. |
I've tried to do:
and it keeps failing. |
how do you run from commandline? |
Thanks for your response RaiMan. :-)
|
Solved, it didn't work before, because I've put |
Without having checked accurately:
paths with ../.... are not supported as current directory in sys.path - go to the folder containing TestQR.sikuli and use
|
In |
Yes, I have seen it. missunderstanding, sorry: I meant, that the use of ../TestQR.sikuli/ on the commandline might lead internally to a wrong entry in sys.path, that is added by SikuliX automatically. I will check that. |
i am trying to import openpyxl in sikulix 1.1.0 import openpyxl i am getting error as: inside the sikulix lib folder i have create a folder site-packages, sites.txt file with the path to my python lib files to access the python library which i have installed. other function like xlsxwriter,pyodbc, etc. are working without error. C:\Users\10612159\AppData\Roaming\Sikulix\Lib\site-packages |
@JoelJoy58 |
@RaiMan |
I'm running a nightly build 2014-12-17_01:01nightly and importing python modules works as one would expect but when I tried the latest GA release it's unable to resolve the module location.
My environment is Windows 7 64 bit with java 1.7 running from both the script runner and sikuli IDE
Here's a small example of the problem.
https://www.dropbox.com/s/x4zqrhf3n196xd3/module_example.zip?dl=0
The dir structure looks like:
module_example
The older build from december is able to import both modules but the latest build throws:
[error] script [ main ] stopped with error in line 1
[error] ImportError ( No module named asdf )
main.py looks like this:
import asdf
from common.module1 import print_from_module_1
print "this is the main module"
print_from_module_1()
print asdf.asdf_method()
The text was updated successfully, but these errors were encountered: