<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><br class="Apple-interchange-newline"></span></span>
</div>
<br><div><div>On Feb 26, 2010, at 19:47 , Isaiah Coberly wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">C:\OpenCV2.0\Python2.6\Lib\site-packages<br><br>no .py files here..<br><br>cv.pyd<br>libcv.dll.a<br><br><br>C:\OpenCV2.0\Python2.6\Lib\site-packages\opencv<br><br>_init_.py<br>matlan_syntax.py<br>adaptors.py<br>cv.py<br><br></blockquote><div><br></div><div>It looks to me like 'opencv' is structured as a package, from which you should be able to import and work with Python libraries. Have you tried putting the above site-packages directory in sys.path:</div><div><br></div><div>import sys; sys.path.append('C:<a href="smb://OpenCV2.0//Python2.6//Lib//site-packages'">\\OpenCV2.0\\Python2.6\\Lib\\site-packages'</a>)</div><div><br></div><div>and then doing:</div><div><br></div><div>from opencv import cv</div><div><br></div><div>?</div><br><blockquote type="cite">

Did I still need to compile this even though it was a win 32 installer?<br></blockquote><div><br></div><div>I don't think so, no -- AFAIK the .pyd files are compiled CPython extension modules, so it looks like they're all compiled for you.</div><div><br></div><span class="Apple-style-span" style="font-size: 12px; "><div>-------------</div><div>Rami Chowdhury</div><div>"Never assume malice when stupidity will suffice." -- Hanlon's Razor</div><div>408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)</div><div><br></div></span><div><br></div><div><br></div><br><blockquote type="cite"><br><br><div class="gmail_quote">On Fri, Feb 26, 2010 at 6:12 PM, Rami Chowdhury <span dir="ltr"><<a href="mailto:rami.chowdhury@gmail.com">rami.chowdhury@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Friday 26 February 2010 17:42:04 Isaiah Coberly wrote:<br>
> Thanks for the reply.<br>
><br>
> I tried putting the files from<br>
><br>
>  C:\OpenCV2.0\Python2.6\Lib<br>
><br>
> too<br>
><br>
> C:\Python26\Lib\site-packages<br>
><br>
> and Python still wont import..<br>
><br>
> I adjusted the environment variables to try and import maya.standalone but<br>
> no dice on that either.<br>
><br>
<br>
</div>Sorry, you've still not told me where you expect it to be. Could you let us<br>
know what .py files you can see in C:\OpenCV2.0\Python2.6\Lib ?<br>
<div><div></div><div class="h5"><br>
><br>
> On Fri, Feb 26, 2010 at 4:30 PM, Rami Chowdhury<br>
<<a href="mailto:rami.chowdhury@gmail.com">rami.chowdhury@gmail.com</a>>wrote:<br>
> > On Friday 26 February 2010 16:06:56 Routb3d wrote:<br>
> > > I used the x86 Python 2.6.4 installer. I am working in x64 Win7 pro.<br>
> > ><br>
> > > I have tried adjusting environment variables as well as putting the<br>
> > > files directly in the search path of Python.. Python still returns<br>
> > > this.. Any ideas?<br>
> ><br>
> > Where are you expecting the cv module / package to be? It's certainly not<br>
> > in<br>
> > the standard library -- at least not in my install of Python 2.6.4...<br>
> ><br>
> > > >>> import sys<br>
> > > >>> sys.path<br>
> > ><br>
> > > ['C:<a href="smb://Python26//Lib//idlelib'">\\Python26\\Lib\\idlelib'</a>, 'C:<a href="smb://Program">\\Program</a> Files\\Autodesk\\Maya2010\<br>
> > > \Python\\Lib\\site-packages', 'C:<a href="smb://Windows//system32//python26.zip'">\\Windows\\system32\\python26.zip'</a>,<br>
> > > 'C:<a href="smb://Python26//DLLs'">\\Python26\\DLLs'</a>, 'C:<a href="smb://Python26//lib'">\\Python26\\lib'</a>, 'C:<a href="smb://Python26//lib//plat-">\\Python26\\lib\\plat-</a><br>
> > > win', 'C:<a href="smb://Python26//lib//lib-tk'">\\Python26\\lib\\lib-tk'</a>, 'C:<a href="smb://Python26'">\\Python26'</a>, 'C:<a href="smb://Python26//lib/">\\Python26\\lib\</a><br>
> > > \site-packages']<br>
> > ><br>
> > > >>> import cv<br>
> > ><br>
> > > Traceback (most recent call last):<br>
> > >   File "<pyshell#4>", line 1, in <module><br>
> > ><br>
> > >     import cv<br>
> > ><br>
> > > ImportError: DLL load failed: The specified module could not be found.<br>
> > ><br>
> > ><br>
> > > Any help would be greatly appreciated.<br>
> ><br>
> > ----<br>
> > Rami Chowdhury<br>
> > "Strangers are just friends who haven't had enough gin." -- Howdle's<br>
> > Saying 408-597-7068 (US) / 07875-841-046 (UK) / 01819-245544 (BD)<br>
<br>
<br>
</div></div>----<br>
<font color="#888888">Rami Chowdhury<br>
"Ninety percent of everything is crap." -- Sturgeon's Law<br>
</font><div><div></div><div class="h5">408-597-7068 (US) / 07875-841-046 (UK) / 01819-245544 (BD)<br>
</div></div></blockquote></div><br>
</blockquote></div><br></body></html>