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

Hello, i want to do excel import. 

I've got the error which says "xlrd is required", so i enter pip install xlrd. I checked the version with python -c "import xlrd; print xlrd.__VERSION__" and it tell me 1.2.0.

I restarted odoo with "sudo systemctl restart odoo" and the error "xlrd required" is still here...


I've seen here-> https://www.odoo.com/fr_FR/forum/aide-1/question/error-import-excel-files-to-odoo-xlsx-file-requires-python-module-xlrd-0-8-109663  that i can copy the files in the addons folder, 

so i download the tar.gz, transfered it to my server in /tmp, extracted it to the folder xlrd-1.2.0/

and i tried to copy "xlrd-1.2.0/" and "xlrd-1.2.0/xlrd" in in odoo/addons. 

I restarted odoo many times but still not work...

I'm on Odoo 11

Can someone help me please ?

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

You should check the Python version of your xlrd.

On Ubuntu 18.04 I install it like this:

sudo -H pip3 install xlrd


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

I don't know if it's the pip3 besides pip, but it works !

pip does install the Python 2 version by default.

الكاتب

Thank you !

المنشورات ذات الصلة الردود أدوات العرض النشاط
4
ديسمبر 23
190247
1
نوفمبر 22
2561
7
يناير 24
15190
0
فبراير 17
3260
0
مارس 15
3938