Title: [Bug]: Cannot install on Debian (via mu-editor) - ERROR: ResolutionImpossible · Issue #22113 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Cannot install on Debian (via mu-editor) - ERROR: ResolutionImpossible · Issue #22113 · matplotlib/matplotlib
X Title: [Bug]: Cannot install on Debian (via mu-editor) - ERROR: ResolutionImpossible · Issue #22113 · matplotlib/matplotlib
Description: Bug summary I'm trying to install mu-editor to write some code for a Pi Pico; mu-editor is based on Python, and apparently mathplotlib is a dependency. I cannot install mathplotlib on Debian 11 stable. It says dependencies freetype and p...
Open Graph Description: Bug summary I'm trying to install mu-editor to write some code for a Pi Pico; mu-editor is based on Python, and apparently mathplotlib is a dependency. I cannot install mathplotlib on Debian 11 sta...
X Description: Bug summary I'm trying to install mu-editor to write some code for a Pi Pico; mu-editor is based on Python, and apparently mathplotlib is a dependency. I cannot install mathplotlib on Debian 11...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/22113
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Cannot install on Debian (via mu-editor) - ERROR: ResolutionImpossible","articleBody":"### Bug summary\n\nI'm trying to install mu-editor to write some code for a Pi Pico; mu-editor is based on Python, and apparently mathplotlib is a dependency. I cannot install mathplotlib on Debian 11 stable. It says dependencies `freetype` and `png` are not met. Please advise.\n\n### Code for reproduction\n\n```python\nDebian 11; Python 3.9.2; `sudo apt install python3-pip`; `pip3 install mu-editor`\n```\n\n\n### Actual outcome\n\n```\r\n...\r\nCollecting matplotlib==2.2.2\r\n Downloading matplotlib-2.2.2.tar.gz (37.3 MB)\r\n |████████████████████████████████| 37.3 MB 1.9 MB/s \r\n ERROR: Command errored out with exit status 1:\r\n command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-wjosel1n/matplotlib_68b8d4a2fe554f09ab7aeb951168bcc1/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-wjosel1n/matplotlib_68b8d4a2fe554f09ab7aeb951168bcc1/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-fg_514_s\r\n cwd: /tmp/pip-install-wjosel1n/matplotlib_68b8d4a2fe554f09ab7aeb951168bcc1/\r\n Complete output (62 lines):\r\n ============================================================================\r\n Edit setup.cfg to change the build options\r\n \r\n BUILDING MATPLOTLIB\r\n matplotlib: yes [2.2.2]\r\n python: yes [3.9.2 (default, Feb 28 2021, 17:03:44) [GCC\r\n 10.2.1 20210110]]\r\n platform: yes [linux]\r\n \r\n REQUIRED DEPENDENCIES AND EXTENSIONS\r\n numpy: yes [version 1.19.5]\r\n install_requires: yes [handled by setuptools]\r\n libagg: yes [pkg-config information for 'libagg' could not\r\n be found. Using local copy.]\r\n freetype: no [The C/C++ header for freetype2 (ft2build.h)\r\n could not be found. You may need to install the\r\n development package.]\r\n png: no [pkg-config information for 'libpng' could not\r\n be found.]\r\n qhull: yes [pkg-config information for 'libqhull' could not\r\n be found. Using local copy.]\r\n \r\n OPTIONAL SUBPACKAGES\r\n sample_data: yes [installing]\r\n toolkits: yes [installing]\r\n tests: no [skipping due to configuration]\r\n toolkits_tests: no [skipping due to configuration]\r\n \r\n OPTIONAL BACKEND EXTENSIONS\r\n macosx: no [Mac OS-X only]\r\n qt5agg: no [PySide2 not found; PyQt5 not found]\r\n qt4agg: no [PySide not found; PyQt4 not found]\r\n gtk3agg: yes [installing, version 3.24.24]\r\n Traceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 1, in \u003cmodule\u003e\r\n File \"/tmp/pip-install-wjosel1n/matplotlib_68b8d4a2fe554f09ab7aeb951168bcc1/setup.py\", line 197, in \u003cmodule\u003e\r\n msg = pkg.install_help_msg()\r\n File \"/tmp/pip-install-wjosel1n/matplotlib_68b8d4a2fe554f09ab7aeb951168bcc1/setupext.py\", line 592, in install_help_msg\r\n release = platform.linux_distribution()[0].lower()\r\n AttributeError: module 'platform' has no attribute 'linux_distribution'\r\n gtk3cairo: yes [installing, version 3.24.24]\r\n gtkagg: no [Requires pygtk]\r\n tkagg: yes [installing; run-time loading from Python Tcl /\r\n Tk]\r\n wxagg: no [requires wxPython]\r\n gtk: no [Requires pygtk]\r\n agg: yes [installing]\r\n cairo: yes [installing, pycairo version 1.16.2]\r\n windowing: no [Microsoft Windows only]\r\n \r\n OPTIONAL LATEX DEPENDENCIES\r\n dvipng: no\r\n ghostscript: yes [version 9.53.3]\r\n latex: yes [version 3.14159265]\r\n pdftops: yes [version 20.09.0]\r\n \r\n OPTIONAL PACKAGE DATA\r\n dlls: no [skipping due to configuration]\r\n \r\n ============================================================================\r\n * The following required packages can not be built:\r\n * freetype, png\r\n ----------------------------------------\r\nWARNING: Discarding https://files.pythonhosted.org/packages/ec/ed/46b835da53b7ed05bd4c6cae293f13ec26e877d2e490a53a709915a9dcb7/matplotlib-2.2.2.tar.gz#sha256=4dc7ef528aad21f22be85e95725234c5178c0f938e2228ca76640e5e84d8cde8 (from https://pypi.org/simple/matplotlib/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\r\nCollecting mu-editor\r\n Downloading mu_editor-1.0.2-py3-none-any.whl (2.0 MB)\r\n |████████████████████████████████| 2.0 MB 513 kB/s \r\nCollecting pyqt5==5.11.3\r\n Downloading PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (117.8 MB)\r\n |████████████████████████████████| 117.8 MB 727 kB/s \r\nCollecting PyQtChart==5.11.3\r\n Downloading PyQtChart-5.11.3-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (1.1 MB)\r\n |████████████████████████████████| 1.1 MB 11.0 MB/s \r\nCollecting qscintilla==2.10.8\r\n Downloading QScintilla-2.10.8-5.11.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (2.6 MB)\r\n |████████████████████████████████| 2.6 MB 553 kB/s \r\nCollecting mu-editor\r\n Downloading mu_editor-1.0.1-py3-none-any.whl (1.9 MB)\r\n |████████████████████████████████| 1.9 MB 860 kB/s \r\nCollecting pyqt5==5.11.2\r\n Downloading PyQt5-5.11.2-5.11.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (117.9 MB)\r\n |████████████████████████████████| 117.9 MB 2.1 MB/s \r\nCollecting PyQtChart==5.11.2\r\n Downloading PyQtChart-5.11.2-5.11.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (1.1 MB)\r\n |████████████████████████████████| 1.1 MB 190.3 MB/s \r\nCollecting qscintilla==2.10.7\r\n Downloading QScintilla-2.10.7-5.11.1-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl (2.6 MB)\r\n |████████████████████████████████| 2.6 MB 3.3 MB/s \r\nCollecting mu-editor\r\n Downloading mu_editor-1.0.0-py3-none-any.whl (1.7 MB)\r\n |████████████████████████████████| 1.7 MB 1.9 MB/s \r\nERROR: Cannot install mu-editor==1.0.0, mu-editor==1.0.1, mu-editor==1.0.2 and mu-editor==1.0.3 because these package versions have conflicting dependencies.\r\n\r\nThe conflict is caused by:\r\n mu-editor 1.0.3 depends on matplotlib==2.2.2\r\n mu-editor 1.0.2 depends on matplotlib==2.2.2\r\n mu-editor 1.0.1 depends on matplotlib==2.2.2\r\n mu-editor 1.0.0 depends on matplotlib==2.2.2\r\n\r\nTo fix this you could try to:\r\n1. loosen the range of package versions you've specified\r\n2. remove package versions to allow pip attempt to solve the dependency conflict\r\n\r\nERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies\r\n```\n\n### Expected outcome\n\nshould install all dependencies as specified\n\n### Additional information\n\n_No response_\n\n### Operating system\n\nDebian 11 (bullseye) ; Linux aleph 5.10.0-10-amd64 #1 SMP Debian 5.10.84-1 (2021-12-08) x86_64 GNU/Linux\n\n### Matplotlib Version\n\n2.2.2\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n3.9.2\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/Sciss","@type":"Person","name":"Sciss"},"datePublished":"2022-01-05T14:26:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/22113/matplotlib/issues/22113"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7b03ad79-d201-e32d-bb7c-cea0e649328e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E012:E7D9B:14DC7DE:1B990D8:6A51B976 |
| html-safe-nonce | e0b45224c6e87a60ddfc9fc83dd75c514a64970e3b998bb8cff8e0d5a044ba95 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDEyOkU3RDlCOjE0REM3REU6MUI5OTBEODo2QTUxQjk3NiIsInZpc2l0b3JfaWQiOiIzMjU4NjMwMDkwNTYxNTM0MzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ada86bcd358e3d42e66642cea30a3e0995fef2d342f0ed115fe102367bae0197 |
| hovercard-subject-tag | issue:1094408279 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/22113/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b29dfa4113cd5735272bf096f6243002d88c53df3850e4f2ef670a41d9cd40f2/matplotlib/matplotlib/issues/22113 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b29dfa4113cd5735272bf096f6243002d88c53df3850e4f2ef670a41d9cd40f2/matplotlib/matplotlib/issues/22113 |
| og:image:alt | Bug summary I'm trying to install mu-editor to write some code for a Pi Pico; mu-editor is based on Python, and apparently mathplotlib is a dependency. I cannot install mathplotlib on Debian 11 sta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Sciss |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width