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


Groups > comp.lang.python > #104484

Re: Installing ibm_db package on Windows 7, 64-bit problem

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Installing ibm_db package on Windows 7, 64-bit problem
Date Thu, 10 Mar 2016 19:09:10 +1100
Lines 61
Message-ID <mailman.113.1457597353.15725.python-list@python.org> (permalink)
References <6b8f071a-f39a-4083-889a-4b381a2a1cd0@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de OZIH7y58KwwuTR7SOViTvQBsLmXD7oCuoVeI/cuHJKSQ==
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'received:209.85.223': 0.03; 'source,': 0.04; 'binary': 0.05; 'error:': 0.05; 'installed.': 0.05; 'source.': 0.05; 'cc:addr :python-list': 0.09; 'subject:Windows': 0.09; 'exited': 0.09; 'retry': 0.09; 'skip:c 80': 0.09; 'url:blog': 0.10; 'python': 0.10; 'thu,': 0.15; "'*'": 0.16; '2016': 0.16; 'alexander': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'hmm.': 0.16; 'match:': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:bit': 0.16; 'url:packages': 0.16; 'url:tar': 0.16; 'url:visualstudio': 0.16; 'wrote:': 0.16; 'basically': 0.18; 'driver': 0.18; 'url:au': 0.18; 'steve': 0.18; 'windows': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'extension': 0.20; 'work,': 0.21; '64-bit': 0.22; 'builder': 0.22; 'subject:problem': 0.22; 'matching': 0.23; 'downloaded': 0.24; 'url:edu': 0.24; 'header:In- Reply-To:1': 0.24; 'module': 0.25; 'script': 0.25; 'install': 0.25; "i've": 0.25; "doesn't": 0.26; 'installed': 0.26; 'appreciated.': 0.27; 'helpful': 0.27; 'error': 0.27; 'message- id:@mail.gmail.com': 0.27; 'ibm': 0.27; 'package.': 0.27; "skip:' 10": 0.28; '32-bit': 0.29; "skip:' 70": 0.29; "i'm": 0.30; 'code': 0.30; 'especially': 0.32; 'related': 0.32; 'anybody': 0.32; 'compiled': 0.32; 'computer.': 0.32; 'though,': 0.32; 'source': 0.33; 'url:python': 0.33; 'downloading': 0.33; 'effort.': 0.33; 'machine.': 0.33; 'file': 0.34; 'running': 0.34; 'server': 0.34; 'that,': 0.34; 'received:google.com': 0.35; 'skip:3 10': 0.35; 'done': 0.35; 'installing': 0.35; 'but': 0.36; 'too': 0.36; 'skip:i 20': 0.36; 'should': 0.36; 'there': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'url:source': 0.36; 'visual': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'there,': 0.37; 'received:209': 0.38; 'anything': 0.38; 'building': 0.38; 'someone': 0.38; 'files': 0.38; 'data': 0.39; 'sure': 0.39; 'unable': 0.39; 'subject:-': 0.39; 'build': 0.40; 'hello,': 0.40; 'your': 0.60; "you'll": 0.61; 'above,': 0.63; 'needing': 0.63; 'more': 0.63; 'url:0': 0.63; 'here:': 0.63; 'world': 0.64; 'you.': 0.64; 'mar': 0.65; 'contact': 0.66; 'url:6': 0.66; 'here': 0.66; 'yourself': 0.73; 'url:i': 0.77; 'choices:': 0.84; 'chrisa': 0.84; 'wheel': 0.84; 'wheels': 0.84; 'edition': 0.86; 'to:none': 0.91; 'look.': 0.91
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:cc; bh=7rPr5HnXK87VyhQwUs+ib7YtbarFX1WqWtfbuKCaq9c=; b=RVAfKL5nDivV8Oh2BiPMAw7PPqWpr383I/QfqV1vhwpswrTFCrhlSBh51OSya8mHsK XRJ74gctDq4fBZVDXgoAhz05+bsJ2DnvClfB5+3MvWFnMYWVLCEaVDpZ6XVAEnN1nx3g uQ1ipLbMg50MEh2FcoA95CK6203KCNeXyMB5SLvWms/Ghjg+D1ZsqC+vkefhTxVtJBZA T/FRdbSG7wwlLJa2zFy+sH1Y62IW6FNPq91TyTsm/ctc/gcpMh+c6sBsX2d8Xx1uDGjj ILSf7vgUwMu8IB95B86nryUQVLbXebqZ12bgL3deZd6rpfv7qx7MiZjfcBSrjFsqEeMw NUzA==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=7rPr5HnXK87VyhQwUs+ib7YtbarFX1WqWtfbuKCaq9c=; b=FrZAv94cmLK3qvbCpK+OeNZ6NJ1U2v8pi23agTNQ5cABthkmykS4lGVVckH2ieU8qI bL4suTKsdLFEarWShhKseJSqyHL+rbMuCMUdqdeMBVHLs+44qI5Bq0LMKwkxk30e/qNR hcR+7gkjIjp85RtXF7UJz3p1hGV9dJv8JWS2O4FRfhtVjQdhpV/lR9Rfg+6UBES5/hyF kHOZMrtzrSO+B0mPE2TULyMDQXK774CiP/3tZQWENsnxTi/htr7HGdGCHtbtVrI+FP/5 kcQUAeTok5e6TxddZAC7jtNMEpSR8SDGwTMgiMVn52HQgc5Ty4LOZjda5zM4ez/X3hZ0 umLg==
X-Gm-Message-State AD7BkJKpr3mbe7cE9DqbhBCl5ohdA6dXP3ozmpUc4/nFvDJOSIilDW1vmI6ecrf0gvYGfu84uwfw4KhJdjiRhQ==
X-Received by 10.107.47.163 with SMTP id v35mr2005514iov.19.1457597350725; Thu, 10 Mar 2016 00:09:10 -0800 (PST)
In-Reply-To <6b8f071a-f39a-4083-889a-4b381a2a1cd0@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:104484

