Skip to content

Instantly share code, notes, and snippets.

@W360S
Created November 23, 2017 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save W360S/c6db4ed2a102a4e72e854cc59a90c9aa to your computer and use it in GitHub Desktop.
Save W360S/c6db4ed2a102a4e72e854cc59a90c9aa to your computer and use it in GitHub Desktop.
it is not that simple, Odoo code still depends on the old unmaintained python-pypdf
However, there is an easy workaround : create a fake python-pdf package and install python-pyPdf from Pipy (Python repository). All of this will be done as root :
install equivs to create fake packages and python-pipto install package from Python repository
run equivs-control python-pypdf, this will create and populate the file python-pypdf
edit the file like below (dot and space under "Description" are mandatory) :
Section: python
Package: python-pypdf
Version: 1.13
Description: fake package to provide python-pypdf
python-pypdf will need to be installed with pip
.
python-pypdf2 does not provide python-pypdf
run equivs-build python-pypdf this will create the fake package python-pypdf_1.13_all.deb
install the package with dpkg -i python-pypdf_1.13_all.deb
run pip install pyPdf
restart Odoo
@kholioeg
Copy link

Another workaround is to do the following:

apt-get install python-pypdf2

dpkg --ignore-depends=python-pypdf -i odoo_*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment