473,587 Members | 2,483 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: (in memory) database

On Sun, 31 Aug 2008 18:05:08 +0000, Cameron Laird <cl****@lairds. uswrote:
>In article <b6************ *************** *******@26g2000 hsk.googlegroup s.com>,
Paul Boddie <pa**@boddie.or g.ukwrote:
[snip]

Thanks for pursuing this, Paul. You have me curious now.

Let's take a definite example: I have a convenient
Ubuntu 8.04.1
The content of /etc/apt/sources.list is
deb http://us.archive.ubuntu.com/ubuntu hardy main restricted
deb http://us.archive.ubuntu.com/ubuntu hardy-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu hardy universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
I do
apt-get update
apt-get upgrade
apt-get install python2.5
then
# python2.5
Python 2.5 (r25:51908, Dec 11 2006, 21:09:56)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.
It doesn't seem likely to me that this is the Python 2.5 packaged in
Ubuntu 8.04. It's build timestamp is almost a year and a half before
8.04 was released. Here's the header on my installation:

Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.

This could be a bug in the upgrade from a previous version of Ubuntu
installed on the host or perhaps you have a different Python 2.5 installed
on the machine that's not from the Ubuntu package repository?

Jean-Paul
Aug 31 '08 #1
3 1061
In article <ma************ *************** **********@pyth on.org>,
Jean-Paul Calderone <ex*****@divmod .comwrote:
>On Sun, 31 Aug 2008 18:05:08 +0000, Cameron Laird <cl****@lairds. uswrote:
>>In article <b6************ *************** *******@26g2000 hsk.googlegroup s.com>,
Paul Boddie <pa**@boddie.or g.ukwrote:
[snip]

Thanks for pursuing this, Paul. You have me curious now.

Let's take a definite example: I have a convenient
Ubuntu 8.04.1
The content of /etc/apt/sources.list is
deb http://us.archive.ubuntu.com/ubuntu hardy main restricted
deb http://us.archive.ubuntu.com/ubuntu hardy-updates main restricted
deb http://us.archive.ubuntu.com/ubuntu hardy universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted
I do
apt-get update
apt-get upgrade
apt-get install python2.5
then
# python2.5
Python 2.5 (r25:51908, Dec 11 2006, 21:09:56)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.

It doesn't seem likely to me that this is the Python 2.5 packaged in
Ubuntu 8.04. It's build timestamp is almost a year and a half before
8.04 was released. Here's the header on my installation:

Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.

This could be a bug in the upgrade from a previous version of Ubuntu
installed on the host or perhaps you have a different Python 2.5 installed
on the machine that's not from the Ubuntu package repository?

Jean-Paul
Thank you! While I'm certainly not down to the bottom of this mystery,
I have a few clues. First, the important point to make for original
questioner mark is that SQLite(3) is a perfectly reasonable implementation
to use in a Python2.5 context.

I now suspect that my 2.5 packaging has something to do with 64-bit builds;
all my 32-bit Ubuntu servers have Python 2.5.2, while the 64-bit ones are at
Python 2.5.
Aug 31 '08 #2
Cameron Laird schreef:
I now suspect that my 2.5 packaging has something to do with 64-bit builds;
all my 32-bit Ubuntu servers have Python 2.5.2, while the 64-bit ones are at
Python 2.5.
Strange: my 64-bit Ubuntu 8.04 has Python 2.5.2, with working sqlite:
roel@shannon $ uname -a
Linux shannon 2.6.24-19-generic #1 SMP Wed Aug 20 17:53:40 UTC 2008
x86_64 GNU/Linux

roel@shannon $ cat /etc/issue
Ubuntu 8.04.1 \n \l

roel@shannon $ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright" , "credits" or "license" for more information.
>>import sqlite3


--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov

Roel Schroeven
Aug 31 '08 #3
Roel Schroeven schreef:
Cameron Laird schreef:
>I now suspect that my 2.5 packaging has something to do with 64-bit builds;
all my 32-bit Ubuntu servers have Python 2.5.2, while the 64-bit ones are at
Python 2.5.

Strange: my 64-bit Ubuntu 8.04 has Python 2.5.2, with working sqlite:
(mine is a desktop, not a server; I don't know if that should make any
difference).

--
The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom.
-- Isaac Asimov

Roel Schroeven
Sep 1 '08 #4

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

Similar topics

10
4645
by: Alex Greem | last post by:
Dear all, Our database (DB2 Workgroup 7.2 FP12) is constantly under heavy load. Most time CPU usage (1 Pentium3 1Ghz) is more 50% busy. We have 3GB RAM memory Our normal workload is 200-300 dyn.sql/s. The action question is there way to eliminate direct I/O? By definition direct I/O is I/O that bypass bufferpools and used for LONG VARCHAR and LOBs data.
10
5281
by: sunil | last post by:
Hi, I have a container that holds objects of same type (user defined class), where each object has multiple attributes. These objects have primary key (similar to a database) formed by combination of two attributes, but I want to support multiple views of data by looking at different combination of attributes and in some cases I might want to combine these. For instance, lets say the class has four attributes a1,a2,a3,a4; and primary key...
5
5995
by: ImOk | last post by:
Anyone know of an extension that is an in memory database? I dont want to create any files on disk (nor install a database engine) but have an object/variable that points to a database and tables all in memory. Then to be able to do simple select, insert, deletes and updates. This could be easier than using arrays for certain tasks. Something like this would be nice. E.g.
14
1873
by: mark | last post by:
Hi there, I need to extract data from text files (~4 GB) on this data some operations are performed like avg, max, min, group etc. The result is formated and written in some other text files (some KB). I currently think about database tools might be suitable for this. I would just write the import from the text files and ... the tool does the rest. The only problem I can imagine is that this would not be fast enough. But I would give...
0
7924
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
7854
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
8219
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
8349
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...
1
7978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8221
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
5722
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
5395
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
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.