473,788 Members | 2,810 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to build the pysqlite? Where to find the "sqlite3.h" ?

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
do not have the "sqlite3.h" there.

Thinks becomes even more complicated since I have no permissions to
write to the 2 above mentioned directories? So, do I have any chance
to install the pysqlite? If yes, what should I do?

Should I find the file on the web and put in in some of my directories
and then to change the path in the "setup.cfg" ?

Thank you for any help.
Nov 5 '08
15 14788
* Shawn Milochik (Wed, 5 Nov 2008 12:28:46 -0500)
Thanks, but either I'm missing something or you're missing
something. I can't do any of what you describe on the machine I
want to use sqlite on.

I have downloaded the binary sqlite3 file from sqlite's Web site,
and
The linux binary will not work. You need the headers and the
libraries. Grab the src tar ball and build and install locally.

That is not correct. The binary *does* work, as I said last time.

For the third time, it is not possible for me to build from source on
that box.
Sure you can. There are never permission problems for compiling - only
for installing.
And in any case, you keep talking about sqlite3, but I'm talking about
pysqlite2.
You (and Kurda) keep on talking the wrong stuff. First: you don't need
pysqlite2. SQLite support is included in the latest Python as module
sqlite3.

If for whatever reason you need the latest SQLite module for Python
(2.5.0), you can simply grab an rpm or build it from source and install
it to your home directory. To build pysqlite you need the SQLite
headers. If you can't install those to default path then simply grab the
headers, put them somewhere into your home directory and tell the
pysqlite build process where to find them.

Thorsten
Nov 5 '08 #11
On Wed, Nov 5, 2008 at 1:55 PM, Thorsten Kampe
<th******@thors tenkampe.dewrot e:
* Shawn Milochik (Wed, 5 Nov 2008 12:28:46 -0500)
>Thanks, but either I'm missing something or you're missing
something. I can't do any of what you describe on the machine I
want to use sqlite on.

I have downloaded the binary sqlite3 file from sqlite's Web site,
and

The linux binary will not work. You need the headers and the
libraries. Grab the src tar ball and build and install locally.

That is not correct. The binary *does* work, as I said last time.

For the third time, it is not possible for me to build from source on
that box.

Sure you can. There are never permission problems for compiling - only
for installing.
>And in any case, you keep talking about sqlite3, but I'm talking about
pysqlite2.

You (and Kurda) keep on talking the wrong stuff. First: you don't need
pysqlite2. SQLite support is included in the latest Python as module
sqlite3.

If for whatever reason you need the latest SQLite module for Python
(2.5.0), you can simply grab an rpm or build it from source and install
it to your home directory. To build pysqlite you need the SQLite
headers. If you can't install those to default path then simply grab the
headers, put them somewhere into your home directory and tell the
pysqlite build process where to find them.

Thorsten

Okay, sorry if I haven't been specific enough. I don't know about the
original poster, but on the box I'm using, I don't have the latest
Python, the "make" command breaks because the system doesn't have the
proper libraries, and there is no sqlite3 module. I am not authorized
to fix any of that, and our support team isn't interested in helping
me because it's a Perl shop, not Python.

I'm not demanding that anyone solve my problem. I'm just asking if
there are files I can download and without compiling or building them
in any way, put them somewhere, point Python to that path, and be able
to use sqlite from Python. If the answer is no, it's no. I'm not
repeating myself because I enjoy it. For some reason everyone who has
answered me has ignored the basic question of whether this is possible
or not, so I have felt the need to reply and say so.

Thanks,
Shawn
Nov 5 '08 #12
On Nov 5, 1:55*pm, Thorsten Kampe <thors...@thors tenkampe.dewrot e:
>
You (and Kurda) keep on talking the wrong stuff. First: you don't need
pysqlite2. SQLite support is included in the latest Python as module
sqlite3.
By the way, I think the above statement is very helpfull. I tried to
install the "pysqlite" to be able to communicate with the "sqlite",
and then I have realized that for that I need first to install the
"sqlite"...

But I read your statement and understood that I do not need to install
neither "pysqlite" no "sqlite". In my Python session I tried to type
"from sqlite import connect" and it does not compaline. It meand that
Python see the database!!! I hope.

By the where can I find a simle tutorial about the work with the
"sqlite" from the Python?
Nov 6 '08 #13
* Kurda Yon (Wed, 5 Nov 2008 17:52:08 -0800 (PST))
On Nov 5, 1:55Â*pm, Thorsten Kampe <thors...@thors tenkampe.dewrot e:
You (and Kurda) keep on talking the wrong stuff. First: you don't
need pysqlite2. SQLite support is included in the latest Python as
module sqlite3.

By the way, I think the above statement is very helpfull. I tried to
install the "pysqlite" to be able to communicate with the "sqlite",
and then I have realized that for that I need first to install the
"sqlite"...

But I read your statement and understood that I do not need to install
neither "pysqlite" no "sqlite". In my Python session I tried to type
"from sqlite import connect" and it does not compaline. It meand that
Python see the database!!! I hope.
I don't think so. There is no "sqlite" module in Python so the above
line should give you an error. The module is called sqlite3.
By the where can I find a simle tutorial about the work with the
"sqlite" from the Python?
Guess where: in the Python documentation and on the pysqlite web site:
http://docs.python.org/library/sqlite3.html
http://oss.itsystementwicklung.de/do...c/sqlite3.html

