Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

本地安装失败 #35

Open
MengChenJack opened this issue Aug 3, 2021 · 9 comments
Open

本地安装失败 #35

MengChenJack opened this issue Aug 3, 2021 · 9 comments

Comments

@MengChenJack
Copy link

采用本地安装的方式安装
输入此命令: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
Copy link
Owner

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

@MengChenJack
Copy link
Author

MengChenJack commented Aug 3, 2021 via email

@MengChenJack
Copy link
Author

MengChenJack commented Aug 3, 2021 via email

@xjasonlyu
Copy link
Owner

?

@MengChenJack
Copy link
Author

MengChenJack commented Aug 4, 2021 via email

@xjasonlyu
Copy link
Owner

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

@MengChenJack
Copy link
Author

MengChenJack commented Aug 4, 2021 via email

@xjasonlyu
Copy link
Owner

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

@MengChenJack
Copy link
Author

MengChenJack commented Aug 5, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants