This question has been flagged
5 Replies
14127 Views

Hello, I have install modules "base_report_to_printer" and "remote_report_to_printer" and have successfully installed these modules running Odoo Locally. On Odoo.sh, however, I can't install these modules and get the error:

"Unable to install module "base_report_to_printer" because an external dependency is not met: No module named cups".

I have try to place the module "pycups" on my requirements.txt file, but the dependecy installation fails on Odoo.sh, but I can find no errors related to pycups on pip.log file.

Have anyone being  through this and knows how to properly install the dependencies from "base_report_to_printer" and "remote_report_to_printer"?

Avatar
Discard

Hello @arthur,

Try once in webshell

Did you manage to resolve this? I am encountering the same issue.

I have the same problem. Non of the action solved. It seems I have installed everything above. But I still get the same error. 

Unable to install module "base_report_to_printer" because an external dependency is not met: Python library not installed: pycups

Best Answer

In case someone comes across this, the answer is that this is not possible. The module  base_report_to_printer  requires  that  the  binary  dependency  "cups"  is  installed  on  the  server.  Odoo.sh  allows  you  to  install  python  dependencies , but not binary dependencies. Further explanation is on the repo: https://github.com/OCA/report-print-send/issues/176


More information on Odoo.sh and apt binary packages here: https://www.odoo.com/forum/help-1/how-i-can-install-apt-library-in-odoo-sh-176308

Avatar
Discard
Best Answer

Hi Arthur,

You should put cups module in your requirements.txt file, not pycups.

Put the below line, it should work

cups==0.0.6
Avatar
Discard
Best Answer

Hello Arthur, 

You can use apt-get install libcups2-dev command in order to install pycups library

There is an another way too; using GIT you can install library

git clone https://github.com/OpenPrinting/pycups.git -b python3

cd pycups

python3 setup.py install

Thanks

Anisha Bahukhandi

Technical Content Writer

Avatar
Discard

Hello Anisha

Thanks for your instructions, but how is it possible to use the command "apt-get install libcups2-dev command" on odoo.sh? Since I don't have root access, I get the following error:

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Do you have any ideas?

Thanks a lot for your help.

Best Answer

Try pip install --user pycups

Avatar
Discard
Best Answer

try install python-pip

use:

sudo apt install python-pip

don't forget install 

sudo apt-get install cups
sudo apt-get install libcups2-dev
sudo apt-get install python3-dev
After do the above steps try install pycups.
use:
sudo pip install pycups
it will be work.

Avatar
Discard