Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #28936

Re: pythonOCC examples doesn't work?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <dwightdhutto@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'binary': 0.05; 'context': 0.05; '64-bit': 0.07; 'referring': 0.07; 'python': 0.09; '32-bit': 0.09; 'docs.': 0.09; 'lawrence': 0.09; 'received:mail-vc0-f174.google.com': 0.09; 'referenced': 0.09; 'sep': 0.09; 'cc:addr:python-list': 0.10; 'useful,': 0.13; '*must*': 0.16; '.dll': 0.16; 'compatible,': 0.16; 'summarize,': 0.16; 'uninstall': 0.16; 'url:faq': 0.16; 'wiki,': 0.16; 'windows:': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'pointed': 0.17; 'version.': 0.17; 'windows': 0.19; 'load': 0.19; 'discussion': 0.20; 'putting': 0.20; 'question.': 0.20; 'context.': 0.22; "i'd": 0.22; 'cc:2**0': 0.23; 'apps': 0.23; 'posts': 0.23; 'references': 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'url:wiki': 0.26; 'am,': 0.27; 'easiest': 0.27; 'forgot': 0.27; 'message-id:@mail.gmail.com': 0.27; 'there.': 0.28; 'run': 0.28; 'argue': 0.29; 'astronomy': 0.29; 'finds': 0.29; 'received:209.85.220.174': 0.29; 'probably': 0.29; 'this.': 0.29; "i'm": 0.29; 'install': 0.29; 'related': 0.30; 'usually': 0.30; 'version,': 0.30; 'figure': 0.30; 'expect': 0.31; 'point': 0.31; 'asking': 0.32; 'url:python': 0.32; 'google,': 0.32; 'could': 0.32; 'goes': 0.33; 'docs': 0.33; "he's": 0.33; 'substantial': 0.33; 'problem': 0.33; 'themselves': 0.33; 'version': 0.34; 'program,': 0.34; 'received:google.com': 0.34; 'list': 0.35; 'problem,': 0.35; 'especially': 0.35; 'received:209.85.220': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'there': 0.35; '2010.': 0.36; 'but': 0.36; 'url:org': 0.36; '12,': 0.36; 'limitation': 0.36; 'visual': 0.36; "wasn't": 0.36; "didn't": 0.36; 'useful': 0.36; 'should': 0.36; 'too': 0.36; 'possible': 0.37; 'plans': 0.37; 'does': 0.37; 'resources': 0.37; 'why': 0.37; 'busy': 0.37; 'received:209': 0.37; 'far': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'from:': 0.38; 'some': 0.38; 'things': 0.38; 'url:docs': 0.38; 'list,': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'real': 0.61; 'referred': 0.62; 'between': 0.63; 'different': 0.63; 'helping': 0.63; 'more': 0.63; 'show': 0.63; 'it!': 0.64; 'here': 0.65; 'url:10': 0.65; 'url:%1': 0.68; 'believe': 0.69; 'overcome': 0.71; 'saw': 0.75; 'url:wordpress': 0.75; 'impressive,': 0.84; 'investment.': 0.84; 'researching': 0.84; 'ships': 0.84; 'suspected': 0.84; 'to:addr:yahoo.co.uk': 0.84; 'url:03': 0.84; 'conversation': 0.91; 'dennis': 0.91; 'url:%2b': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8cT25+1eHdz0IKrW+Okt+DmPMPf0/BT0p+N6LHIPFIU=; b=S17dbMB8XQNmsgDSIBTTVYZD2iEhwr4jW6+z574TyoQK6cnExQA8yX14jPP5+j/uwl uzT2iZ6m7znlLO493ih5NPmGktZalijTXu14sVsEieCPILJXiokhmGZLCX3XNRkGCFnG cx5wGnuZnmwKqRVJ+jITbJIWp/q1Ypn8XANL4VxJmvSGsNkxXTOTDwhKkE2kuIWt6Vm4 OHxeGJRwXkhi3OWu3QOQgQT9mDtwfGjXO5wj7D7Au4sPbA1/B1mfPyMd/8458HyMr2G4 lx2Qk49CWr3dPjPBDzd0bn6j68RI4vZCCkrSRKRvGcARsmO4jG9YlxrZXkRIx2UZEh8j Y3FA==
MIME-Version 1.0
In-Reply-To <k2pe2q$rul$1@ger.gmane.org>
References <af4c9164-238f-4a94-8ed1-7c767f8c51bf@googlegroups.com> <k2para$298$1@ger.gmane.org> <CA+vVgJVgPVMNWYEQjVhj0zGko9ztjeaXdSQ-J19Xaqsn0-vCUg@mail.gmail.com> <k2pe2q$rul$1@ger.gmane.org>
Date Wed, 12 Sep 2012 04:12:32 -0400
Subject Re: pythonOCC examples doesn't work?
From Dwight Hutto <dwightdhutto@gmail.com>
To Mark Lawrence <breamoreboy@yahoo.co.uk>
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.544.1347437555.27098.python-list@python.org> (permalink)
Lines 99
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1347437555 news.xs4all.nl 6949 [2001:888:2000:d::a6]:42187
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:28936