Thorsten
Nov 6 '08 #14
* Shawn Milochik (Wed, 5 Nov 2008 14:32:15 -0500)
On Wed, Nov 5, 2008 at 1:55 PM, Thorsten Kampe
You (and Kurda) keep on talking the wrong stuff. First: you don't
need pysqlite2. SQLite support is included in the latest Python as
module sqlite3.

If for whatever reason you need the latest SQLite module for Python
(2.5.0), you can simply grab an rpm or build it from source and
install it to your home directory. To build pysqlite you need the
SQLite headers. If you can't install those to default path then
simply grab the headers, put them somewhere into your home directory
and tell the pysqlite build process where to find them.

Okay, sorry if I haven't been specific enough. I don't know about the
original poster, but on the box I'm using, I don't have the latest
Python, the "make" command breaks because the system doesn't have the
proper libraries, and there is no sqlite3 module. I am not authorized
to fix any of that, and our support team isn't interested in helping
me because it's a Perl shop, not Python.

I'm not demanding that anyone solve my problem. I'm just asking if
there are files I can download and without compiling or building them
in any way, put them somewhere, point Python to that path, and be able
to use sqlite from Python.
I more or less answered that already: you can grab a rpm for the same
Python version as you already have, unpack it and put the sqlite3
support files somewhere into your home directory (~/bin/python/site-
packages for example). If your Python is older than 2.5 then you have to
download the pysqlite rpms for your distribution and do the same as
above. To have Python find the modules you have to set the PYTHONPATH
environment variable. See the man page.

If your distribution doesn't provide RPMs for pysqlite then you have to
build it yourself. You have to grab the SQLite headers (they are in the
SQLite RPM probably), unpack them somewhere into your home directory and
tell the pysqlite build process where to find them. I don't exactly know
how but this is probably very easy to find out.

Thorsten
Nov 6 '08 #15
>
But I read your statement and understood that I do not need to install
neither "pysqlite" no "sqlite". In my Python session I tried to type
"from sqlite import connect" and it does not compaline. It meand that
Python see the database!!! I hope.

I don't think so. There is no "sqlite" module in Python so the above
line should give you an error. The module is called sqlite3.
Well, but the "above line" does not give me an error. I get an error
if I replace "sqlite" by "sqlite3". But anyway, now everything works
fine.

Thnak you everybody for the help.
Nov 7 '08 #16

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

Similar topics

1
1436
by: Brad Burke | last post by:
When I 'build' my Windows Application solution, it created three files in the "bin" directory. How do I change the name of the .exe it creates in the bin directory? -- Brad Burke FusionData, LLC 970 222-1501
2
10010
by: Keith Smith | last post by:
What is the difference between "build" and "rebuild" when building a project?
4
10382
by: Simon Verona | last post by:
I'm looking to build a "kiosk" style of application in vb.net (using winforms)... Writing the application itself is no problem. What I want to do though is have the PC set so that the application runs automatically on system startup - is completely modal - no alt-tab's allowed. I don't want to have the start button or even want the "explorer" item running at all. I want my application to be the only thing running.
0
1291
by: Diffident | last post by:
Hello All, I am trying to do a "build" of all files of my web app on my local machine. I know that there is an "aspnet_wp.exe" running forever on my machine and to my knowledge each web app is hosted in its own AppDomain. Now when I do a build on my local machine is this AppDomain unloaded? If yes, why does it have to be unloaded? Cannot it drain stop the current AppDomain and spawn a new AppDomain with the new assembly. Please refer to...
0
1379
by: Ubergeek | last post by:
I noticed this bug ever since I installed VC7.1 on the same machine as VC6. Sometimes when I am working with VC6, when I do a build, after the build finishes, the various menu items/toolbars remain disabled and I cant do another build - or even quit VC. Everytime I try to quit, I am informed that I cannot Exit whilst a build is in progress, and that I have stop the build first. As I said before, the stop build button has no effect. Has...
8
2173
by: Bruce | last post by:
I am using VB in Vs2005. Am I missing something or does VB not have the concept of "builds" (release/debug) like in VC? I wrote an assembly and I would like to have a debug version of the DLL and a release version of the DLL. I would like to create some sample code that demonstrates my assembly in VB and would like to have two builds, one using my debug version and the other using the release version of the assembly. How can I do...
14
7159
by: Nader Emami | last post by:
I have installed "TurboGears" and I would install 'pysqlite' also. I am a user on a Linux machine. If I try to install the 'pysqlite' with 'easy_install' tool I get the next error message. The error message is longer than what I send here. % easy_install pysqlite Searching for pysqlite Reading http://cheeseshop.python.org/pypi/pysqlite/ Reading http://pysqlite.org/
0
1118
by: =?Utf-8?B?d2lubGlu?= | last post by:
Hello Using VS 2005 and VB.net In Solution Explorer amongst other things there can be: 1)a project with forms 2)Class libraries 3)user controls 4)the solution itself
0
9656
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
9498
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
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
10172
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
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5398
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...
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
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.