HibiAPI
HibiAPI copied to clipboard
使用replit部署 报错
依次运行 pip install . python3 -m hibiapi 修改配置后再次运行 python3 -m hibiapi后报错

看了一下, 这个问题相当奇怪
因为HibiAPI甚至根本没有依赖aiohttp, 然而调用堆栈中却出现了
感觉是repl.it自带的依赖产生了污染
感觉是repl.it自带的依赖产生了污染
确实是这样... 而且我试了试感觉没法解决这个问题, 感觉要考虑把repl.it部署从文档里面删掉了
好怪哦 好像三天前还是四天前的版本可以
新源码可以了
还是有报错 应该不影响使用

最后那个错误再运行一次就行了,没生成配置文件的原因
最后那个错误再运行一次就行了,没生成配置文件的原因
噢是我看错了 我以为是第二次运行报的错
多次实验后我发现 直接点replit的开始按钮必报错 而手动装依赖包手动运行就不会
再编辑
手动显式添加依赖aiohttp = "^3.8.1"后正常,可能是某个包间接引入的 aiohttp 版本过低
具体原因因为我不太了解 python 就不清楚了
搜索最后一行报错信息能找到相关的一些 bug 报告 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000680
补充:
默认的版本似乎是 3.7.4,不知道是哪来的

再编辑 手动显式添加依赖
aiohttp = "^3.8.1"后正常,可能是某个包间接引入的 aiohttp 版本过低 具体原因因为我不太了解 python 就不清楚了
感觉是replit魔改了依赖解析部分(应该是为了支持他们自己的数据库SDK)
HibiAPI本身并没有间接引用aiohttp, 这是项目的依赖树, 里面是没有aiohttp的
black 22.1.0 The uncompromising code formatter.
├── click >=8.0.0
│ └── colorama *
├── mypy-extensions >=0.4.3
├── pathspec >=0.9.0
├── platformdirs >=2
├── tomli >=1.1.0
└── typing-extensions >=3.10.0.0
cashews 4.0.0 cache tools with async power
├── aioredis <3.0.0
│ ├── async-timeout *
│ └── typing-extensions *
└── diskcache >=5.0.0
click 8.0.4 Composable command line interface toolkit
└── colorama *
confuse 1.7.0 Painless YAML configuration.
└── pyyaml *
fastapi 0.71.0 FastAPI framework, high performance, easy to learn, fast to code, ready for production
├── pydantic >=1.6.2,<1.7 || >1.7,<1.7.1 || >1.7.1,<1.7.2 || >1.7.2,<1.7.3 || >1.7.3,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0
│ └── typing-extensions >=3.7.4.3
└── starlette 0.17.1
└── anyio >=3.0.0,<4
├── idna >=2.8
└── sniffio >=1.1
flake8 4.0.1 the modular source code checker: pep8 pyflakes and co
├── mccabe >=0.6.0,<0.7.0
├── pycodestyle >=2.8.0,<2.9.0
└── pyflakes >=2.4.0,<2.5.0
httpx 0.22.0 The next generation HTTP client.
├── certifi *
├── charset-normalizer *
├── h2 >=3,<5
│ ├── hpack >=4.0,<5
│ └── hyperframe >=6.0,<7
├── httpcore >=0.14.5,<0.15.0
│ ├── anyio >=3.0.0,<4.0.0
│ │ ├── idna >=2.8
│ │ └── sniffio >=1.1
│ ├── certifi *
│ ├── h11 >=0.11,<0.13
│ └── sniffio >=1.0.0,<2.0.0 (circular dependency aborted here)
├── rfc3986 >=1.3,<2
│ └── idna *
└── sniffio *
isort 5.10.1 A Python utility / library to sort Python imports.
loguru 0.6.0 Python logging made (stupidly) simple
├── colorama >=0.3.4
└── win32-setctime >=1.0.0
pycryptodomex 3.14.1 Cryptographic library for Python
pydantic 1.9.0 Data validation and settings management using python 3.6 type hinting
└── typing-extensions >=3.7.4.3
pytest 7.1.1 pytest: simple powerful testing with Python
├── atomicwrites >=1.0
├── attrs >=19.2.0
├── colorama *
├── iniconfig *
├── packaging *
│ └── pyparsing >=2.0.2,<3.0.5 || >3.0.5
├── pluggy >=0.12,<2.0
├── py >=1.8.2
└── tomli >=1.0.0
pytest-benchmark 3.4.1 A ``pytest`` fixture for benchmarking code. It will group the tests into rounds that are calibrated to the chosen timer.
├── py-cpuinfo *
└── pytest >=3.8
├── atomicwrites >=1.0
├── attrs >=19.2.0
├── colorama *
├── iniconfig *
├── packaging *
│ └── pyparsing >=2.0.2,<3.0.5 || >3.0.5
├── pluggy >=0.12,<2.0
├── py >=1.8.2
└── tomli >=1.0.0
pytest-cov 3.0.0 Pytest plugin for measuring coverage.
├── coverage >=5.2.1
│ └── tomli *
└── pytest >=4.6
├── atomicwrites >=1.0
├── attrs >=19.2.0
├── colorama *
├── iniconfig *
├── packaging *
│ └── pyparsing >=2.0.2,<3.0.5 || >3.0.5
├── pluggy >=0.12,<2.0
├── py >=1.8.2
└── tomli >=1.0.0
pytest-httpserver 1.0.4 pytest-httpserver is a httpserver for pytest
└── werkzeug >=2.0.0
python-dotenv 0.19.2 Read key-value pairs from a .env file and set them as environment variables
python-multipart 0.0.5 A streaming multipart parser for Python
└── six >=1.4.0
qrcode 7.3.1 QR Code image generator
├── colorama *
└── pillow *
requests 2.27.1 Python HTTP for Humans.
├── certifi >=2017.4.17
├── charset-normalizer >=2.0.0,<2.1.0
├── idna >=2.5,<4
└── urllib3 >=1.21.1,<1.27
sentry-sdk 1.5.8 Python client for Sentry (https://sentry.io)
├── certifi *
└── urllib3 >=1.10.0
typing-extensions 4.1.1 Backported and Experimental Type Hints for Python 3.6+
uvicorn 0.17.6 The lightning-fast ASGI server.
├── asgiref >=3.4.0
├── click >=7.0
│ └── colorama *
├── colorama >=0.4
├── h11 >=0.8
├── httptools >=0.4.0
├── python-dotenv >=0.13
├── pyyaml >=5.1
├── uvloop >=0.14.0,<0.15.0 || >0.15.0,<0.15.1 || >0.15.1
├── watchgod >=0.6
│ └── anyio >=3.0.0,<4
│ ├── idna >=2.8
│ └── sniffio >=1.1
└── websockets >=10.0
可以部署在koyeb上 但不能直接部署 要做docker镜像 以docker的方式运行
可以部署在koyeb上 但不能直接部署 要做docker镜像 以docker的方式运行
而且koyeb可以24小时运行 不用保活
可以部署在koyeb上 但不能直接部署 要做docker镜像 以docker的方式运行
而且koyeb可以24小时运行 不用保活
看了一下, 感觉很香, 但是Koyeb这个帐号我注册不上 有点麻

可以部署在koyeb上 但不能直接部署 要做docker镜像 以docker的方式运行
而且koyeb可以24小时运行 不用保活
看了一下, 感觉很香, 但是Koyeb这个帐号我注册不上 有点麻
试试github登录?用github登录好像不用过审核