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

Hi, 

I'm trying to install the python library Webp on Odoo sh v13. I deployed an app to transform image into WebP but the logs reported that the webp library is not installed. In my dev branch > app webp I went to the shell and write the command "pip3 install webp" and rebuild my app but same error. Can someone please help on how to install a library in Odoo sh V13? Thank you! 

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

Hello,


Try this:

For python3.6

sudo python3.6 -m pip install webp


For python3

sudo python3 -m pip install webp


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

Thanks for your reply Haresh! It seems that I cannot SUDO in Odoo sh v13. Do you have any suggestions on how to proceed? thanks again  

الصورة الرمزية
إهمال
الكاتب

Added a requirements.txt in the root directory and incremented the version in manifest.py. Worked this way

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
سبتمبر 21
5323
6
أغسطس 18
18094
1
مارس 15
26225
0
مارس 25
1328
4
أبريل 24
174184