[MacPorts] #50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed
#50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed -------------------------------------------------+------------------------- Reporter: nathan.artist@… | Owner: macports- Type: defect | tickets@… Priority: Normal | Status: new Component: ports | Milestone: Keywords: spyder, py-spyder, pylint, py- | Version: 2.3.3 pylint | Port: py-spyder, | py27-spyder -------------------------------------------------+------------------------- I installed Python 2.7.11 (port python27) and Spyder 2.3.7 (port py- spyder) and all its dependencies. The "Static code analysis" pane in Spyder reports "Please install pylint". But pylint 1.5.3 is already installed (port py27-pylint), and pylint is listed in the "Online help" pane (pydoc). There are symlinks at /opt/local/bin/pylint and /opt/local/bin/pylint-2.7 and both are in my PATH. Everything else except pylint appears to be working in Spyder. I reported this problem in the Spyder issue tracker and was told that this is something for the MacPorts maintainers to solve; see https://github.com /spyder-ide/spyder/issues/2933 MacPorts 2.3.3, Xcode 6.2, OS X 10.9.5 -- Ticket URL: <https://trac.macports.org/ticket/50360> MacPorts <https://www.macports.org/> Ports system for OS X
#50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed -------------------------+------------------------------------------------- Reporter: | Owner: macports-tickets@… nathan.artist@… | Status: new Type: defect | Milestone: Priority: Normal | Version: 2.3.3 Component: ports | Keywords: spyder, py-spyder, pylint, py- Resolution: | pylint Port: py-spyder, | py27-spyder | -------------------------+------------------------------------------------- Comment (by eborisch@…): Hmm. It's working for me. Two questions: 1. Output of {{{port contents py27-pylint | grep pylint-2.7}}} 2. Output of {{{os.environ['PATH']}}} run in a console within Spyder? -- Ticket URL: <https://trac.macports.org/ticket/50360#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed -------------------------+------------------------------------------------- Reporter: | Owner: macports-tickets@… nathan.artist@… | Status: new Type: defect | Milestone: Priority: Normal | Version: 2.3.3 Component: ports | Keywords: spyder, py-spyder, pylint, py- Resolution: | pylint Port: py-spyder, | py27-spyder | -------------------------+------------------------------------------------- Comment (by nathan.artist@…): Replying to [comment:1 eborisch@…]:
Hmm. It's working for me. Two questions:
1. Output of {{{port contents py27-pylint | grep pylint-2.7}}} 2. Output of {{{os.environ['PATH']}}} run in a console within Spyder?
Oh no! I discovered, after answering your second question, that pylint was not in my path (although I thought it was), and I realized how to fix the problem. Thanks for the help, and please close this ticket. I'll explain more below for anyone else who encounters this issue. 1. Output of {{{port contents py27-pylint | grep pylint-2.7}}}: {{{ /opt/local/bin/epylint-2.7 /opt/local/bin/pylint-2.7 }}} 2. Output of {{{os.environ['PATH']}}} run in a console within Spyder: {{{ '/usr/bin:/bin:/usr/sbin:/sbin' }}} The principal cause of my problem was that I was not starting Spyder from the command line. Instead, I had made the following AppleScript application (with the official Spyder icon) to start Spyder from the Mac GUI (Finder, Launchpad, Spotlight, etc.): {{{ try do shell script "/opt/local/bin/spyder > /dev/null 2>&1 &" end try }}} What I just learned (and I did not know before) is that since I was not starting Spyder from the bash command line, the environment variables specified in my ~/.bash_profile were not being passed to Spyder. The solution was to emend the AppleScript application to "export PATH": {{{ try do shell script "export PATH=/opt/local/bin:/opt/local/sbin:$PATH ; /opt/local/bin/spyder > /dev/null 2>&1 &" end try }}} -- Ticket URL: <https://trac.macports.org/ticket/50360#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed ------------------------------+------------------------ Reporter: nathan.artist@… | Owner: eborisch@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-spyder | ------------------------------+------------------------ Changes (by ryandesign@…): * cc: eborisch@…, openmaintainer@… (removed) * owner: macports-tickets@… => eborisch@… * port: py-spyder, py27-spyder => py-spyder * keywords: spyder, py-spyder, pylint, py-pylint => -- Ticket URL: <https://trac.macports.org/ticket/50360#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed ------------------------------+------------------------ Reporter: nathan.artist@… | Owner: eborisch@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: fixed | Keywords: Port: py-spyder | ------------------------------+------------------------ Changes (by eborisch@…): * status: new => closed * resolution: => fixed Comment: I was hopeful that something along those lines was the issue. Glad to see it resolved. -- Ticket URL: <https://trac.macports.org/ticket/50360#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed ------------------------------+------------------------ Reporter: nathan.artist@… | Owner: eborisch@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: py-spyder | ------------------------------+------------------------ Changes (by eborisch@…): * status: closed => reopened * resolution: fixed => -- Ticket URL: <https://trac.macports.org/ticket/50360#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed ------------------------------+------------------------ Reporter: nathan.artist@… | Owner: eborisch@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: worksforme | Keywords: Port: py-spyder | ------------------------------+------------------------ Changes (by eborisch@…): * status: reopened => closed * resolution: => worksforme Comment: Setting to worksforme (rather than fixed) because we didn't need to change anything in the Portfile. -- Ticket URL: <https://trac.macports.org/ticket/50360#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts