[MacPorts] #38560: opencv +python27: cannot import Python module
MacPorts
noreply at macports.org
Wed Apr 3 21:21:22 PDT 2013
#38560: opencv +python27: cannot import Python module
---------------------------+------------------------
Reporter: johnsankey@… | Owner: stromnov@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.3
Resolution: | Keywords:
Port: opencv |
---------------------------+------------------------
Comment (by larryv@…):
Replying to [comment:15 johnsankey@…]:
> Further to the above: I've found that typing python at the command
> line opens MacPorts python27 that has opencv attached. However, the
> idle in that framework
> (/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/idle)
> is an alias of Apple's idle; it only deals with Apple Python27 that
> doesn't have opencv attached.
I don’t know what to make of this. Your setup sounds really broken. This
what I see:
{{{
% port -v installed python27
The following ports are currently installed:
python27 @2.7.3_1 (active) platform='darwin 12' archs='x86_64'
% ls -l
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/idle
lrwxr-xr-x 1 root wheel 5B Nov 17 22:55
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/idle@ ->
idle2
% ls -l
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/idle2
lrwxr-xr-x 1 root wheel 7B Nov 17 22:55
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/idle2@ ->
idle2.7
% ls -l
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/idle2.7
-rwxr-xr-x 1 root wheel 148B Nov 17 22:55
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/idle2.7*
% cat
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/idle2.7
#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
from idlelib.PyShell import main
if __name__ == '__main__':
main()
%
}}}
--
Ticket URL: <https://trac.macports.org/ticket/38560#comment:16>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list