Show key headers only | View raw


On Wed, Sep 12, 2012 at 3:37 AM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote:
> 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
>> instructions<http://opencv.willowgarage.com/wiki/VisualC%2B%2B>on 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
>>
>> instructions<http://redkiing.wordpress.com/2010/10/03/opencv-and-visual-studio-2010-with-cmake/>to
>>
>> 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.

DIdn't see this, I was too busy helping the OP search for an answer,
and educate us both at the same time.

 Others would be able to see this for themselves but
> you insist on sending email without context.  Please don't do this.


How are my emails without context? I'm referring the OP to the docs,
as well as posts related to their question. It goes to use google, and
RTFM, and putting it politely to them.

I could summarize, but they have to do the real reading. I'm not
researching this, and if I was, I'd charge for the time. This is to
show that things can get complex if you don't use google, or read the
docs.

Why does the OP keep asking here, when there are answers out there.
especially on the pywin list, which Windows users are usually referred
to.

Please point out what's out of context. The links and references place
it into context if the OP finds them useful, and I believe I searched
well for them.

Would the OP like to tell me I wasn't helpful? Because now they're
probably on a search to figure out how to make these compatible, which
means more questions, and more reading.

Plus the OP said he's on 64. Read the quote from stackoverflow:


   "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. "

A different program, but roughly the same in analogy, I do believe.

And where in here was the OP referenced to the python docs on windows:

>> http://docs.python.org/faq/windows.html

Was that out of context as well?

Let's not argue about this, I was pointing them to what I saw as the
best possible resources to overcome his current problem, and it was
all in context of the conversation as far as I'm concerned.

-- 
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

pythonOCC examples doesn't work? Jayden <jayden.shui@gmail.com> - 2012-09-11 21:02 -0700
  Re: pythonOCC examples doesn't work? Marco Nawijn <nawijn@gmail.com> - 2012-09-11 21:42 -0700
  Re: pythonOCC examples doesn't work? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-12 07:41 +0100
  Re: pythonOCC examples doesn't work? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-12 08:37 +0100
  Re: pythonOCC examples doesn't work? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-12 04:12 -0400
  Re: pythonOCC examples doesn't work? jelle <jelleferinga@gmail.com> - 2012-09-12 08:12 -0700
    Re: pythonOCC examples doesn't work? Jayden <jayden.shui@gmail.com> - 2012-09-12 10:03 -0700
  Re: pythonOCC examples doesn't work? Terry Reedy <tjreedy@udel.edu> - 2012-09-12 16:58 -0400
  RE: pythonOCC examples doesn't work? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-09-13 23:26 +0000
  Re: pythonOCC examples doesn't work? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-13 21:11 -0400
  Re: pythonOCC examples doesn't work? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-13 21:14 -0400
  Re: pythonOCC examples doesn't work? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-09-13 22:55 -0400
  Re: pythonOCC examples doesn't work? Chris Angelico <rosuav@gmail.com> - 2012-09-14 17:30 +1000
  Re: pythonOCC examples doesn't work? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 03:49 -0400
  Re: pythonOCC examples doesn't work? Chris Angelico <rosuav@gmail.com> - 2012-09-14 18:15 +1000
  RE: pythonOCC examples doesn't work? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-09-14 22:51 +0000
  Re: pythonOCC examples doesn't work? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-14 23:47 -0400
  Re: pythonOCC examples doesn't work? Chris Angelico <rosuav@gmail.com> - 2012-09-15 13:53 +1000
  Re: pythonOCC examples doesn't work? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-15 00:40 -0400
  Re: pythonOCC examples doesn't work? MRAB <python@mrabarnett.plus.com> - 2012-09-15 18:26 +0100
  Re: pythonOCC examples doesn't work? Dwight Hutto <dwightdhutto@gmail.com> - 2012-09-17 02:44 -0400
  BDFL Rossenbom, was Re: pythonOCC examples doesn't work? Peter Otten <__peter__@web.de> - 2012-09-17 09:24 +0200

csiph-web