473,769 Members | 5,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\connecti on.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 6799
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\p cbuild\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\PlatformSD K\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\z erofill.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\pyt hon

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\p cbuild\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
3262
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 <pyconfig.h> that causes a link to the lib python23_d.lib This library does not exist. Am I missing something or is the installation missing something?
0
2041
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 etc, it works fine, but for some reason Python libraries/headers seem to produce this. I have libpython2.3.a in /usr/local/lib/gcc-lib/arm-wince-pe/3.3.3/../../../../arm-wince-pe/lib/ and /usr/lib/python2.3/config. I've checked it using arm-wince-pe-objdump. I also extracted it with...
0
6611
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 'C:\WINDOWS\system32\cmd.exe'. It happens with every the of C++ project I try to build. Not just Class Libraries, but a plain Windows Form Application as well. I've tried creating new projects with nothing but shell built by the Wizard, but I still get the error.
2
3624
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, only the wrapper module. You'll need to have the SQLite libraries and headers installed before compiling Python, and the build process will compile the module when the necessary headers are available." I do have SQLite3 installed on my system, but after doing a
4
8923
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, _curses_panel. No errors regarding sqlite3. However, when I start python and do an import sqlite3 I get: /ptmp/bin/python Python 2.5.1 (r251:54863, May 29 2007, 05:19:30) on sunos5
3
3602
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 default as part of Mac Python 2.5, however, I still have a problem. Sqlite does not appear to be my system: Traceback (most recent call last):
2
2276
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 : sqlite3.ProgrammingError: ('SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 240 and this
15
14782
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/ connection.h:33:21: error: sqlite3.h: No such file or directory". So, I assume that the absence of the "sqlite3.h" is the origin of the problem. I found on the web, that this file should be either in "/usr/local/ include" or in "/usr/local/lib". I check this directories and I really
5
6207
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> using namespace std;
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7409
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5299
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.