support for ftplib

Asked by J Martinez on 2014-01-14

Does sikuli support ftplib? And if not, is there a way to ftp files from inside sikuli?
(I searched, and poked, and read, but can't find anything on this. My apologies if I didn't look hard enough)

I get an error at the line which has 'import ftplib' on it. The error is:

[error] script stopped with error in line 75
[error] ImportError ( No module named net )
Exception in thread "MainThread" java.lang.IllegalStateException: No match found

        at java.util.regex.Matcher.group(Unknown Source)
        at org.sikuli.scriptrunner.JythonScriptRunner.findErrorSourceWalkTrace(J
ythonScriptRunner.java:326)
        at org.sikuli.scriptrunner.JythonScriptRunner.findErrorSource(JythonScri
ptRunner.java:290)
        at org.sikuli.scriptrunner.JythonScriptRunner.runPython(JythonScriptRunn
er.java:200)
        at org.sikuli.scriptrunner.JythonScriptRunner.runScript(JythonScriptRunn
er.java:162)
        at org.sikuli.basics.SikuliScript.main(SikuliScript.java:181)

Thank you,
Chris

Question information

Language:
English Edit question
Status:
Open
For:
Sikuli Edit question
Assignee:
RaiMan Edit question
Last query:
2014-01-15
Last reply:
2014-01-15
RaiMan (raimund-hocke) said : #1

ftplib seems to be available in the standard Jython (used in Sikuli):
http://www.jython.org/docs/library/ftplib.html

tested with version 1.0.1: no problem with import ftplib

J Martinez (john-martinez) said : #2

Thank you so much for the response.

I did the manual install for option 2. (The auto install didn't work)
I rechecked this morning. Still have the problem.
The problem happens right at the list that has 'import ftplib'
So the issue probably has to do with how I installed it. Probably there are other parts I would need to install.

But since sikuli is all about automation, I simply use sikuli to type the name of a python script I wrote which does the ftp work. So I have a work-around.

Thank you again for the response.

Chris

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of RaiMan
Sent: Wednesday, January 15, 2014 2:26 AM
To: Martinez, John C (Chris)
Subject: Re: [Question #242220]: support for ftplib

Your question #242220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242220

    Status: Open => Answered

RaiMan proposed the following answer:
ftplib seems to be available in the standard Jython (used in Sikuli):
http://www.jython.org/docs/library/ftplib.html

tested with version 1.0.1: no problem with import ftplib

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.launchpad.net/sikuli/+question/242220/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.launchpad.net/sikuli/+question/242220

You received this question notification because you asked the question.

RaiMan (raimund-hocke) said : #3

Since you apparently are a Python user:
Any settings in environment, that point to Python stuff and so might irritate the Jython bundled with Sikuli?

J Martinez (john-martinez) said : #4

Don't leave it open on my account, I have a work-around.

However, I would be happy to help trouble-shoot the issue if you think it's worthy of trying to solve it. (It's the least I can by way of a thank-you for such a wonderful piece of software that sikuli is)

Chris

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of J Martinez
Sent: Wednesday, January 15, 2014 10:26 AM
To: Martinez, John C (Chris)
Subject: Re: [Question #242220]: support for ftplib

Your question #242220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242220

    Status: Answered => Open

You are still having a problem:
Thank you so much for the response.

I did the manual install for option 2. (The auto install didn't work) I rechecked this morning. Still have the problem.
The problem happens right at the list that has 'import ftplib'
So the issue probably has to do with how I installed it. Probably there are other parts I would need to install.

But since sikuli is all about automation, I simply use sikuli to type the name of a python script I wrote which does the ftp work. So I have a work-around.

Thank you again for the response.

Chris

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of RaiMan
Sent: Wednesday, January 15, 2014 2:26 AM
To: Martinez, John C (Chris)
Subject: Re: [Question #242220]: support for ftplib

Your question #242220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242220

    Status: Open => Answered

RaiMan proposed the following answer:
ftplib seems to be available in the standard Jython (used in Sikuli):
http://www.jython.org/docs/library/ftplib.html

tested with version 1.0.1: no problem with import ftplib

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.launchpad.net/sikuli/+question/242220/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.launchpad.net/sikuli/+question/242220

You received this question notification because you asked the question.

--
You received this question notification because you asked the question.

J Martinez (john-martinez) said : #5

In my windows environment the only thing that has anything to do with python is my PATH variable. Could that irritate jython?
I'm not aware of any python customizations, e.g., I don't modify the path for importing module.
I get the same crash & error message if 'import ftplib' is the first line in the script.

I split out the path printout below one entry per line to make it more readable.
> set
.
.
.
Path=C:\Program Files;
C:\Program Files (x86);
C:\Program Files (x86)\ImageMagick-6.8.7-Q16;
C:\Perl\site\bin;
C:\Perl\bin;
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem;
C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
C:\Python27;
C:\Python27\Scripts;
C:\Python27\Lib\site-packages;
C:\Python27\Lib\site-packages\PyQt4;
C:\Program Files\WIDCOMM\Bluetooth Software\;
C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;
C:\Program Files\Intel\WiFi\bin\;
C:\Program Files\Common Files\Intel\WirelessCommon\;
C:\Program Files\CLU;
C:\Program Files\NpackdCL;
C:\Program Files\NpackdCL-1;
C:\Program Files (x86)\GTK2-Runtime\bin

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
.
.
.

Chris

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of RaiMan
Sent: Wednesday, January 15, 2014 10:36 AM
To: Martinez, John C (Chris)
Subject: Re: [Question #242220]: support for ftplib

Your question #242220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242220

    Status: Open => Needs information

RaiMan requested more information:
Since you apparently are a Python user:
Any settings in environment, that point to Python stuff and so might irritate the Jython bundled with Sikuli?

--
To answer this request for more information, you can either reply to this email or enter your reply at the following page:
https://answers.launchpad.net/sikuli/+question/242220

You received this question notification because you asked the question.

RaiMan (raimund-hocke) said : #6

Ok, thanks for now.

When I am on Windows again the next days, I will check and eventually come back.

J Martinez (john-martinez) said : #7

Tks

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of RaiMan
Sent: Wednesday, January 15, 2014 11:21 AM
To: Martinez, John C (Chris)
Subject: Re: [Question #242220]: support for ftplib

Your question #242220 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242220

    Status: Open => Answered

RaiMan proposed the following answer:
Ok, thanks for now.

When I am on Windows again the next days, I will check and eventually come back.

--
If this answers your question, please go to the following page to let us know that it is solved:
https://answers.launchpad.net/sikuli/+question/242220/+confirm?answer_id=5

If you still need help, you can reply to this email or go to the following page to enter your feedback:
https://answers.launchpad.net/sikuli/+question/242220

You received this question notification because you asked the question.

Can you help with this problem?

Provide an answer of your own, or ask J Martinez for more information if necessary.

To post a message you must log in.