← Back to team overview

sikuli-driver team mailing list archive

[Bug 825273] Re: pymongo fail

 

Running scripts in the Sikuli IDE includes the "feature", that no
finalize actions at script end are taken (as is the fact, when running a
script in the Python/Jython interpreter). This saves the startup time of
3 - 5 seconds for running a script outside the IDE.

So you should run your scripts from command line.

You might try, to use Jython 2.5.2 (Sikuli is bundled with 2.5.1) and
see wether this changes the situation.

Generally: this is not a Sikuli problem - it is related to
Jython/MogngoDB/pymongo

** Summary changed:

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

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