AutoSpy
AutoSpy copied to clipboard
不论是在Docker还是在本地环境下均会出现错误
执行命令python3 auto_spy_bot.py后会出现
[root@VM-20-14-centos autospy]# pip3 install --user -U asyncio pyyaml telethon snowland-smx httpx pysocks requests WARNING: Running pip install with root privileges is generally not a good idea. Try
pip3 install --userinstead. Requirement already up-to-date: asyncio in /root/.local/lib/python3.6/site-packages Requirement already up-to-date: pyyaml in /root/.local/lib/python3.6/site-packages Requirement already up-to-date: telethon in /root/.local/lib/python3.6/site-packages Requirement already up-to-date: snowland-smx in /root/.local/lib/python3.6/site-packages Requirement already up-to-date: httpx in /root/.local/lib/python3.6/site-packages Requirement already up-to-date: pysocks in /root/.local/lib/python3.6/site-packages Requirement already up-to-date: requests in /root/.local/lib/python3.6/site-packages Requirement already up-to-date: pyaes in /root/.local/lib/python3.6/site-packages (from telethon) Requirement already up-to-date: rsa in /root/.local/lib/python3.6/site-packages (from telethon) Requirement already up-to-date: sniffio in /root/.local/lib/python3.6/site-packages (from httpx) Requirement already up-to-date: httpcore<0.15.0,>=0.14.5 in /root/.local/lib/python3.6/site-packages (from httpx) Requirement already up-to-date: certifi in /root/.local/lib/python3.6/site-packages (from httpx) Requirement already up-to-date: rfc3986[idna2008]<2,>=1.3 in /root/.local/lib/python3.6/site-packages (from httpx) Requirement already up-to-date: charset-normalizer in /root/.local/lib/python3.6/site-packages (from httpx) Requirement already up-to-date: async-generator; python_version < "3.7" in /root/.local/lib/python3.6/site-packages (from httpx) Requirement already up-to-date: idna<4,>=2.5; python_version >= "3" in /root/.local/lib/python3.6/site-packages (from requests) Requirement already up-to-date: urllib3<1.27,>=1.21.1 in /root/.local/lib/python3.6/site-packages (from requests) Requirement already up-to-date: pyasn1>=0.1.3 in /root/.local/lib/python3.6/site-packages (from rsa->telethon) Requirement already up-to-date: contextvars>=2.1; python_version < "3.7" in /root/.local/lib/python3.6/site-packages (from sniffio->httpx) Requirement already up-to-date: h11<0.13,>=0.11 in /root/.local/lib/python3.6/site-packages (from httpcore<0.15.0,>=0.14.5->httpx) Requirement already up-to-date: anyio==3.* in /root/.local/lib/python3.6/site-packages (from httpcore<0.15.0,>=0.14.5->httpx) Requirement already up-to-date: immutables>=0.9 in /root/.local/lib/python3.6/site-packages (from contextvars>=2.1; python_version < "3.7"->sniffio->httpx) Requirement already up-to-date: typing-extensions; python_version < "3.8" in /root/.local/lib/python3.6/site-packages (from anyio==3.*->httpcore<0.15.0,>=0.14.5->httpx) Requirement already up-to-date: dataclasses; python_version < "3.7" in /root/.local/lib/python3.6/site-packages (from anyio==3.*->httpcore<0.15.0,>=0.14.5->httpx) [root@VM-20-14-centos autospy]# python3 auto_spy_bot.py sys info:uname_result(system='Linux', node='VM-20-14-centos', release='3.10.0-1160.76.1.el7.x86_64', version='#1 SMP Wed Aug 10 16:21:17 UTC 2022', machine='x86_64', processor='x86_64') 系统为 x86_tx /root/.local/lib/python3.6/site-packages/requests/__init__.py:104: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (None)/charset_normalizer (3.0.0) doesn't match a supported version! RequestsDependencyWarning) No module named 'aiohttp' 缺依赖,尝试进行修复,也可手动修复: pip3 install --user python-socks[asyncio] python-socks requests[socks] pysocks requests asyncio telethon==1.24.0 pyyaml httpx anyio snowland-smx WARNING: Running pip install with root privileges is generally not a good idea. Try
pip3 install --user` instead.
Requirement already satisfied: snowland-smx in /root/.local/lib/python3.6/site-packages
Requirement already satisfied: python-socks[asyncio] in /root/.local/lib/python3.6/site-packages
Requirement already satisfied: requests[socks] in /root/.local/lib/python3.6/site-packages
Requirement already satisfied: pysocks in /root/.local/lib/python3.6/site-packages
Requirement already satisfied: asyncio in /root/.local/lib/python3.6/site-packages
Collecting telethon==1.24.0
Downloading http://mirrors.tencentyun.com/pypi/packages/f5/2a/238c14ad6032d91ff134723d48470f8c5fe521522af323fde10c34e23047/Telethon-1.24.0-py3-none-any.whl (528kB)
100% |████████████████████████████████| 532kB 14.2MB/s
Requirement already satisfied: pyyaml in /root/.local/lib/python3.6/site-packages
Requirement already satisfied: httpx in /root/.local/lib/python3.6/site-packages
Requirement already satisfied: anyio in /root/.local/lib/python3.6/site-packages
Collecting aiohttp
Downloading http://mirrors.tencentyun.com/pypi/packages/ff/4f/62d9859b7d4e6dc32feda67815c5f5ab4421e6909e48cbc970b6a40d60b7/aiohttp-3.8.3.tar.gz (7.3MB)
100% |████████████████████████████████| 7.3MB 31.5MB/s
Complete output from command python setup.py egg_info:
*********************
* Accelerated build *
*********************
Traceback (most recent call last):
File "
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ct6vlgtr/aiohttp/ Traceback (most recent call last): File "auto_spy.py", line 50, in auto_spy ModuleNotFoundError: No module named 'aiohttp'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "auto_spy_bot.py", line 28, in
应该是缺"numpy" 依赖,用pip install numpy可以装上,刚搞成功