跳至内容
菜单
此问题已终结
3 回复
8527 查看

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

最佳答案

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.

相关帖文 回复 查看 活动
7
7月 25
50363
0
12月 24
1271
ODOO.sh 已解决
2
10月 24
13153
1
9月 24
1782
1
5月 24
3578