← Back to team overview

credativ team mailing list archive

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

 

** Description changed:

  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
+ defined in the system: document.dir_root
  
  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
+   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

** Summary changed:

- Trunk: Problem with rrot-directory in Document-Module 
+ Trunk: Problem with root-directory in Document-Module

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

Title:
  Trunk: Problem with root-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_root

  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


References