Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

matteoa posted a new comment:
hello,
I tried your workaround but there were an error:
Traceback (most recent call last):
  File "MYPerfectlyWorkingScript.py", line 95, in 
scriptFile = argv[0] # Python standard behavior
NameError: name 'argv' is not defined
Picked up _JAVA_OPTIONS: -Xmx1024M
Process finished with exit code -1

I solved it by using sys.argv[0], thanks!

The little problem remaining is that within the IDE "my old version"
works, and also using PyCharm works well, but only with older version of
SikulixAPI, but it is something we can overcome until fixing.

Thanks for your, usual and very rare, prompt support!!!

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread RaiMan
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Open => Answered

RaiMan proposed the following answer:
as already mentioned in #1:

getBundleFolder() in your environment returns None (no bundle path
defined)

try this:
scriptFile = argv[0] # Python standard behavior
scriptFolder = os.path.dirname(scriptFile)
strLogName=datetime.now().strftime('%Y%m%d_%H%M%S'+ "-DbgSiK.log")
Debug.setUserLogFile(makePath(scriptFolder, 'logs',  strLogName))

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Needs information => Open

matteoa gave more information on the question:
Hello, 
the Jython error is not the object of my question, the problem is that I'm not 
able to debug in Pycharm with latest versions.
I have saved a version from April that is in use when we have to debug line by 
line and works, but the latest builds have the error described above:
Traceback (most recent call last):
  File "MYPerfectlyWorkingScript.py", line 75, in 
Debug.setUserLogFile(b + 'logs\\' + str(strLogName))
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Picked up _JAVA_OPTIONS: -Xmx1024M
Process finished with exit code -1

this is the piece of code executed at the very beginning of the script:

b=getBundleFolder()
strLogName=datetime.now().strftime('%Y%m%d_%H%M%S'+ "-DbgSiK.log")
Debug.setUserLogFile(b + 'logs\\' + str(strLogName))

The problem of the Python dll is still there but, so far, I'm able to use 
Jython 2.7.0 and I think is something related to my pc (a colleague of mine 
uses 2.7.1)
Thanks for support
Matteo

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread RaiMan
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Open => Needs information

RaiMan requested more information:
talking about this ?

Error loading Python DLL: C:\jython2.7.1\bin\python27.dll (error code
14001)

If yes, not yet checked - will try latest until monday.

If no:
please tell about the problem again.

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-11 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Answered => Open

matteoa is still having a problem:
Hi RaiMan, 
any news regarding this problem?
In the meantime a colleague of mine has installed everything and this problem 
is present also in his pc.

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-03 Thread RaiMan
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Open => Answered

RaiMan proposed the following answer:
Ok, I will check the next days on my Win10

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-01 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

matteoa gave more information on the question:
Hi all,
I'm sorry, in the previous message I said something wrong, it was only a 
misconfiguration of the Pycharm, now it has exactly the same error of before 
with current Sikulix 1.1.4 version...

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-01 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

matteoa gave more information on the question:
with the last version I have another error message when trying to run a script 
that works if launched from the IDE or from command line:
C:\jython2.7.0\bin\jython.exe 
-Dpython.path=C:\SikuliX\Test_h20\PSA_Id_direct.sikuli C:/PSA_Id_direct.sikuli
C:\jython2.7.0\bin\jython.exe: No module named __main__
Picked up _JAVA_OPTIONS: -Xmx1024M

Process finished with exit code 1

This is the version I've used today:
1.1.4-SNAPSHOT-#383-2019-09-26_13:41/Windows10.0/Java8(64)1.8.0_221-b27
Thanks in advance

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-10-01 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Status: Answered => Open

matteoa is still having a problem:
Hello,
any news regarding this problem?

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-09-11 Thread matteoa
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

matteoa posted a new comment:
hello RaiMan, 
I installed Jython 2.7.1 but at the time of setting it up with Pycharm as 
project interpreter having selected 
c:\jython2.7.1\bin\jython.exe 
It shows me an error that I'm not expert enough in Python nor in PyCharm to 
solve:
executed command:
C:\Program Files\JetBrains\PyCharm Community Edition 
2018.2.4\helpers\packaging_tool.py untar
C:\Program Files\JetBrains\PyCharm Community Edition 
2018.2.4\helpers\virtualenv-16.0.0.tar.gz
error occurred:
Non-zero exit code (-1)
command output:
Error loading Python DLL: C:\jython2.7.1\bin\python27.dll (error code 14001)

I retried this today but I remember I did that a lot of time ago with the same 
result...so I used (only for for Pycharm) 2.7.0...while using the standalone 
version for Sikulix...a little a mess, I know, but until today it was working...
I tried also to use the standalone version of the 
Thanks a lot for your support, superprompt as usual!!
Matteo

-- 
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


Re: [Sikuli-driver] [Question #683846]: [1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

2019-09-11 Thread RaiMan
Question #683846 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/683846

Summary changed to:
[1.1.4] PyCharm: running a script: getBundleFolder() seems to return None

-- 
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