[ZCM] [ZC] 1693/ 2 Edit "ZODB: Strange interference with os.popen"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Mon Feb 7 11:19:57 EST 2005


Issue #1693 Update (Edit) "ZODB: Strange interference with os.popen"
 Status Pending, Database/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1693

==============================================================
= Edit - Entry #2 by tim_one on Feb 7, 2005 11:19 am

 Changes: importance (critical => medium), new comment

This isn't "critical"; downgrading to "medium".
________________________________________
= Request - Entry #1 by Anonymous User on Feb 7, 2005 9:01 am

If I open a ZODB db/conn/storage, then make a os.popen to completely unrelated dos-command, remember the open popen-file (global; I never enter something of that popen stuff into the ZODB tree), then try to close the ZODB conn/db I get a strange lock permission error. If I close the popen-stream, and then close the ZODB, its works - but that is a buggy condition!? I want the stream to be open. The stream has nothing at all to do with the ZODB stuff.
Its very spezific on os.popen - not with normal file open.

----
        z_conn=...

        cmd=r'C:\bin\gnuplot\pgnuplot.exe'
        g = os.popen(cmd, 'w')
        global glob_file
        glob_file=g
        #glob_file=open('chart.txt')
        #g.write('set data style linespoints'+'\n')
        #g.flush()

         z_conn.close()
         z_db.close()
-----
  File "C:\devel\PythonPlus\zdb.py", line 46, in close
    self.db.close()
  File "C:\PYTHON23\Lib\site-packages\ZODB\DB.py", line 321, in close
    self._storage.close()
  File "C:\PYTHON23\Lib\site-packages\ZODB\FileStorage\FileStorage.py", line 392, in close
    self._lock_file.close()
  File "C:\PYTHON23\Lib\site-packages\ZODB\lock_file.py", line 74, in close
    os.unlink(self._path)
OSError: [Errno 13] Permission denied: 'C:/devel/application/stock.dbx.lock'
>>> 
==============================================================



More information about the Zope-Collector-Monitor mailing list