← Back to team overview

sikuli-driver team mailing list archive

[Bug 825273] Re: X-1.0rc2: IDE: using MongoDB - pymongo: connections not closed

 

- Jython not closing connection
What about this:
https://github.com/mongodb/mongo-python-driver/pull/14

- using Jython 2.5.2

3 possibilities:

--- complex: building Sikuli from source integrating python 2.5.2 (I did
it for Mac, works)

--- medium: unjar sikuli-script.jar, replace jython.jar and Lib directory, rejar
--- easy: use Jython directly to run the contained .py in a .sikuli:
- use the environment variables CLASSPATH and JYTHONPATH
- set CLASSPATH=absolute-path-to-sikuli-script.jar (wherever it might be stored, does not matter where)
- set JYTHONPATH=absolute-path-to-Jython\Lib;absolute-path-to-Jython\sikuli-script.jar\Lib
- run the Sikuli script using the jython.bat path-to-script-folder\scriptname.py
- you have to somehow set the image path
(see: https://answers.launchpad.net/sikuli/+question/141302)

 (see:

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/825273

Title:
  X-1.0rc2: IDE: using MongoDB - pymongo: connections not closed

Status in Sikuli:
  New

Bug description:
  Hi. I tried to write a sikuli script that takes & saves data to mongodb using pymongo.
  But sikuli raises non-blocking socket exception when pymongo trying to process data, especially if I call "save" method.
  I tried to fix this by connecting & disconnecting every time then I needed to get/change data.
  Also, I noticed that sikuli doesn't close the connections to mongo ( even if i call disconnect() method ), so after few minutes of working the amount of unclosed connections growes up very fast. MongoDB starts to deny all incoming connections and freezes. When I close Sikuli IDE, all those connections are shutting down, so MongoDB starts work correctly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/825273/+subscriptions


References