Unable to find vcvarsall.bat during easy_install of ibm_db

614 views
Skip to first unread message

Arturo

unread,
Apr 27, 2013, 11:24:54 AM4/27/13
to ibm...@googlegroups.com
Hello,

I'm having problems installing ibm_db, this is my environment:

Windows 7 (64 bits)
Python 3.3
IBM Data Server Driver 10.1 fp2
MS Visual Studio Express 2008

and this is what i'm getting:

C:\Arturo\Phyton>easy_install ibm_db
Searching for ibm-db
Reading http://pypi.python.org/simple/ibm_db/
Reading http://code.google.com/p/ibm-db/downloads/list
Best match: ibm-db 2.0.2
Downloading http://pypi.python.org/packages/source/i/ibm_db/ibm_db-2.0.2.tar.gz#
md5=4c14acd90e665679ebf6e970f73c200d
Processing ibm_db-2.0.2.tar.gz
Writing c:\users\user\appdata\local\temp\easy_install-_4mndd\ibm_db-2.0.2\setup.
cfg
Running ibm_db-2.0.2\setup.py -q bdist_egg --dist-dir c:\users\user\appdata\loca
l\temp\easy_install-_4mndd\ibm_db-2.0.2\egg-dist-tmp-74z5y3
Detected 64-bit Python
c:\users\user\appdata\local\temp\easy_install-_4mndd\ibm_db-2.0.2\setup.py:52: U
serWarning: Detected usage of IBM Data Server Driver package. Ensure you have do
wnloaded 64-bit package of IBM_Data_Server_Driver and retry the ibm_db module in
stall

  warnings.warn(notifyString)
error: Setup script exited with error: Unable to find vcvarsall.bat


i also try this:

C:\Arturo\Phyton>easy_install ibm_db-2.0.2-py3.2-win32.egg
Processing ibm_db-2.0.2-py3.2-win32.egg
removing 'c:\python33\lib\site-packages\ibm_db-2.0.2-py3.2-win32.egg' (and every
thing under it)
creating c:\python33\lib\site-packages\ibm_db-2.0.2-py3.2-win32.egg
Extracting ibm_db-2.0.2-py3.2-win32.egg to c:\python33\lib\site-packages
ibm-db 2.0.2 is already the active version in easy-install.pth

Installed c:\python33\lib\site-packages\ibm_db-2.0.2-py3.2-win32.egg
Processing dependencies for ibm-db==2.0.2
Searching for ibm-db==2.0.2
Reading http://pypi.python.org/simple/ibm-db/
Reading http://code.google.com/p/ibm-db/downloads/list
Best match: ibm-db 2.0.2
Downloading http://pypi.python.org/packages/source/i/ibm_db/ibm_db-2.0.2.tar.gz#
md5=4c14acd90e665679ebf6e970f73c200d
Processing ibm_db-2.0.2.tar.gz
Writing c:\users\user\appdata\local\temp\easy_install-j62ghr\ibm_db-2.0.2\setup.
cfg
Running ibm_db-2.0.2\setup.py -q bdist_egg --dist-dir c:\users\user\appdata\loca
l\temp\easy_install-j62ghr\ibm_db-2.0.2\egg-dist-tmp-26dpy9
Detected 64-bit Python
c:\users\user\appdata\local\temp\easy_install-j62ghr\ibm_db-2.0.2\setup.py:52: U
serWarning: Detected usage of IBM Data Server Driver package. Ensure you have do
wnloaded 64-bit package of IBM_Data_Server_Driver and retry the ibm_db module in
stall

  warnings.warn(notifyString)
error: Setup script exited with error: Unable to find vcvarsall.bat



other tests i made were:

Uninstalling MS Visual Studio Express 2008 and install MS Visual Studio Express 2012, same results as above (and i get back to the 2008 version)

i follow all the recommendation i fin online about this issue like manually set the value for VS90COMNTOOLS, put a copy of vcvarsall.bat from the VC directory into the common7/tools directory

is ibm_db unsupported under Python 3.3? i see that the egg name say 32win...is there a 64bit version?

Thanks

Rahul

unread,
Apr 29, 2013, 6:12:32 AM4/29/13
to ibm...@googlegroups.com
Hi Arturo,
  It looks like the error you are getting since you are using express edition of VS 2008. In order to make a 64-bit window build you required VS 2008 standard edition, following statement are mentioned in the python's readme.txt file
'''In order to build 32-bit debug and release executables, Microsoft Visual C++ 2008 Express Edition is required at the very least.  In order to build 64-bit debug and release executables, Visual Studio 2008 Standard Edition is required at the very least''

You can get help of building python extension for 64 bit python at http://mattptr.net/2010/07/28/building-python-extensions-in-a-modern-windows-environment/

 ibm_db is not yet tested with 64 bit build window Python, In case of any issue please let us know.

Thanks,
rahul

Mario Briggs

unread,
May 20, 2013, 2:12:33 PM5/20/13
to ibm_db
A prebuilt Win64 egg is now readily available (https://pypi.python.org/
pypi/ibm_db and http://code.google.com/p/ibm-db/downloads/list) . U
can use that directly now. Do let us know if you face issues with it
Reply all
Reply to author
Forward
0 new messages