Форум сайта python.su
Доброго дня не что не предвещало беды и вот нате:
Traceback (most recent call last): File "/home/seregka/Рабочий стол/Exmoroom/Test-bot.py", line 1, in <module> from aiogram import Bot, types File "/home/seregka/.local/lib/python3.7/site-packages/aiogram/__init__.py", line 9, in <module> from . import bot File "/home/seregka/.local/lib/python3.7/site-packages/aiogram/bot/__init__.py", line 1, in <module> from . import api File "/home/seregka/.local/lib/python3.7/site-packages/aiogram/bot/api.py", line 5, in <module> import aiohttp File "/home/seregka/.local/lib/python3.7/site-packages/aiohttp/__init__.py", line 6, in <module> from .client import BaseConnector as BaseConnector File "/home/seregka/.local/lib/python3.7/site-packages/aiohttp/client.py", line 30, in <module> from yarl import URL File "/home/seregka/.local/lib/python3.7/site-packages/yarl/__init__.py", line 1, in <module> from ._url import URL, cache_clear, cache_configure, cache_info File "/home/seregka/.local/lib/python3.7/site-packages/yarl/_url.py", line 56, in <module> @rewrite_module File "/home/seregka/.local/lib/python3.7/site-packages/yarl/_url.py", line 132, in URL _QUERY_PART_QUOTER = _Quoter(safe="?/:@", qs=True, requote=False) File "yarl/_quoting.pyx", line 192, in yarl._quoting._Quoter.__init__ TypeError: __init__() got an unexpected keyword argument 'requote'
Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-6ggkumnf/multidict/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-waf3muk9-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-6ggkumnf/multidict/
Офлайн
Удали yarl. Убедись в том, что удалил его. После этого поставь yarl заново, версию 1.6.x.
Отредактировано py.user.next (Окт. 22, 2020 17:39:48)
Офлайн
py.user.nextУдалил командой
Удали yarl. Убедись том, что удалил его. После этого поставь yarl заново, версию 1.6.x.
Uninstalling yarl-1.4.2: /home/seregka/.local/lib/python3.7/site-packages/yarl-1.4.2.dist-info/INSTALLER /home/seregka/.local/lib/python3.7/site-packages/yarl-1.4.2.dist-info/LICENSE /home/seregka/.local/lib/python3.7/site-packages/yarl-1.4.2.dist-info/METADATA /home/seregka/.local/lib/python3.7/site-packages/yarl-1.4.2.dist-info/RECORD /home/seregka/.local/lib/python3.7/site-packages/yarl-1.4.2.dist-info/WHEEL /home/seregka/.local/lib/python3.7/site-packages/yarl-1.4.2.dist-info/top_level.txt /home/seregka/.local/lib/python3.7/site-packages/yarl/__pycache__/quoting.cpython-37.pyc /home/seregka/.local/lib/python3.7/site-packages/yarl/_quoting.c /home/seregka/.local/lib/python3.7/site-packages/yarl/_quoting.cpython-37m-x86_64-linux-gnu.so /home/seregka/.local/lib/python3.7/site-packages/yarl/_quoting.pyx /home/seregka/.local/lib/python3.7/site-packages/yarl/quoting.py Proceed (y/n)? y Successfully uninstalled yarl-1.4.2 seregka@Acer:~$ python3.7 -m pip uninstall yarl Cannot uninstall requirement yarl, not installed
ничего не получаетсяpython3.7 -m pip install -U yarl==1.6 Collecting yarl==1.6 Downloading https://files.pythonhosted.org/packages/fe/65/fb647e2ceac2e88bf35908180d15cd139d75b06a3d84bf8c1bbc0dc3a6d7/yarl-1.6.0-cp37-cp37m-manylinux1_x86_64.whl (258kB) 100% |████████████████████████████████| 266kB 800kB/s Collecting typing-extensions>=3.7.4; python_version < "3.8" (from yarl==1.6) Using cached https://files.pythonhosted.org/packages/60/7a/e881b5abb54db0e6e671ab088d079c57ce54e8a01a3ca443f561ccadb37e/typing_extensions-3.7.4.3-py3-none-any.whl Collecting multidict>=4.0 (from yarl==1.6) Using cached https://files.pythonhosted.org/packages/d2/5a/e95b0f9ebacd42e094e229a9a0a9e44d02876abf64969d0cb07dadcf3c4a/multidict-5.0.0.tar.gz Collecting idna>=2.0 (from yarl==1.6) Using cached https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl Building wheels for collected packages: multidict Running setup.py bdist_wheel for multidict ... error Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-du02cm0r/multidict/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpl8z5vlcwpip-wheel- --python-tag cp37: ********************** * Accellerated build * ********************** usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2 ...] or: -c --help-commands or: -c cmd --help error: invalid command 'bdist_wheel' ---------------------------------------- Failed building wheel for multidict Running setup.py clean for multidict Failed to build multidict Installing collected packages: typing-extensions, multidict, idna, yarl Running setup.py install for multidict ... error Complete output from command /usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-du02cm0r/multidict/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4e9awx1d-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: ********************** * Accellerated build * ********************** running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/multidict copying multidict/_multidict_base.py -> build/lib.linux-x86_64-3.7/multidict copying multidict/_abc.py -> build/lib.linux-x86_64-3.7/multidict copying multidict/_multidict_py.py -> build/lib.linux-x86_64-3.7/multidict copying multidict/__init__.py -> build/lib.linux-x86_64-3.7/multidict copying multidict/_compat.py -> build/lib.linux-x86_64-3.7/multidict running egg_info writing multidict.egg-info/PKG-INFO writing dependency_links to multidict.egg-info/dependency_links.txt writing top-level names to multidict.egg-info/top_level.txt reading manifest file 'multidict.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.pyc' found anywhere in distribution warning: no previously-included files found matching 'multidict/_multidict.html' warning: no previously-included files found matching 'multidict/*.so' warning: no previously-included files found matching 'multidict/*.pyd' warning: no previously-included files found matching 'multidict/*.pyd' no previously-included directories found matching 'docs/_build' writing manifest file 'multidict.egg-info/SOURCES.txt' copying multidict/__init__.pyi -> build/lib.linux-x86_64-3.7/multidict copying multidict/_multidict.c -> build/lib.linux-x86_64-3.7/multidict copying multidict/py.typed -> build/lib.linux-x86_64-3.7/multidict creating build/lib.linux-x86_64-3.7/multidict/_multilib copying multidict/_multilib/defs.h -> build/lib.linux-x86_64-3.7/multidict/_multilib copying multidict/_multilib/dict.h -> build/lib.linux-x86_64-3.7/multidict/_multilib copying multidict/_multilib/istr.h -> build/lib.linux-x86_64-3.7/multidict/_multilib copying multidict/_multilib/iter.h -> build/lib.linux-x86_64-3.7/multidict/_multilib copying multidict/_multilib/pair_list.h -> build/lib.linux-x86_64-3.7/multidict/_multilib copying multidict/_multilib/views.h -> build/lib.linux-x86_64-3.7/multidict/_multilib running build_ext building 'multidict._multidict' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/multidict x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c multidict/_multidict.c -o build/temp.linux-x86_64-3.7/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic multidict/_multidict.c:1:10: fatal error: Python.h: Нет такого файла или каталога #include "Python.h" ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-du02cm0r/multidict/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-4e9awx1d-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-du02cm0r/multidict/
Офлайн
apt install python3-dev
Офлайн
RodegastСпасибо большое помогло.
Офлайн
py.user.nextБлагодарю
Удали yarl. Убедись том, что удалил его. После этого поставь yarl заново, версию 1.6.x.
Офлайн