#38560: opencv +python27: cannot import Python module ---------------------------+-------------------------------- Reporter: johnsankey@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: opencv | ---------------------------+-------------------------------- Changes (by larryv@…): * cc: jwa@… (added) * owner: stromnov@… => macports-tickets@… Comment: Replying to [comment:19 johnsankey@…]:
Port select is a separate issue - I've already been down that route: it gets the first python27 in PATH.
No, it gets MacPorts’ Python 2.7. PATH has nothing to do with it. Of course, all `port select` does is create a symlink at `/opt/local/bin/python` (assuming the default MacPorts prefix). As usual, your PATH has to be set up properly to catch it.
This will be about the 4th time I've rebuilt python if I do :-(
I can only conclude that your setup is broken. Try posting to the [[MailingLists|macports-users]] mailing list; maybe someone there can provide some insight. If not, then you might try [http://guide.macports.org/chunked/installing.macports.uninstalling.html reinstalling MacPorts].
Might part of this be a conflict with MacPorts WINE, which also imports and uses python? It's the only other MacPorts thing I've got in my system, and I'll bet it doesn't use Idle.
`wine` doesn’t touch `python27`. -- Ticket URL: <https://trac.macports.org/ticket/38560#comment:20> MacPorts <http://www.macports.org/> Ports system for OS X