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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
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
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.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
0
thg 9 20
|
3005 | ||
|
2
thg 3 15
|
5607 | ||
|
3
thg 6 24
|
1423 | ||
problem backup
Đã xử lý
|
|
3
thg 6 24
|
6207 | |
|
2
thg 3 24
|
2749 |
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