Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
trouble importing openCV on OS X
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Daniel  
View profile  
 More options Sep 16 2012, 2:28 pm
From: Daniel <daniel.ost...@mytum.de>
Date: Sun, 16 Sep 2012 11:28:51 -0700 (PDT)
Local: Sun, Sep 16 2012 2:28 pm
Subject: trouble importing openCV on OS X

Hi,

first of all thanks for the new Mac OS X installer it works totally fine
for me on 10.8 Mountain Lion.

But i just can't manage to import the openCV module. I added the directory
of the cv2.so file to the PYTHONPATH, but each time when i try " import cv2
" spyder crashes.
If I use the system's built-in python2.7 distribution it works.

Do you have any advise how to handle this problem?

Thanks in advance,
Daniel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Córdoba  
View profile  
 More options Sep 16 2012, 7:34 pm
From: Carlos Córdoba <ccordob...@gmail.com>
Date: Sun, 16 Sep 2012 18:34:21 -0500
Local: Sun, Sep 16 2012 7:34 pm
Subject: Re: [spyder] trouble importing openCV on OS X
Hi Daniel,

Probably the best way to do what you want is to change your python
interpreter instead of PYTHONPATH. To do it, you have to go to

Tools > Preferences > Console > Advanced Settings > Python executable

and use the button to the right to select the interpreter where you
installed OpenCV (which seems to be your system's python).

The reason is OpenCV is a shared library which surely is linked against
the python version where it is installed.

Cheers,
Carlos

El 16/09/12 13:28, Daniel escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel  
View profile  
 More options Sep 17 2012, 10:47 am
From: Daniel <daniel.ost...@mytum.de>
Date: Mon, 17 Sep 2012 07:47:58 -0700 (PDT)
Local: Mon, Sep 17 2012 10:47 am
Subject: Re: [spyder] trouble importing openCV on OS X

Hi Carlos,

Thanks for your advise!
Actually it worked only partly: I was able to import opencv via the console
after changing it to my systems's python (v. 2.7.2) and it works fine to
run scripts out of the editor. But if i use the console, to call a
function, Spyder crashes as soon as I type a open bracket '(' . For
example, the autocompletion works fine till 'cv.LoadImage' but as soon as I
type '(' it crashes.

I don't know if it's my fault how I installed OpenCV, but I couldn't get it
working all day long.  

But don't worry to much, since I have to start working on my project really
soon, I will try another IDE in the meantime.

But thank you very much for your help,
Daniel

Am Montag, 17. September 2012 07:34:29 UTC+8 schrieb Carlos Córdoba:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »