{"id":1826,"date":"2019-05-31T19:39:16","date_gmt":"2019-06-01T03:39:16","guid":{"rendered":"http:\/\/wonghoi.humgar.com\/blog\/?p=1826"},"modified":"2021-10-25T00:39:05","modified_gmt":"2021-10-25T08:39:05","slug":"spyder-on-mx-linux","status":"publish","type":"post","link":"https:\/\/wonghoi.humgar.com\/blog\/2019\/05\/31\/spyder-on-mx-linux\/","title":{"rendered":"Spyder on MX Linux"},"content":{"rendered":"\n<p>This is another example that non-commercial (open-source) Linux\/Python does not have a feel of a finished product: things break out of the box when installed fresh, in the most simple, expected ways, without any tweaks.<\/p>\n\n\n\n<p>Again, don&#8217;t get me wrong, open-source free software are good stuff (more modern concepts and people working on it for free), but it&#8217;s never going to beat professional companies (like Microsoft\/MATLAB) in how well-funded they are so they can maintain their software and the user experience using their profits. So far, users are still expected to put up with a bunch of unjustifiably unnecessary work to get to where they want to go with community-maintained software like Linux\/Python.<\/p>\n\n\n\n<p>This time I&#8217;m installing Spyder on MX Linux. Look at how many damn hoops I have to jump to get Spyder 3 to function properly there:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>I installed python3-spyder from MX Package Installer<\/li><li>Spyder complained about <a href=\"http:\/\/github.com\/spyder-ide\/spyder\/issues\/2084\">missing rope<\/a>\u00a0on start<\/li><li>Installed python-rope on MX Package Installer. The complaint still won&#8217;t go away<\/li><li>I tried follow the instruction <code>sudo pip3 install rope_py3k<\/code> \u00a0and realized pip3 was not installed already with the Python that came with Spyder! (Didn&#8217;t have the problem with the Windows counterpart).<\/li><li>Installed python3-pip from MX Package Installer.<\/li><li>Came back and run\u00a0<code>pip3 install rope_py3k<\/code>. It choked at <code>\"Command 'python\u00a0 setup.oy egg_info' failed with error code 1 in \/tmp\/pip-build-0nnknjhi\/rope-py3k\"<\/code>. Again, <a href=\"https:\/\/github.com\/facebook\/prophet\/issues\/418\">known<\/a> problem.<\/li><li>Followed the solution in the comments\u00a0<code>pip3 install --upgrade setuptools<\/code><\/li><li>Then come back and run\u00a0<code>pip3 install rope_py3k<\/code>\u00a0again. It says<code> \"Failed building wheel for rope-py3k\"<\/code> in between, but nonetheless I&#8217;ll try to move on since it says <code>\"Successfully installed rope-py3k-0.9.4.post1\"<\/code><\/li><\/ol>\n\n\n\n<p>Then Spyder launch uneventfully.<\/p>\n\n\n\n<p>These are not design decisions (sacrificing one quality for another), but inter-operability wrinkles that nobody are paid enough to do the grunt-work babysitting it. So if your business profits heavily from it, consider sponsoring the developers!<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>It&#8217;s also slightly annoying that the version of Spyder maitained in MX Linux&#8217;s most recent repository is a little older than what&#8217;s actually available (3.1.3+dfsg1-3 instead of 3.3.4).<\/p>\n\n\n\n<p>At first I followed instructions to have PIP to update it: <code class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">pip3 install -U spyder<\/code>, but it doesn&#8217;t work. I got a lot of &#8220;failed building wheel for (package)&#8221; error.<\/p>\n\n\n\n<p>I also realized the Python that came with it is 3.5, not the 3.7(.3) I had in Windows. I checked the MX package manager and indeed it stopped at 3.5.&nbsp;After some searching, I learned the base system package was frozen in <a href=\"https:\/\/forum.mxlinux.org\/viewtopic.php?t=47462\">2016<\/a>! MX Test Repo (at your own risk) has Python 3.7 though.<\/p>\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_1826\" class=\"pvc_stats all  \" data-element-id=\"1826\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>This is another example that non-commercial (open-source) Linux\/Python does not have a feel of a finished product: things break out of the box when installed fresh, in the most simple, expected ways, without any tweaks. Again, don&#8217;t get me wrong, &hellip; <a href=\"https:\/\/wonghoi.humgar.com\/blog\/2019\/05\/31\/spyder-on-mx-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_1826\" class=\"pvc_stats all  \" data-element-id=\"1826\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/wonghoi.humgar.com\/blog\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"template-fullwidth.php","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[39,6,34],"tags":[],"class_list":["post-1826","post","type-post","status-publish","format-standard","hentry","category-linux","category-note-to-self","category-python"],"_links":{"self":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/comments?post=1826"}],"version-history":[{"count":14,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1826\/revisions"}],"predecessor-version":[{"id":2915,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/posts\/1826\/revisions\/2915"}],"wp:attachment":[{"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/media?parent=1826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/categories?post=1826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wonghoi.humgar.com\/blog\/wp-json\/wp\/v2\/tags?post=1826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}