Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
8503 มุมมอง

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 ?

อวตาร
ละทิ้ง

add your python libraries in dependencies list.

ผู้เขียน

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

thats why in dependanices its not install in odoo.sh

คำตอบที่ดีที่สุด

Please refer to the FAQ at https://www.odoo.sh/faq#install_dependencies and the documentation at https://www.odoo.com/documentation/14.0/administration/odoo_sh/getting_started/first_module.html#use-an-external-python-library

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.
อวตาร
ละทิ้ง
ผู้เขียน

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 ตอบกลับ มุมมอง กิจกรรม
7
ก.ค. 25
50342
0
ธ.ค. 24
1230
ODOO.sh แก้ไขแล้ว
2
ต.ค. 24
13143
1
ก.ย. 24
1768
1
พ.ค. 24
3569