[MacPorts] #50360: py-spyder @2.3.7 - PyLint plugin reports "Please install pylint" in MacPorts Spyder when pylint is already installed
MacPorts
noreply at macports.org
Mon Jan 18 12:09:26 PST 2016
#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
More information about the macports-tickets
mailing list