Вот загружаю бота на хост, а мне после вызова
python bot.py
пишет это
Traceback (most recent call last):
File "/home/elez/LeafyCpRelease/bot.py", line 47, in <module>
import matplotlib.pyplot as plt
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/pyplot.py", line 56, in <module>
import matplotlib.colorbar
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/colorbar.py", line 19, in <module>
from matplotlib import _api, cbook, collections, cm, colors, contour, ticker
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/contour.py", line 15, in <module>
from matplotlib.backend_bases import MouseButton
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 46, in <module>
from matplotlib import (
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/text.py", line 16, in <module>
from .font_manager import FontProperties
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/font_manager.py", line 1582, in <module>
fontManager = _load_fontmanager()
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/font_manager.py", line 1576, in _load_fontmanager
fm = FontManager()
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/font_manager.py", line 1041, in __init__
*findSystemFonts(fontext=fontext)]:
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/font_manager.py", line 280, in findSystemFonts
installed_fonts = _get_fontconfig_fonts()
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/matplotlib/font_manager.py", line 254, in _get_fontconfig_fonts
if b'--format' not in subprocess.check_output(['fc-list', '--help']):
File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/run/__init__.py", line 145, in __new__
process = cls.create_process(command, stdin, cwd=cwd, env=env, shell=shell)
File "/home/elez/LeafyCpRelease/venv/lib/python3.10/site-packages/run/__init__.py", line 121, in create_process
shlex.split(command),
File "/usr/lib/python3.10/shlex.py", line 315, in split
return list(lex)
File "/usr/lib/python3.10/shlex.py", line 300, in __next__
token = self.get_token()
File "/usr/lib/python3.10/shlex.py", line 109, in get_token
raw = self.read_token()
File "/usr/lib/python3.10/shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
AttributeError: 'list' object has no attribute 'read'
вот что написано на 47 строчке
import matplotlib.pyplot as plt
У меня локально все норм запускается и работает, но вот при запуске на хост, надеюсь что кто-то сможет помочь