Closed khorkin closed 8 years ago
Hi, this issue related to seahub code seafile-pro-server-3.1.6/pro/python/seafevents/office_converter/convert.py function "is_python3()" in python 2.6.6 subprocess module doesn't has "check_output" function
I fix it by small hack:
--- convert.py-ORIG 2014-10-10 18:25:08.213195861 +0400
+++ convert.py 2014-10-10 18:11:41.559270347 +0400
@@ -34,6 +34,8 @@
output = subprocess.check_output('libreoffice --version', shell=True)
except subprocess.CalledProcessError:
return False
+ except AttributeError:
+ return False
else:
m = re.match(r'LibreOffice (\d)\.(\d)', output)
if not m:
Thanks, we'll fix this soon.
On Fri, Oct 10, 2014 at 10:26 PM, khorkin notifications@github.com wrote:
Hi, this issue related to seahub code seafile-pro-server-3.1.6/pro/python/seafevents/office_converter/convert.py function "is_python3()" in python 2.6.6 subprocess module doesn't has "check_output" function
I fix it by small hack:
--- convert.py-ORIG 2014-10-10 18:25:08.213195861 +0400 +++ convert.py 2014-10-10 18:11:41.559270347 +0400 @@ -34,6 +34,8 @@ output = subprocess.check_output('libreoffice --version', shell=True) except subprocess.CalledProcessError: return False
- except AttributeError:
- return False else: m = re.match(r'LibreOffice (\d).(\d)', output) if not m:
— Reply to this email directly or view it on GitHub https://github.com/haiwen/seafile/issues/870#issuecomment-58662847.
Hi, I have "Internal server error" when trying preview a document (.xls(x), .doc(x), .pdf, opendocument. In seafevents.log only such messages: for 3.1.6
for 3.1.3
the ccnet.log contain follow messages every 10s
With 3.1.4 (upgrade from 3.1.3 or downgrade from 3.1.6 and reinstall libreoffice) everythin work ok:
OS: CentOS 6.5(x86_64), python 2.6.6.