Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5 Răspunsuri
16876 Vizualizări

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"?

Imagine profil
Abandonează

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

Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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
Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează

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.

Cel mai bun răspuns

Try pip install --user pycups

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 24
1454
1
feb. 16
4969
4
apr. 19
7266
0
ian. 16
4058
0
ian. 23
3257