콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
7671 화면

ImportError: cannot import name 'utils' from 'PyPDF2' (C:\Users\USER\AppData\Local\Programs\Python\Python39\lib\site-packages\PyPDF2\_init_.py)


I am getting this error, how can I solve it?

아바타
취소

What Odoo you are using? Odoo require PyPDF2==1.26.0 for Odoo 15 and Odoo 16

작성자

I am using odoo 15, in the requirements txt file the PYPDF2 is already 1.26.0

베스트 답변

Well here you have to follow some steps to prevent such errors during runtime.

https://onlineweblearns.blogspot.com/2022/09/setup-odoo-v15-in-windows-10-with-easy.html

https://googlyengineer.blogspot.com/2021/08/how-to-setup-odoo-on-macbook-pro.html

https://www.youtube.com/playlist?list=PLAR8TpPnVeTQYIgQ8aLhlmN4--dLvqS1P

Thanks

아바타
취소
베스트 답변

I have a new installation (1 week, Linux) and had the same problem. I checked the PyPDF2 folder and found out that there is a "_utils.py" file, but no "utils.py" one. Just in case, I made a copy of the first one, renamed it as the second one, and voilá. It works now.

아바타
취소
관련 게시물 답글 화면 활동
0
9월 20
3005
2
3월 15
5607
3
6월 24
1432
problem backup 해결 완료
3
6월 24
6208
2
3월 24
2754