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


Groups > comp.lang.python > #104480 > unrolled thread

Installing ibm_db package on Windows 7, 64-bit problem

Started byAlexander Shmugliakov <shmuglak@gmail.com>
First post2016-03-09 23:46 -0800
Last post2016-03-10 08:31 +0000
Articles 5 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  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

#104480 — Installing ibm_db package on Windows 7, 64-bit problem

FromAlexander Shmugliakov <shmuglak@gmail.com>
Date2016-03-09 23:46 -0800
SubjectInstalling ibm_db package on Windows 7, 64-bit problem
Message-ID<6b8f071a-f39a-4083-889a-4b381a2a1cd0@googlegroups.com>
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
'--------------------------------------------------------------------------'

My environment:
Windows 7 Professional, SP1
Python:
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32 bit (Intel)] on win32 

IBM IBM Data Server Driver Package:
Client Package Type       : IBM Data Server Driver Package
Client Version (level/bit): DB2 v10.5.0.420 (s130528/32-bit)
Client Platform           : NT
Install/Instance Path     : C:\PROGRA~2\IBM\IBMDAT~1

Common App Data Path      : C:\ProgramData\IBM\DB2\IBMDBCL1
DB2DSDRIVER_CFG_PATH value: C:\ProgramData\IBM\DB2\IBMDBCL1\cfg
db2dsdriver.cfg Path      : <Common App Data Path>\cfg\db2dsdriver.cfg
DB2CLIINIPATH value       : C:\ProgramData\IBM\DB2\IBMDBCL1\cfg
db2cli.ini Path           : <Common App Data Path>\cfg\db2cli.ini
db2diag.log Path          : <Common App Data Path>\db2diag.log

==========================================================================
List of all IBM Data Server client packages on the current workstation:
============================================================================

Copyname      Version Package Language Installed-Location
----------------------------------------------------------------------------
IBMDBCL1[C,D] 10.5.00 DSD     ALL_LANG C:\Program Files (x86)\IBM\IBM DATA SERVER DRIVER
----------------------------------------------------------------------------
 DSD: IBM Data Server Driver Package
----------------------------------------------------------------------------

[toc] | [next] | [standalone]


#104484

FromChris Angelico <rosuav@gmail.com>
Date2016-03-10 19:09 +1100
Message-ID<mailman.113.1457597353.15725.python-list@python.org>
In reply to#104480
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

[toc] | [prev] | [next] | [standalone]


#104493

FromAlexander Shmugliakov <shmuglak@gmail.com>
Date2016-03-10 01:31 -0800
Message-ID<9f5b3a22-0a5f-42ce-98a3-1a0adf631728@googlegroups.com>
In reply to#104484
On Thursday, March 10, 2016 at 10:09:26 AM UTC+2, Chris Angelico wrote:
> 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

Thank you Chris! Actually I have received your response while in the process (quite a lengthy one for some reason) of the VS Community Edition installation. Will see if it will solve my problem (or at least brings me the missing dll). I appreciate your immediate response anyway.

Best, 
Alexander

[toc] | [prev] | [next] | [standalone]


#104510

FromChris Angelico <rosuav@gmail.com>
Date2016-03-10 23:52 +1100
Message-ID<mailman.125.1457614341.15725.python-list@python.org>
In reply to#104493
On Thu, Mar 10, 2016 at 8:31 PM, Alexander Shmugliakov
<shmuglak@gmail.com> wrote:
> Thank you Chris! Actually I have received your response while in the process (quite a lengthy one for some reason) of the VS Community Edition installation. Will see if it will solve my problem (or at least brings me the missing dll). I appreciate your immediate response anyway.
>

Great! Setting up a dev environment on Windows isn't easy (it's not
like on Linux where building things from source is the normal and
expected thing), but hopefully it'll reward the effort. And it should
be a one-off setup job; this same version of MS VS should work for
building extensions against future versions of Python, too. (This
wasn't previously the case. That's what the post I linked to on Steve
Dower's blog is all about.)

ChrisA

[toc] | [prev] | [next] | [standalone]


#104488

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2016-03-10 08:31 +0000
Message-ID<mailman.115.1457598742.15725.python-list@python.org>
In reply to#104480
On 10/03/2016 08:09, Chris Angelico wrote:
> On Thu, Mar 10, 2016 at 6:46 PM, Alexander Shmugliakov
> <shmuglak@gmail.com> wrote:
>
> 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/
>

I've used it repeatedly with no problems, other than the fact that it 
takes hours to download and install, even with a high speed broadband 
link.  Steve Dower is attempting to get his Microsoft colleagues to 
produce a bare minimum that could be used to build Python.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web