I don't know too much about the sensitivities with respect to Windows. Maybe you could try to see if there is any difference between the PYTHONPATH as seen from Spyder, and the other python consoles? Something like: >>> import sys >>> for k in sys.path: print k
For my Linux package, I have following opencv components exposed to a PYTHONPATH aware folder: /usr/lib/python2.7/site-packages/cv.py /usr/lib/python2.7/site-packages/cv2.so Not sure what is going on. On my system there is no other addition to the PYTHONPATH regarding opencv. It seems that adding it to the site-packages folder should be sufficient. However, Spyder can find the cv2 library, the one you placed in the site-packages dir, because otherwise you should have an import error: Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named cv2 So this is a bit confusing for me, as it doesn't look like a PYTHONPATH issue? It seems that Spyder finds the cv2.pyd file (there is no import error), but fails to load the proper openCV libraries installed elsewhere. Not sure how the other python consoles manage to figure it out... Regards, David On 10 May 2013 15:03, ftherien <[email protected]> wrote: > Thanks for your reply > > Win 7 64 bit > Python 2.7.3 64 bit > Spyder 2.2.0 > OpenCV 2.4.5 (compiled myself with vc10 to work with python 64 bit) > > My opencv binaries are under C:\opencv\release\bin\Release. I added this > dir to my %PATH%, as well as creating an env variable %OPENCV_DIR% that > points to C:\opencv\. I copied cv2.pyd to my python27\Lib\site-packages > dir. I've also tried adding the Release dir above to PYTHONPATH (in spyder) > to see if it would help. > > As I said above, everything works in a python interpreter ran from a > command prompt, or in IDLE (ran some opencv scripts successfully in both) > > > On Friday, May 10, 2013 3:07:46 AM UTC-4, David wrote: > >> Hi, >> >> I use spyder (the recently released v2.2 on Arch Linux) with openCV >> (v2.4.5) successfully. Can you share some more details, like what version >> of spyder are you running, are you on Mac/Linux/Windows, openCV version, >> etc. How/where did you install openCV? >> >> Regards, >> David >> >> >> On 10 May 2013 02:02, ftherien <[email protected]> wrote: >> >>> Hi! I recently installed OpenCV. It seems to works correctly in any >>> python shell (idle, or python started on the command line), but in spyder I >>> get the following: >>> >>> >> import cv2 >>> ImportError: DLL load failed: La procédure spécifiée est introuvable. >>> (sorry for the french, rough translation would be "Specified procedure >>> could not be found") >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "spyder" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to spyderlib+...@**googlegroups.com. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at >>> http://groups.google.com/**group/spyderlib?hl=en<http://groups.google.com/group/spyderlib?hl=en> >>> . >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "spyder" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/spyderlib?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/spyderlib?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
