View Single Post
Old 07-05-2021, 03:58 PM   #1
lizard-cooker
Junior Member
lizard-cooker began at the beginning.
 
lizard-cooker's Avatar
 
Posts: 7
Karma: 10
Join Date: Jul 2021
Location: Israel
Device: Kindle PaperWhite 3 (2015) WiFi
porting plugin to python3 help

Hello. I was looking into porting the Xray-creator plugin to python3. So far I have only tried to edit an import in it's ui.py file, that imports the now renamed httplib. I downloaded the plugin, unzipped it and changed that single line of code. Despite the minor change, when I try to load the plugin from file it now says:
calibre.customize.InvalidPlugin: The plugin in '/home/username/Downloads/xray_creator_calibre_plugin_3_2_1.zip' is invalid. It does not contain a top-level __init__.py file
even though the plugin clearly contains one, and when I try to load the original plugin it does not give such error.
What could I possibly be missing?
lizard-cooker is offline   Reply With Quote