Re: [Sikuli-driver] [Question #642659]: Sikuli can no longer create new files

2017-06-10 Thread RaiMan
Question #642659 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/642659

Status: Open => Answered

RaiMan proposed the following answer:
According to Python rules, file mode r does not create files, if they are not 
there, only w and a do that.
Here is a good explanation of the file modes:
https://stackoverflow.com/questions/1466000/python-open-built-in-function-difference-between-modes-a-a-w-w-and-r

So it might be, that it worked with an older version of SikuliX which
had Jython 2.5 on board (which then was an incompatibility)

Latest SikuliX has Jython 2.7 on board, which works as expected.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #642659]: Sikuli can no longer create new files

2017-06-09 Thread Ryan
New question #642659 on Sikuli:
https://answers.launchpad.net/sikuli/+question/642659

Hi all,

Would really appreciate any insight on this, as I've spent a lot of time 
troubleshooting to no avail.  I'm using Sikuli on a VM to do some morning 
checkouts for a suite of applications, and one week Sikuli stopped being able 
to write new files for screenshots or logs.  I also use it to encrypt login 
information, which involves creating and deleting a cipher text file every time 
a script is run.  However, I keep getting thrown this error:

[error] IOError ( (2, 'No such file or directory', 'I:\\Sikuli\\New 
folder\\Untitled.sikuli\\New Text Document.txt') )

Even though the line of code the error refers to is:

cipherFile = open('I:\\Sikuli\\New folder\\Untitled.sikuli\\New Text 
Document.txt', 'r+')

Which should create the file if it does not exist.  I've tried changing 
permissions on the folder its trying to write to, upgrading Sikuli to 1.1.1, 
and even manually creating I:\\Sikuli\\New folder\\Untitled.sikuli\\New Text 
Document.txt so that Sikuli could just write to it rather than have to make a 
new file.  Still no dice.  Does anyone have any ideas?  Would be greatly 
appreciated, I could use a fresh set of eyes on it.

Thanks!


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp