← Back to team overview

openerp-india team mailing list archive

[Bug 922083] [NEW] Trunk: Problem with rrot-directory in Document-Module

 

Public bug reported:

When I install the document-module in Version 6.1RC1, I always get the
following warning:

WARNING:document:Cannot set directory root:No such external ID currently
defined in the system: document.dir_ro

Further on, whe a PDF-document is created during a sales-proces like
confirming a sales order, ther is a problem with indexing the file
probably because of the warning above. I always get the following error:

ERROR:addons.document.content_index:Could not index file VK002.pdf (None)
Traceback (most recent call last):
  File "/home/erp/openerp_trunk/addons/document/content_index.py", line 182, in doIndex
    res = (mime, fobj.indexContent(content,filename,fname or realfname) )
  File "/home/erp/openerp_trunk/addons/document/content_index.py", line 90, in indexContent
    res = self._doIndexFile(rfname)
  File "/home/erp/openerp_trunk/addons/document/std_index.py", line 168, in _doIndexFile
    pop = Popen(['pdftotext', '-enc', 'UTF-8', '-nopgbrk', fname, '-'], shell=False, stdout=PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/922083

Title:
  Trunk: Problem with rrot-directory in Document-Module

Status in OpenERP Addons (modules):
  New

Bug description:
  When I install the document-module in Version 6.1RC1, I always get the
  following warning:

  WARNING:document:Cannot set directory root:No such external ID
  currently defined in the system: document.dir_ro

  Further on, whe a PDF-document is created during a sales-proces like
  confirming a sales order, ther is a problem with indexing the file
  probably because of the warning above. I always get the following
  error:

  ERROR:addons.document.content_index:Could not index file VK002.pdf (None)
  Traceback (most recent call last):
    File "/home/erp/openerp_trunk/addons/document/content_index.py", line 182, in doIndex
      res = (mime, fobj.indexContent(content,filename,fname or realfname) )
    File "/home/erp/openerp_trunk/addons/document/content_index.py", line 90, in indexContent
      res = self._doIndexFile(rfname)
    File "/home/erp/openerp_trunk/addons/document/std_index.py", line 168, in _doIndexFile
      pop = Popen(['pdftotext', '-enc', 'UTF-8', '-nopgbrk', fname, '-'], shell=False, stdout=PIPE)
    File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
      errread, errwrite)
    File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
      raise child_exception
  OSError: [Errno 2] No such file or directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/922083/+subscriptions


Follow ups

References