Opened 11 years ago

Closed 10 years ago

#42481 closed defect (invalid)

Fresh install of pylint fails.

Reported by: codie.codemonkey@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: pylint Cc: kurthindenburg (Kurt Hindenburg)
Port: py33-pylint

Description

I've verified that I've selected python33 (port select --set python python33), installed py33-pylint (port install py33-pylint), and then run pylint. I get the following error:

Traceback (most recent call last):
  File "/usr/local/bin/pylint", line 4, in <module>
    import pkg_resources
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: pylint==0.25.1

Notice the references to 2.7 in the trace-back. Something seems amiss in the install.

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Where did /usr/local/bin/pylint come from? MacPorts installs in /opt/local, not /usr/local. Remove what you have in /usr/local and try again.

comment:2 Changed 11 years ago by codie.codemonkey@…

Good catch. I thought macports shadowed old installs by putting /opt/local early in the path in .profile or .bash_profile.

But problem solved, let's close this.

comment:3 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Cc: khindenburg@… added

Cc Me!

comment:4 Changed 10 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: invalid
Status: newclosed

closing per comment:2

Note: See TracTickets for help on using tickets.