xjasonlyu / jellyfin-plugin-avdc

Metadata Provider Plugin for Jellyfin/Emby.
GNU General Public License v3.0
291 stars 29 forks source link

本地安装失败 #35

Open MengChenJack opened 2 years ago

MengChenJack commented 2 years ago

采用本地安装的方式安装 输入此命令:pip3 install -r requirement.txt 提示requirement.txt不存在(将目录下的requirements.txt改名为requirement.txt解决) 接着输入:python3 main.py -p 5000 返回: Traceback (most recent call last): File "main.py", line 7, in from server import app File "/root/avdc-api/server/init.py", line 13, in import_module('.views', package=name) File "/usr/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/root/avdc-api/server/views.py", line 9, in from avdc.utility import image File "/root/avdc-api/avdc/utility/image.py", line 11, in from avdc.utility.imagesize import getSize File "/root/avdc-api/avdc/utility/imagesize.py", line 101, in def getSize(fileobj) -> tuple[int, int]: TypeError: 'type' object is not subscriptable

系统:Debian10 buster python版本:2.7.16 Jellyfin是直接apt安装的,而非使用docker

xjasonlyu commented 2 years ago

你到底是什么python版本的,试试python3.9

MengChenJack commented 2 years ago

运行此命令发现我的python版本为2.7,我试试能否安装3.9

------------------ 原始邮件 ------------------ 发件人: "xjasonlyu/jellyfin-plugin-avdc" @.>; 发送时间: 2021年8月3日(星期二) 下午2:04 @.>; @.**@.>; 主题: Re: [xjasonlyu/jellyfin-plugin-avdc] 本地安装失败 (#35)

你到底是什么python版本的,试试python3.9

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

MengChenJack commented 2 years ago

编译安装Python3.9后,输入python3.9 --version查询版本,可知当前版本为python3.9.1

再次运行:python3 main.py -p 5000

返回结果:

------------------ 原始邮件 ------------------ 发件人: "xjasonlyu/jellyfin-plugin-avdc" @.>; 发送时间: 2021年8月3日(星期二) 下午2:04 @.>; @.**@.>; 主题: Re: [xjasonlyu/jellyfin-plugin-avdc] 本地安装失败 (#35)

你到底是什么python版本的,试试python3.9

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

xjasonlyu commented 2 years ago

?

MengChenJack commented 2 years ago

是收不到图片吗? 如果我的操作出了问题请大佬指正,您只发一个问号的话,我不懂这是什么意思。 编译安装python以后仍然是同样的报错。

------------------ 原始邮件 ------------------ 发件人: "xjasonlyu/jellyfin-plugin-avdc" @.>; 发送时间: 2021年8月3日(星期二) 晚上8:45 @.>; @.**@.>; 主题: Re: [xjasonlyu/jellyfin-plugin-avdc] 本地安装失败 (#35)

?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

xjasonlyu commented 2 years ago

没有图片,你应该操作出问题了,你用issue看看。

MengChenJack commented 2 years ago

如何使用issue呢?能否给一下详细步骤? 自己去网上搜索的话不能保证结果正确,希望作者大大提供一下详细命令。

------------------ 原始邮件 ------------------ 发件人: "xjasonlyu/jellyfin-plugin-avdc" @.>; 发送时间: 2021年8月4日(星期三) 中午11:44 @.>; @.**@.>; 主题: Re: [xjasonlyu/jellyfin-plugin-avdc] 本地安装失败 (#35)

没有图片,你应该操作出问题了,你用issue看看。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

xjasonlyu commented 2 years ago

我是说你去Github的Issue就能发图片了。

MengChenJack commented 2 years ago

GitHub时断时续

------------------ 原始邮件 ------------------ 发件人: "xjasonlyu/jellyfin-plugin-avdc" @.>; 发送时间: 2021年8月4日(星期三) 晚上11:07 @.>; @.**@.>; 主题: Re: [xjasonlyu/jellyfin-plugin-avdc] 本地安装失败 (#35)

我是说你去Github的Issue就能发图片了。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.