تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5 الردود
16956 أدوات العرض

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

الصورة الرمزية
إهمال

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

أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

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
الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال

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.

أفضل إجابة

Try pip install --user pycups

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 24
1485
1
فبراير 16
5019
4
أبريل 19
7297
0
يناير 16
4097
0
يناير 23
3310