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

Asked by matteoa on 2019-09-11

hello all,
I've been using Sikulix via PyCharm for months for debug, running from it etc etc etc, no problem, a pleasure to use.

This morning I updated sikulix+API with latest version and when I try to run the project that was running before I have this error message:

Traceback (most recent call last):
  File "MYPerfectlyWorkingScript.py", line 75, in <module>
    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:
strLogName=datetime.now().strftime('%Y%m%d_%H%M%S'+ "-DbgSiK.log")
Debug.setUserLogFile(b + 'logs\\' + str(strLogName))

Any idea about what gone wrong?

In the meantime I did nothing with the project but I can remind that there were an automatic update of the JVM.
Thanks for any help

this is my Sikulix configuration:
and this is the PyCharm one:
PyCharm 2018.2.4 (Community Edition)
Build #PC-182.4505.26, built on September 19, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

check your Jython setup in PyCharm: 1.1.4 uses Jython 2.7.1

BTW: IMHO this should be sufficient:
Debug.setUserLogFile(b + 'logs\\' + strLogName)

works in the IDE but returns None if no bundlePath is defined.
This might be a problem with 1.1.4, when you run a .py file in PyCharm without the run support of 1.1.4.

I have to check.

matteoa (matteoa) said : #2

hello RaiMan,
I installed Jython 2.7.1 but at the time of setting it up with Pycharm as project interpreter having selected
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!!

Can you help with this problem?

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

To post a message you must log in.