GithubHelp home page GithubHelp logo

Comments (5)

DoiiarX avatar DoiiarX commented on July 16, 2024

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

from nlcisbnplugin.

tychoon avatar tychoon commented on July 16, 2024

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

from nlcisbnplugin.

DoiiarX avatar DoiiarX commented on July 16, 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

from nlcisbnplugin.

tychoon avatar tychoon commented on July 16, 2024

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

from nlcisbnplugin.

DoiiarX avatar DoiiarX commented on July 16, 2024

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

releases这里啊

IMG_20240111_231441.jpg

from nlcisbnplugin.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.