# Correct way to print report in tryton

**URL:** https://discuss.tryton.org/t/correct-way-to-print-report-in-tryton/1245
**Category:** User
**Created:** [March 18, 2019, 5:09pm UTC](https://discuss.tryton.org/t/correct-way-to-print-report-in-tryton/1245 "2019-03-18T17:09:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [March 18, 2019, 5:09pm UTC](https://discuss.tryton.org/t/correct-way-to-print-report-in-tryton/1245/1 "2019-03-18T17:09:47Z")

</div>

Hi,

I’m installing trytond on python3.6 (before I use 3.4) and follow the steps and requirements described on [How to install Tryton — Tryton server](http://docs.tryton.org/projects/server/en/latest/topics/install.html)

All works fine at the moment, except when I try to print a report I receive this message:

Traceback (most recent call last):  
File “/opt/test/lib/python36/site-packages/trytond/wsgipy”, line 73, in dispatch\_request  
return endpoint(request, \*\*requestview\_args)  
File “/opt/test/lib/python36/site-packages/trytond/protocols/dispatcherpy”, line 46, in rpc  
request, database\_name, \*requestrpc\_params)  
File “/opt/test/lib/python36/site-packages/trytond/wsgipy”, line 44, in auth\_required  
return wrapped(\*args, \*\*kwargs)  
File “/opt/test/lib/python36/site-packages/trytond/protocols/wrapperspy”, line 122, in wrapper  
return func(request, pool, \*args, \*\*kwargs)  
File “/opt/test/lib/python36/site-packages/trytond/protocols/dispatcherpy”, line 176, in \_dispatch  
result = rpcresult(meth(\*c\_args, \*\*c\_kwargs))  
File “/opt/test/lib/python36/site-packages/trytond/report/reportpy”, line 182, in execute  
oext, content = cls\_execute(records, data, action\_report)  
File “/opt/test/lib/python36/site-packages/trytond/report/reportpy”, line 190, in \_execute  
return clsconvert(action, clsrender(action, report\_context))  
File “/opt/test/lib/python36/site-packages/trytond/report/reportpy”, line 318, in convert  
subprocesscheck\_call(cmd)  
File “/usr/lib/python36/subprocesspy”, line 291, in check\_call  
raise CalledProcessError(retcode, cmd)  
subprocessCalledProcessError: Command ‘[‘soffice’, ‘–headless’, ‘–nolockcheck’, ‘–nodefault’, ‘–norestore’, ‘–convert-to’, ‘pdf’, ‘–outdir’, ‘/tmp/trytond\_p5\_mvp5n’, ‘/tmp/trytond\_p5\_mvp5n/salesaleodt’]’ returned non-zero exit status 77

I’m not sure if I have to install an additional requirement to it.

Thanks in advance!

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [March 18, 2019, 5:35pm UTC](https://discuss.tryton.org/t/correct-way-to-print-report-in-tryton/1245/2 "2019-03-18T17:35:49Z")

</div>

Exit code 77 is normaly for permission denied. So it seems the trytond user does not have the permission to execute `soffice` which is required if you want format transformation.

---

<div class="post-metadata">

### Author: ![iehoshia](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/iehoshia/32/243_2.png) [@iehoshia](https://discuss.tryton.org/u/iehoshia)
#### Post date: [March 18, 2019, 10:57pm UTC](https://discuss.tryton.org/t/correct-way-to-print-report-in-tryton/1245/3 "2019-03-18T22:57:53Z")

</div>

Thanks for the help, it works! Change /tmp/ dir permission works.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [April 17, 2019, 10:57pm UTC](https://discuss.tryton.org/t/correct-way-to-print-report-in-tryton/1245/4 "2019-04-17T22:57:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
