Ошибка при установке mu-editor в Линукс
03.09.2020, 08:55. Показов 4926. Ответов 21
Программа на самом деле для Python 3.6 максимум, как написано на pypi.org, а в системе по умолчанию Python 3.8.2. Пайтон 3.6 установил дополнительно, после этого попробовал переустановить. Как прикрепить установку к Пайтон 3.6, пока что не изучил.
Вот что потом увидел (это наверное к делу не относится, так как возможн по поводу запуска с флэшки):
On Linux, in order for Mu to work with the MicroPython based devices you need to ensure you add yourself to the correct permissions group (usually the dialout or uucp groups). Also make sure that your distribution automatically mounts flash devices, or make sure to mount them manually.
|
| Code | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
| root@PC:/home/ia# pip install mu-editor
Collecting mu-editor
Using cached mu_editor-1.0.3-py3-none-any.whl (2.0 MB)
Collecting pyflakes==2.0.0
Using cached pyflakes-2.0.0-py2.py3-none-any.whl (53 kB)
Collecting nudatus>=0.0.3
Downloading nudatus-0.0.4.tar.gz (4.5 kB)
Requirement already satisfied: pyqt5==5.14.1 in /usr/lib/python3/dist-packages (from mu-editor) (5.14.1)
Collecting matplotlib==2.2.2
Using cached matplotlib-2.2.2.tar.gz (37.3 MB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-q974g_iq/matplotlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-q974g_iq/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-xzjac8zq
cwd: /tmp/pip-install-q974g_iq/matplotlib/
Complete output (63 lines):
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [2.2.2]
python: yes [3.8.2 (default, Jul 16 2020, 14:00:26) [GCC
9.3.0]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [not found. pip may install it below.]
install_requires: yes [handled by setuptools]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
png: no [pkg-config information for 'libpng' could not
be found.]
qhull: yes [pkg-config information for 'libqhull' could not
be found. Using local copy.]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]
OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: yes [installing, Qt: 5.12.8, PyQt: 5.14.1; PySide2
not found]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: yes [installing, version 3.20.24]
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-q974g_iq/matplotlib/setup.py", line 197, in <module>
msg = pkg.install_help_msg()
File "/tmp/pip-install-q974g_iq/matplotlib/setupext.py", line 592, in install_help_msg
release = platform.linux_distribution()[0].lower()
AttributeError: module 'platform' has no attribute 'linux_distribution'
gtk3cairo: yes [installing, version 3.20.24]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: yes [installing, pycairo version 1.16.2]
windowing: no [Microsoft Windows only]
OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: yes [version 9.50]
latex: no
pdftops: yes [version 0.86.1]
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
============================================================================
* The following required packages can not be built:
* freetype, png
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
root@PC:/home/ia# |
|
Добавлено через 3 минуты
https://pypi.org/project/matplotlib/ другая версия уже есть. То, что указано, что отсутствует, это надо сначала все вручную установить?
Добавлено через 1 минуту
| Code | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| root@PC:/home/ia# pip install matplotlib
Collecting matplotlib
Downloading matplotlib-3.3.1-cp38-cp38-manylinux1_x86_64.whl (11.6 MB)
|████████████████████████████████| 11.6 MB 1.6 MB/s
Requirement already satisfied: pillow>=6.2.0 in /usr/lib/python3/dist-packages (from matplotlib) (7.0.0)
Collecting kiwisolver>=1.0.1
Downloading kiwisolver-1.2.0-cp38-cp38-manylinux1_x86_64.whl (92 kB)
|████████████████████████████████| 92 kB 10 kB/s
Collecting python-dateutil>=2.1
Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
|████████████████████████████████| 227 kB 2.5 MB/s
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3
Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
|████████████████████████████████| 67 kB 481 kB/s
Collecting cycler>=0.10
Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting numpy>=1.15
Downloading numpy-1.19.1-cp38-cp38-manylinux2010_x86_64.whl (14.5 MB)
|████████████████████████████████| 14.5 MB 78 kB/s
Collecting certifi>=2020.06.20
Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
|████████████████████████████████| 156 kB 1.2 MB/s
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.1->matplotlib) (1.14.0)
Installing collected packages: kiwisolver, python-dateutil, pyparsing, cycler, numpy, certifi, matplotlib
Attempting uninstall: certifi
Found existing installation: certifi 2019.11.28
Uninstalling certifi-2019.11.28:
Successfully uninstalled certifi-2019.11.28
Successfully installed certifi-2020.6.20 cycler-0.10.0 kiwisolver-1.2.0 matplotlib-3.3.1 numpy-1.19.1 pyparsing-2.4.7 python-dateutil-2.8.1
root@PC:/home/ia# |
|
---
Добавлено через 3 минуты
Ошибка все равно повторяется | Code | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
| root@PC:/home/ia# pip install mu-editor
Collecting mu-editor
Using cached mu_editor-1.0.3-py3-none-any.whl (2.0 MB)
Collecting appdirs>=1.4.3
Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting pigpio>=1.40.post1
Using cached pigpio-1.46-py2.py3-none-any.whl (39 kB)
Collecting qscintilla==2.11.4
Using cached QScintilla-2.11.4-1-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl (1.9 MB)
Collecting matplotlib==2.2.2
Using cached matplotlib-2.2.2.tar.gz (37.3 MB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t9xsj8tl/matplotlib/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t9xsj8tl/matplotlib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-4hrtyh76
cwd: /tmp/pip-install-t9xsj8tl/matplotlib/
Complete output (63 lines):
============================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [2.2.2]
python: yes [3.8.2 (default, Jul 16 2020, 14:00:26) [GCC
9.3.0]]
platform: yes [linux]
REQUIRED DEPENDENCIES AND EXTENSIONS
numpy: yes [version 1.19.1]
install_requires: yes [handled by setuptools]
libagg: yes [pkg-config information for 'libagg' could not
be found. Using local copy.]
freetype: no [The C/C++ header for freetype2 (ft2build.h)
could not be found. You may need to install the
development package.]
png: no [pkg-config information for 'libpng' could not
be found.]
qhull: yes [pkg-config information for 'libqhull' could not
be found. Using local copy.]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
toolkits: yes [installing]
tests: no [skipping due to configuration]
toolkits_tests: no [skipping due to configuration]
OPTIONAL BACKEND EXTENSIONS
macosx: no [Mac OS-X only]
qt5agg: yes [installing, Qt: 5.12.8, PyQt: 5.14.1; PySide2
not found]
qt4agg: no [PySide not found; PyQt4 not found]
gtk3agg: yes [installing, version 3.20.24]
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-t9xsj8tl/matplotlib/setup.py", line 197, in <module>
msg = pkg.install_help_msg()
File "/tmp/pip-install-t9xsj8tl/matplotlib/setupext.py", line 592, in install_help_msg
release = platform.linux_distribution()[0].lower()
AttributeError: module 'platform' has no attribute 'linux_distribution'
gtk3cairo: yes [installing, version 3.20.24]
gtkagg: no [Requires pygtk]
tkagg: yes [installing; run-time loading from Python Tcl /
Tk]
wxagg: no [requires wxPython]
gtk: no [Requires pygtk]
agg: yes [installing]
cairo: yes [installing, pycairo version 1.16.2]
windowing: no [Microsoft Windows only]
OPTIONAL LATEX DEPENDENCIES
dvipng: no
ghostscript: yes [version 9.50]
latex: no
pdftops: yes [version 0.86.1]
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
============================================================================
* The following required packages can not be built:
* freetype, png
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
root@PC:/home/ia# |
|
0
|