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

sudo apt-get install -y unixodbc-bin
or
sudo apt-get install unixodbc

working fine in my Local Ubuntu 18.04

but not working in odoo.sh

Odoo Sh need pip for installtion but
sudo pip3 install unixodbc is not available


Any solution ?

Imagine profil
Abandonează

add your python libraries in dependencies list.

Autor

unixodbc not available in pip its available in apt...

thats why in dependanices its not install in odoo.sh

Cel mai bun răspuns

There is no way to install apt dependency via odoo module
you have to request odoo ( https://www.odoo.sh/feedback ) for add apt dependency 

ref: https://www.odoo.com/documentation/user/13.0/odoo_sh/advanced/containers.html 
"The Odoo.sh team is open to install any system packages as long as they are distributed in the official Ubuntu repositories. Leave us a feedback if you would like a package not yet installed."

Imagine profil
Abandonează
Cel mai bun răspuns

You simply define that library name in your module manifest external_dependencies.
Example:

'external_dependencies': {
        'python': ['Crypto','ringcentral'],
    },
Whenever you run Odoo.sh server with that module installed or install that module, that library will get auto installed in your environment.
Imagine profil
Abandonează
Autor

unixodbc not available in pip its available in apt...

thats why in dependanices its not install in odoo.sh

Then go to Webshell of that odoo sh repo. You can install your packages for your repo system through there.

Related Posts Răspunsuri Vizualizări Activitate
7
iul. 25
50331
0
dec. 24
1217
ODOO.sh Rezolvat
2
oct. 24
13140
1
sept. 24
1756
1
mai 24
3563