Rpi Error: cannot import name Padding
See original GitHub issueBug report
I have try several time to install Netflix addon on Raspberry pi 3 and kodi 18.x
I have install all dependencies according the doc for raspbian but I got an error message that warn of missing libraries and an
error details: cannot import name Padding
Your Environment
- Netflix add-on version: 1.6.1
- Operating system version/name: Raspbian full
- Device model: Raspberry Pi 3
Used Operating system:
- Android
- iOS
- Linux
- OSX
- Raspberry-Pi
- Windows
Describe the bug
The addon do not launch there is a alert box with messages described above. If I clic ok to close the message box kodi navigate to the video page
Expected behavior
Open the addon
Actual behavior
Error messages
Steps to reproduce the behavior
- Install dependencies
- Install addon according the doc
- Navigation to addon browser clic on Netflix addon icon
Possible fix
pip install Padding # but it’s the same
Debug log
2020-07-16 21:21:33.385 T:1622073568 ERROR: [plugin.video.netflix (0)] Traceback (most recent call last):
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/run_service.py", line 48, in init_servers
from resources.lib.services.msl.http_server import MSLTCPServer
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/http_server.py", line 32, in <module>
from .msl_handler import MSLHandler
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_handler.py", line 25, in <module>
from .msl_requests import MSLRequests
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_requests.py", line 21, in <module>
from resources.lib.services.msl.msl_request_builder import MSLRequestBuilder
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/msl_request_builder.py", line 33, in <module>
from .default_crypto import DefaultMSLCrypto as MSLCrypto
File "/home/pi/.kodi/addons/plugin.video.netflix/resources/lib/services/msl/default_crypto.py", line 28, in <module>
from Cryptodome.Util import Padding
ImportError: cannot import name Padding
Additional context or screenshots (if appropriate)
Installation
- I’m using other Netflix Repo
- I’m using a different source
Other information
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
installing python packages on raspberry pi pico - Stack Overflow
Another way I tryed to install this package was via Thonny package manager, but again, with no positive results. error: Failed to build ......
Read more >ImportError: cannot import name - Raspberry Pi Forums
The README.md file associated with the Github repository for the project specifies at step 11 that the requests module needs to be installed ......
Read more >[HOW-TO ALL PLATFORMS]Can I use Netflix on OSMC?(post 4)
Error Contents: cannot import name Padding Traceback (most recent call last): File “/home/osmc/.kodi/addons/plugin.video.netflix/service.py”, line 23, in
Read more >How to correctly install the python RPi.GPIO library
After that it was done and gave me back control. Now I type sudo python. then import RPi.GPIO. and I see ImportError: ...
Read more >AlexNet - AI Pool
3How to install Keras on Raspberry Pi? 3ImportError: cannot import name 'abs'.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
With my Raspberry Pi 3 and osmc, same bug, I solved it by executing
sudo apt install python-pycryptodome
I’m still getting the error. On Kodi 19, ran install pycryptodome. The one thing I notice is that I also have python 3.7 on and the crypto is in the python 2.7 dir.
The error is " ImportError: cannot import name ‘Padding’ from ‘Crypto.Util’ (/usr/lib/python3/dist-packages/Crypto/Util/init.py)"
What’s the solution to this?