Show key headers only | View raw


On Thu, Mar 10, 2016 at 6:46 PM, Alexander Shmugliakov
<shmuglak@gmail.com> wrote:
> Hello, has anybody successfully installed ibm_db package in the 32-bit Python 3.5.0 environment? This is the error messages I'm receiving:
> I know that the message about vcvarsall.bat is related to the Visual Studio configuration -- I don't have it on my computer. I have no 64-bit IBM Data Server Driver installed on my machine. Any help will be *greatly* appreciated.
>
> '--------------------------------------------------------------------------'
> C:\Program Files (x86)\Python 3.5>easy_install ibm_db
> Searching for ibm-db
> Reading https://pypi.python.org/simple/ibm_db/
> Best match: ibm-db 2.0.6
> Downloading https://pypi.python.org/packages/source/i/ibm_db/ibm_db-2.0.6.tar.gz#md5=f6b80e1489167a141ebf8978c37ca398
> Processing ibm_db-2.0.6.tar.gz
> Writing C:\Users\shmuglak\AppData\Local\Temp\easy_install-yijpttuo\ibm_db-2.0.6\setup.cfg
> Running ibm_db-2.0.6\setup.py -q bdist_egg --dist-dir C:\Users\shmuglak\AppData\Local\Temp\easy_install-yijpttuo\ibm_db-
> 2.0.6\egg-dist-tmp-np3lk_6i
> Detected 32-bit Python
> C:\Users\shmuglak\AppData\Local\Temp\easy_install-yijpttuo\ibm_db-2.0.6\setup.py:204: UserWarning: Detected usage of IBM
>  Data Server Driver package. Ensure you have downloaded 32-bit package of IBM_Data_Server_Driver and retry the ibm_db module install
>
>   warnings.warn(notifyString)
> warning: no files found matching 'README'
> warning: no files found matching '*' under directory 'clidriver'
> warning: no files found matching '*' under directory 'ibm_db_dlls'
> error: Setup script exited with error: Unable to find vcvarsall.bat

Hmm. I don't understand the warning there, but the final error is
pretty straight-forward: you cannot build a package from source
without having Visual Studio installed. Sadly, my usual go-to source
for Windows wheels doesn't have ibm_db:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

but that's definitely the first place to look.

You basically have two choices:

1) Install the zero-dollar edition of Visual Studio 2015 (I think it's
available from https://www.visualstudio.com/ but I've never actually
used it, so don't depend on my advice), and build the extension from
source. You may find Steve Dower's blog helpful here:
http://stevedower.id.au/blog/building-for-python-3-5/

2) Find someone who has done the above, or is willing to do it for
you. Get him/her to build you a wheel file (.whl), which will then be
able to be installed on your computer without needing Visual Studio.

You may be able to contact the author(s) of the ibm_db package and ask
for a wheel. Or there might be someone here who'll do it for you. Be
aware, though, that you have to trust the wheel builder completely;
you'll be taking compiled binary code and installing it on your
computer. I'm sure most people in the world are trustworthy, but there
are those few who aren't... But you already know that, I have no
doubt.

Building it yourself is a lot more work, especially as a one-off, but
once you get yourself set up to build from source, you should be able
to build anything else you need without too much more effort.

All the best!

ChrisA

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


Thread

Installing ibm_db package on Windows 7, 64-bit problem Alexander Shmugliakov <shmuglak@gmail.com> - 2016-03-09 23:46 -0800
  Re: Installing ibm_db package on Windows 7, 64-bit problem Chris Angelico <rosuav@gmail.com> - 2016-03-10 19:09 +1100
    Re: Installing ibm_db package on Windows 7, 64-bit problem Alexander Shmugliakov <shmuglak@gmail.com> - 2016-03-10 01:31 -0800
      Re: Installing ibm_db package on Windows 7, 64-bit problem Chris Angelico <rosuav@gmail.com> - 2016-03-10 23:52 +1100
  Re: Installing ibm_db package on Windows 7, 64-bit problem Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-10 08:31 +0000

csiph-web