This question has been flagged
2 Replies
33593 Views

Can anyone help me to resolve this? I tried installing wkhtml and added syst6em parameter, but still getting the same error. Any help would be greatly appreciated.

Thank You.

 

Avatar
Discard

Please check your system contains wkhtmltopdf. If it is not then install it.

Author

Hello Remiya, I have installed it using http://fedir.github.io/web/blog/2013/09/25/install-wkhtmltopdf-on-ubuntu/ but still i'm getting the same error.

Author

under this post Luke has been posted the real solution... @Luke Thank You... :)

Author Best Answer

@ Luke, about the answer u have posted, in there I have tried the solution but still getting the same error. :( 

Avatar
Discard

try the following to remove any apt-get packages (as they are currently an older version not suitable for the Odoo 8.0 branch): sudo apt-get --purge remove wkhtmltopdf - y sudo wget http://jaist.dl.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb sudo cp /usr/local/bin/wkhtmltopdf /usr/bin sudo cp /usr/local/bin/wkhtmltoimage /usr/bin post back if there are any errors in the process (eg. wget fails). Odoo v8.0 (RC1) currently seems to require Wkhtmltopdf 0.12.1 so a manual download and dpkg is required. If this fails please let me know what distribution you are using (eg. Ubuntu, Centos, etc.) and what version (eg. Ubuntu 14.04 server 64 bit). As the issue may be due to the fact the package you are trying to install is unsuitable for the system you have installed it on.

Author

@Luke, Thank you for ur help. But still i'm getting error while trying to print "Sales Orders". here is machine spec: Ubuntu 13.04 (GNU/Linux 3.8.0-29-generic x86_64)

try the following to remove any apt-get packages (as they are currently an older version not suitable for the Odoo 8.0 branch): sudo apt-get --purge remove wkhtmltopdf - y sudo rm -rf /usr/bin/wkhtmltopdf sudo rm -rf /usr/bin/wkhtmltoimage sudo rm -rf wkhtmltox-0.12.1_linux-trusty-amd64.deb sudo wget http://jaist.dl.sourceforge.net/project/wkhtmltopdf/0.12.2-dev/wkhtmltox-0.12.2-6a13a51_linux-precise-amd64.deb sudo dpkg -i wkhtmltox-0.12.2-6a13a51_linux-precise-amd64.deb sudo cp /usr/local/bin/wkhtmltopdf /usr/bin sudo cp /usr/local/bin/wkhtmltoimage /usr/bin This wkhtmltopdf version is designed for an earlier version of Ubuntu (12.04 - Precise Pangolin).

Author

@Luke I tried the it with ur latest solution also but getting the same error :( ... is that need to chage the ownership of " /usr/bin/wkhtmltopdf " this to openerp user? currently it's under root.

Author

Hi Madura, Are you on a clean Ubuntu install, or has this Ubuntu install been used for other purposes previously? There are a huge number of factors that could be causing these issues so therefore I would suggest that you do the following: 1) download and install a copy of Ubuntu 14.04 server edition (http://releases.ubuntu.com/14.04/). Only run the setup and then go to step #2 when you have a command prompt. 2) wget https://raw.githubusercontent.com/lukebranch/openerp-install-scripts/master/odoo-saas4/ubuntu-14-04/odoo_install.sh 3) sudo sh odoo_install.sh 4) the script will then run and install all the required dependencies and setup everything for you. Once it is complete follow the instructions on the screen and reboot the machine. Once you reboot you should be able to access Odoo on your locale (ie. Ubuntu install) by typing into a browser "0.0.0.0:8072" and you should be able to see it on the local network as "http://[insert_your_server_ip_here]:8072".

Author

Hi Luke ... Thank you very much for your help.... :) it worked and it saved my day. This is the real solution for the "wkhtmltopdf" problem...:) thank you again..:)

Best Answer

Please refer to this post:

https://www.odoo.com/forum/Help-1/question/How-to-add-wkhtmltopdf-as-a-sytem-parameter-in-OpenERP-56486#answer-56501

Avatar
Discard