Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Real Estate
    • Real Estate Agency
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consulting
    • Accounting Firm
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Solar Energy Systems
    • Shoe Maker
    • Serveis de neteja
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

[11.0]How to install pycups module on odoo.sh?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
printerdependenciescupsodoo.sh
5 Respostes
18058 Vistes
Avatar
arthur

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

2
Avatar
Descartar
Jainesh Shah(Aktiv Software)

Hello @arthur,

Try once in webshell

Lindari Solutions

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

R. Bayir

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

Avatar
Raphael Lee
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

1
Avatar
Descartar
Avatar
Khoa Tran
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
0
Avatar
Descartar
Avatar
Anisha Bahukhandi
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

0
Avatar
Descartar
Benjamin

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.

Avatar
Pierra Kimathi
Best Answer

Try pip install --user pycups

-2
Avatar
Descartar
Avatar
Hassan Alamoudi (sonod.tech)
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.

-3
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
odoo.sh and dependencies
dependencies odoo.sh odoo16features
Avatar
0
de març 24
2203
how to add CUPS dependency in windows
printer report cups
Avatar
Avatar
1
de febr. 16
5661
Install Cups on Posbox
printer posbox cups Posbox
Avatar
Avatar
4
d’abr. 19
7971
Report to Printer module doesn't recognise online printer available in client machine.
printer hardware odoo8.0 cups
Avatar
0
de gen. 16
4895
Use local USB printer in Community edition POS
printer cups Community POS on-premise
Avatar
0
de gen. 23
4099
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now