Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'binary': 0.05; '64-bit': 0.07; 'python': 0.09; '32-bit': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; '*must*': 0.16; '.dll': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'uninstall': 0.16; 'url:faq': 0.16; 'wiki,': 0.16; 'wrote:': 0.17; 'pointed': 0.17; 'version.': 0.17; 'load': 0.19; 'discussion': 0.20; 'context.': 0.22; 'apps': 0.23; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'url:wiki': 0.26; 'easiest': 0.27; 'forgot': 0.27; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; 'astronomy': 0.29; 'this.': 0.29; 'install': 0.29; 'version,': 0.30; 'expect': 0.31; 'url:python': 0.32; 'from:addr:yahoo.co.uk': 0.32; 'google,': 0.32; 'substantial': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'themselves': 0.33; 'version': 0.34; 'list': 0.35; 'subject:?': 0.35; 'there': 0.35; 'received:org': 0.36; '2010.': 0.36; 'but': 0.36; 'url:org': 0.36; 'limitation': 0.36; 'visual': 0.36; 'useful': 0.36; 'should': 0.36; 'plans': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'from:': 0.38; 'some': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'between': 0.63; 'it!': 0.64; 'url:10': 0.65; 'url:%1': 0.68; 'url:wordpress': 0.75; 'impressive,': 0.84; 'investment.': 0.84; 'ships': 0.84; 'suspected': 0.84; 'url:03': 0.84; 'dennis': 0.91; 'url:%2b': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: pythonOCC examples doesn't work? Date: Wed, 12 Sep 2012 08:37:16 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-146-13-33.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: X-Antivirus: avast! (VPS 120911-1, 11/09/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1347435436 news.xs4all.nl 6963 [2001:888:2000:d::a6]:55289 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:28935 On 12/09/2012 08:19, Dwight Hutto wrote: > So used to google, forgot to check the python docs: > > http://docs.python.org/faq/windows.html > > and this should be useful as well, which is from: > > http://stackoverflow.com/questions/5030362/how-to-use-opencv-in-python > > "I suspect you have the same problem I've run into. If you have a 64-bit > version of Python, it cannot load 32-bit DLLs. OpenCV currently only ships > 32-bit binaries. If you want 64-bit .pyd and .dll files, you have to > compile them yourself. There are some > instructionson the > OpenCV Wiki, but it's not for the faint of heart. Expect to have a > substantial time investment. > > The easiest solution is to: > > 1. Uninstall 64-bit Python > 2. Install a 32-bit distribution. > > The PythonXY distribution includes pyopencv -- a good set of OpenCV hooks. > The only limitation is that it's 32-bit, so don't make plans to process > gigapixel astronomy data with it! ;) > > If you *must* have the 64-bit version, follow these > instructionsto > get it OpenCV to compile with Visual Studio 2010. There's a discussion > on stackoverflow that describes building 64-bit apps with VC Express." > > > And again, check on the pywin mailing list > > All very impressive, but as Dennis Lee Bieber has pointed out and which I suspected there is a binary incompatibility between the OP's Python version and pythonOCC version. Others would be able to see this for themselves but you insist on sending email without context. Please don't do this. -- Cheers. Mark Lawrence.