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

I am trying to get the odoo local host server to work. i am getting the error as: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 97: invalid start byte.

The pre installations are already done the postgres, pgadmin, newest python version. i am using pycharm in windows. i think the erros is due to the psycopg2 wiht the postgres server. any one had the same issue??


الصورة الرمزية
إهمال

Hi, did you find the solution to this problem?


أفضل إجابة

I'm pretty sure the issue is due to the browser cache. Try opening it in a private/incognito window to confirm.  

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

i think the issue in the postgres user try to alter role utf8 to user by the below (run it from psql shell)

ALTER ROLE user SET client_encoding TO 'utf8';

change user with your postgres user

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

I'm setting up odoo 18 on localhost and I encountered this error. Your solution worked very well for me. Thank you!

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

There was no easy fix. It seems that running the odoo server locally in windows is a huge gamble, dependency-version-wise. 


Therefore I am using wsl now at the tradeoff of slightly worse PyCharm integration.

This Video was great help: https://www.youtube.com/watch?v=4wpaTRaOwJo


Best 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
سبتمبر 21
4379
1
يوليو 25
1473
1
يونيو 24
1979
2
أبريل 24
10673
0
يناير 24
2273