472,331 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,331 software developers and data experts.

Missing sqlite3.h Error when Building Debug Python -- Windows Vista

I am a complete newbie at building Python. I am trying to build it
under MS Windows Vista (64-bit AMD) with MS VS2005. I'm doing that
because I need debug libraries, which I did not see in the standard
distribution.

I downloaded the source and found the MSVS8 solution/project files.
However, when I tried to build it I got the following error:

....\python-2.5.2\modules\_sqlite\connection.h(33) : fatal error C1083:
Cannot open include file: 'sqlite3.h': No such file or directory

I searched on the web, and at one place it said I would just need to
download sqlite3.h from sqlite.org. I looked around there, but I
could not find the source for sqlite 3.3.4. I went back and reread
the PCbuild8\readme.txt file, and it mentions using the following
command to download the sqlite:

svn export http://svn.python.org/projects/exter...e-source-3.3.4

Do I really need to get the whole thing, or will just sqlite3.h
resolve the build problem. As far as I know, I don't really need
sqlite. If I do need to execute that svn command, how do I execute
that under MS Windows?

Or is there some other way in which to circumvent this error?

Thanks,
Bev in TX
Jul 19 '08 #1
3 6566
Bev in TX wrote:
I am a complete newbie at building Python. I am trying to build it
under MS Windows Vista (64-bit AMD) with MS VS2005. I'm doing that
because I need debug libraries, which I did not see in the standard
distribution.
I'll leave others to comment on whether or not
it's expected to build with VS2005, but the easiest
way to get a debug build is to pretend to be a buildbot.

1) Check out the python source into, say, c:\dev\python

svn co http://svn.python.org/projects/python/trunk c:\dev\python

2) Switch to that directory

cd \dev\python

3) Pretend to be a buildbot

tools\buildbot\build
This will checkout all the necessary sources into, in my
example, c:\dev. It will then run all the build steps
necessary to get a debug build which will then be in

c:\dev\python\pcbuild\python_d.exe

TJG

Jul 20 '08 #2
Thanks for letting me know about this. I installed Subversion and
tried to make the build work like that, but it fails.

1) I am building 64-bit on Vista, so I used build-amd64.bat instead of
build.bat.

2) build-amd64.bat was setup to use MSVS 9.0, while I am using MSVS
8.0. Also, some of the BATCH programs incorrectly added a backslash
after the %VS90COMNTOOLS% environment variable. I corrected those to
use %VS80COMNTOOLS%, without the backslash.

3) It then complained about incompatible solution/project files, so I
modified build-amd64.bat to use the solution/project files in pc\vs8.0
instead of pcbuild.

4) It now has errors/warnings like:
C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\include
\prsht.h(531) : error C2016: C requires that a struct or union has at
least one member
...
c1 : fatal error C1083: Cannot open source file: '..\..\..
\db-4.4.20\common\zerofill.c': No such file or directory
xa_map.c
...
4>..\..\Python\getargs.c(319) : warning C4244: 'function' : conversion
from 'Py_ssize_t' to 'int', possible loss of data

So I don't see how the amd64-bit builds are working out of the box on
MS Windows Vista, and I may have made some error when changing the
build files.

I'd appreciate any other thoughts ...

Bev in TX

On Jul 20, 10:36*am, Tim Golden <m...@timgolden.me.ukwrote:
I'll leave others to comment on whether or not
it's expected to build with VS2005, but the easiest
way to get a debug build is to pretend to be a buildbot.

1) Check out the python source into, say, c:\dev\python

svn cohttp://svn.python.org/projects/python/trunkc:\dev\python

2) Switch to that directory

cd \dev\python

3) Pretend to be a buildbot

tools\buildbot\build

This will checkout all the necessary sources into, in my
example, c:\dev. It will then run all the build steps
necessary to get a debug build which will then be in

c:\dev\python\pcbuild\python_d.exe

TJG
Jul 21 '08 #3
Bev in TX wrote:
Thanks for letting me know about this. I installed Subversion and
tried to make the build work like that, but it fails.
[... snip problems ...]

I'm afraid I'm not using VS 2005, nor Vista, nor 64-bit,
so I hope someone else can help. If you don't get any take-up
here try the python-win32 list; there may be people there who
don't follow this (rather higher volume) list.

TJG

Jul 22 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Partho Bhowmick | last post by:
I am building extension modules for Python 2.3 under Windows using MS Visual Studio .Net 2003. In the debug build, there is a pragma statement in...
0
by: Adam McCarthy | last post by:
I'm trying to get a cross compiler working for arm-wince-pe. This is the output for the primes Pyrex example. If I compile simple Hello, World's...
0
by: Herman Jones | last post by:
I'm getting the following error when I build a Class Library project: Embedding manifest... Project : error PRJ0002 : Error result 1 returned from...
2
by: Harold Shore | last post by:
From the release notes I read that "If you're compiling the Python source yourself, note that the source tree doesn't include the SQLite code,...
4
by: Simon | last post by:
I installed the source code on unix for python 2.5.1. The install went mainly okay, except for some failures regarding: _ssl, _hashlib, _curses,...
3
by: ricardo.turpino | last post by:
Hi, I've installed Mac Python 2.5. I'm running Mac OS X 10.4.10 on a Macbook 1.83GHz. I though that the python sqlite library was installed by...
2
by: =?ISO-8859-1?Q?S=E9bastien_Ramage?= | last post by:
Hi ! I'm trying to build an client/server app based on Pyro and sqlite3. But I have a problem using sqlite3 on the server I got this error : ...
15
by: Kurda Yon | last post by:
Hi, I try to "build" and "install" pysqlite? After I type "python setup.py build" I get a lot of error messages? The first error is "src/...
5
by: kardon33 | last post by:
I am trying to just do a test of sqlite3 and C++ but I having touble. I am compiling on Mac OS X. Program: <code> #include <iostream>...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.