Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Building mySQL-python with python 2.6

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


abolotnov at gmail

May 27, 2009, 5:45 AM

Post #1 of 8 (17483 views)
Permalink
Building mySQL-python with python 2.6

Hi, I am trying to build mySQL-python with python 2.6 on windows and
can't figure what's wrong with it.

D:\temp\mysqlPyC\MySQL–python–1.2.3c1>python setup.py build
running build
running build_py
copying MySQLdb\release.py –> build\lib.win32–2.6\MySQLdb
running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat

the vcvarsall.bat is in %path% though:

D:\temp\mysqlPyC\MySQL–python–1.2.3c1>vcvarsall.bat
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

Are there python settings that point to specific compiler directory or
something that I need to change/update?
--
http://mail.python.org/mailman/listinfo/python-list


lists at cheimes

May 27, 2009, 5:58 AM

Post #2 of 8 (17343 views)
Permalink
Re: Building mySQL-python with python 2.6 [In reply to]

abolotnov schrieb:
> Hi, I am trying to build mySQL-python with python 2.6 on windows and
> can't figure what's wrong with it.
>
> D:\temp\mysqlPyC\MySQL–python–1.2.3c1>python setup.py build
> running build
> running build_py
> copying MySQLdb\release.py –> build\lib.win32–2.6\MySQLdb
> running build_ext
> building '_mysql' extension
> error: Unable to find vcvarsall.bat
>
> the vcvarsall.bat is in %path% though:
>
> D:\temp\mysqlPyC\MySQL–python–1.2.3c1>vcvarsall.bat
> Setting environment for using Microsoft Visual Studio 2010 x86 tools.

You need Visual Studio 2008. Other versions of VS aren't supported by
Python 2.6.

Christian
--
http://mail.python.org/mailman/listinfo/python-list


abolotnov at gmail

May 27, 2009, 6:01 AM

Post #3 of 8 (17338 views)
Permalink
Re: Building mySQL-python with python 2.6 [In reply to]

> You need Visual Studio 2008. Other versions of VS aren't supported by
> Python 2.6.

Aren't 2005, 2008+ versions all have same c compiler - it's just the
IDE versions that are different?
--
http://mail.python.org/mailman/listinfo/python-list


lists at cheimes

May 27, 2009, 6:27 AM

Post #4 of 8 (17338 views)
Permalink
Re: Building mySQL-python with python 2.6 [In reply to]

abolotnov schrieb:
>> You need Visual Studio 2008. Other versions of VS aren't supported by
>> Python 2.6.
>
> Aren't 2005, 2008+ versions all have same c compiler - it's just the
> IDE versions that are different?

There are important differences between the several versions of VC++.
The most important discrepancy is the runtime library version. Each
version of Visual Studio uses its own msvcrt dll. The command line
options, deprecated functions, project file formats and other things are
also slightly different.

Christian
--
http://mail.python.org/mailman/listinfo/python-list


Scott.Daniels at Acm

May 27, 2009, 8:17 AM

Post #5 of 8 (17337 views)
Permalink
Re: Building mySQL-python with python 2.6 [In reply to]

Christian Heimes wrote:
> abolotnov schrieb:
>> Hi, I am trying to build mySQL-python with python 2.6 on windows and
>> can't figure what's wrong with it.
...
> You need Visual Studio 2008. Other versions of VS aren't supported by
> Python 2.6.

You might be able to use mingw32 as well.

--Scott David Daniels
Scott.Daniels [at] Acm
--
http://mail.python.org/mailman/listinfo/python-list


abolotnov at gmail

May 27, 2009, 11:16 AM

Post #6 of 8 (17329 views)
Permalink
Re: Building mySQL-python with python 2.6 [In reply to]

> You might be able to use mingw32 as well.

say I obtain and install "an alternative" compiler. how do I tell
python which one to use?

I am sorry for asking dumb questions. Can't find the answers in the
docs/mans.
--
http://mail.python.org/mailman/listinfo/python-list


lists at cheimes

May 27, 2009, 11:52 AM

Post #7 of 8 (17327 views)
Permalink
Re: Building mySQL-python with python 2.6 [In reply to]

abolotnov wrote:
> say I obtain and install "an alternative" compiler. how do I tell
> python which one to use?
>
> I am sorry for asking dumb questions. Can't find the answers in the
> docs/mans.

http://docs.python.org/install/index.html#gnu-c-cygwin-mingw

Christian

--
http://mail.python.org/mailman/listinfo/python-list


gagsl-py2 at yahoo

May 28, 2009, 10:37 PM

Post #8 of 8 (17292 views)
Permalink
Re: Building mySQL-python with python 2.6 [In reply to]

On 28 mayo, 02:16, abolotnov <abolot...@gmail.com> wrote:

> say I obtain and install "an alternative" compiler. how do I tell
> python which one to use?

VS2008 Express Edition is available for free from the Microsoft site.

--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.