Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calibre版本7.2安装失败 #1

Closed
lvxiaohao opened this issue Dec 15, 2023 · 5 comments
Closed

Calibre版本7.2安装失败 #1

lvxiaohao opened this issue Dec 15, 2023 · 5 comments
Labels
good first issue Good for newcomers

Comments

@lvxiaohao
Copy link

calibre, version 7.2.0
错误: 未处理的异常: InvalidPlugin:The plugin in 'D:\Download\NLCISBNPlugin-1.0.0.zip' is invalid. It does not contain a top-level init.py file

calibre 7.2 embedded-python: True
Windows-10-10.0.22635-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22635')
Python 3.11.5
Windows: ('10', '10.0.22635', 'SP0', 'Multiprocessor Free')
Interface language: zh_CN
Traceback (most recent call last):
File "calibre\gui2\preferences\plugins.py", line 325, in add_plugin
File "calibre\customize\ui.py", line 513, in add_plugin
File "calibre\customize\ui.py", line 64, in load_plugin
File "calibre\customize\zipplugin.py", line 298, in load
File "calibre\customize\zipplugin.py", line 393, in _locate_code
calibre.customize.InvalidPlugin: The plugin in 'D:\Download\NLCISBNPlugin-1.0.0.zip' is invalid. It does not contain a top-level init.py file

@DoiiarX
Copy link
Owner

DoiiarX commented Dec 15, 2023

calibre, version 7.2.0 错误: 未处理的异常: InvalidPlugin:The plugin in 'D:\Download\NLCISBNPlugin-1.0.0.zip' is invalid. It does not contain a top-level init.py file

calibre 7.2 embedded-python: True Windows-10-10.0.22635-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.22635') Python 3.11.5 Windows: ('10', '10.0.22635', 'SP0', 'Multiprocessor Free') Interface language: zh_CN Traceback (most recent call last): File "calibre\gui2\preferences\plugins.py", line 325, in add_plugin File "calibre\customize\ui.py", line 513, in add_plugin File "calibre\customize\ui.py", line 64, in load_plugin File "calibre\customize\zipplugin.py", line 298, in load File "calibre\customize\zipplugin.py", line 393, in _locate_code calibre.customize.InvalidPlugin: The plugin in 'D:\Download\NLCISBNPlugin-1.0.0.zip' is invalid. It does not contain a top-level init.py file

解决办法
image
重新在这里下载并导入。

问题原因
这个问题是由于github下载的源码包含一个仓库名+版本的文件夹,而不是直接解压就是__init__.py文件导致的。

正确的压缩包
image

错误的压缩包
image

@DoiiarX DoiiarX added the good first issue Good for newcomers label Dec 15, 2023
@DoiiarX DoiiarX closed this as completed Dec 15, 2023
@tychoon
Copy link

tychoon commented Jan 5, 2024

找不到zip文件下载的地方啊……从这里选zip下载的安装插件时就报上面的错,下载v1.0.0的也报上面的错,到底怎么下载才是正确的文件?为什么非要搞到那么复杂一定要技术佬才会用呢?直接提供个正确的zip文件有多难呢?
截屏2024-01-05 11 27 41

@DoiiarX
Copy link
Owner

DoiiarX commented Jan 5, 2024

找不到zip文件下载的地方啊……从这里选zip下载的安装插件时就报上面的错,下载v1.0.0的也报上面的错,到底怎么下载才是正确的文件?为什么非要搞到那么复杂一定要技术佬才会用呢?直接提供个正确的zip文件有多难呢?
截屏2024-01-05 11 27 41

一般在releases那里下载打包好的文件,你下载的zip文件的地方是用来clone代码的。

你直接从下面的地址下载吧。

https://github.com/DoiiarX/NLCISBNPlugin/releases/download/nlcisbn-2024-01-04-1028/NLCISBNPlugin.zip

@tychoon
Copy link

tychoon commented Jan 9, 2024

谢大佬提供下载链接!顺便问一句,正常下载的话在哪里找呢?

@DoiiarX
Copy link
Owner

DoiiarX commented Jan 11, 2024

谢大佬提供下载链接!顺便问一句,正常下载的话在哪里找呢?

releases这里啊

IMG_20240111_231441.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants