473,698 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

KinterBasDB problems in Linux

Hello !

I have a problem.
I create my projects in Windows, and I write a database synchronizing
utility for copy a gdb changes to another gdb. Some of these products
is need to run in linux.

I'm very tired, because I download (apt-get install
python2.3-kinterbasedb) the module, what working good in Windows, but
in linux I get this message when I try to start my script:

bha:/kepes# ./syncmdb2teldb.p y
Traceback (most recent call last):
File "./syncmdb2teldb.p y", line 2, in ?
import kinterbasdb
File "/home/fixshare/kepes/kinterbasdb/__init__.py", line 41, in ?
import _kinterbasdb as _k
ImportError: No module named _kinterbasdb
bha:/kepes#
The test file is:
File: syncmdb2teldb.p y Col 0 321 bytes 100%
#!/usr/bin/python
import kinterbasdb

import sys
# Base datas

srcdb=kinterbas db.connect(dsn= '192.168.1.17:/mpanni/bha/database/teldata.gdb',us
er='sysdba',pas sword='m',chars et="win1250")
desdb=kinterbas db.connect(dsn= '192.168.1.17:/mpanni/bha/database/mpanni.gdb',use
r='sysdba',pass word='m',charse t="win1250")
print "ok"

1Help 2UnWrap 3Quit 4Hex 5Line 6RxSrch 7Search 8Raw 9Unform 10Quit

In the package dir:

bha:/usr/lib/python2.3/site-packages/kinterbasdb# ls -l
total 152
-rw-r--r-- 1 root root 29691 Jul 19 2002 __init__.py
-rw-r--r-- 1 root root 32036 Feb 27 17:44 __init__.pyc
-rw-r--r-- 1 root root 32036 Feb 27 17:44 __init__.pyo
-rw-r--r-- 1 root root 56072 Sep 28 16:32 _kinterbasdb.so
bha:/usr/lib/python2.3/site-packages/kinterbasdb#
What I do wrong, or what is it ????
(The Zope with Kinterbasdb is working good in this linux, so no
connection problem...)

thanx for every help !

--
Best regards,
fowlertrainer mailto:fo****** *****@anonym.hu
Jul 18 '05 #1
2 2638
fo***********@a nonym.hu wrote:
Hello !

I have a problem.
I create my projects in Windows, and I write a database synchronizing
utility for copy a gdb changes to another gdb. Some of these products
is need to run in linux.

I'm very tired, because I download (apt-get install
python2.3-kinterbasedb) the module, what working good in Windows, but
in linux I get this message when I try to start my script:

bha:/kepes# ./syncmdb2teldb.p y
Traceback (most recent call last):
File "./syncmdb2teldb.p y", line 2, in ?
import kinterbasdb
File "/home/fixshare/kepes/kinterbasdb/__init__.py", line 41, in ?
import _kinterbasdb as _k
ImportError: No module named _kinterbasdb
bha:/kepes#
The test file is:
File: syncmdb2teldb.p y Col 0 321 bytes 100%
#!/usr/bin/python
import kinterbasdb

import sys
# Base datas

srcdb=kinterbas db.connect(dsn= '192.168.1.17:/mpanni/bha/database/teldata.gdb',us
er='sysdba',pas sword='m',chars et="win1250")
desdb=kinterbas db.connect(dsn= '192.168.1.17:/mpanni/bha/database/mpanni.gdb',use
r='sysdba',pass word='m',charse t="win1250")
print "ok"

1Help 2UnWrap 3Quit 4Hex 5Line 6RxSrch 7Search 8Raw 9Unform 10Quit

In the package dir:

bha:/usr/lib/python2.3/site-packages/kinterbasdb# ls -l
total 152
-rw-r--r-- 1 root root 29691 Jul 19 2002 __init__.py
-rw-r--r-- 1 root root 32036 Feb 27 17:44 __init__.pyc
-rw-r--r-- 1 root root 32036 Feb 27 17:44 __init__.pyo
-rw-r--r-- 1 root root 56072 Sep 28 16:32 _kinterbasdb.so
bha:/usr/lib/python2.3/site-packages/kinterbasdb#
What I do wrong, or what is it ????
(The Zope with Kinterbasdb is working good in this linux, so no
connection problem...)

thanx for every help !


I don't have any proplems with cross-platform issues.
Working on Win2000 + suse linux 8.2, 9.0 and FB 1.5,
kinterbasdb from http://sourceforge.net/projects/kinterbasdb/
Try this version!

Uwe
Jul 18 '05 #2
Hello Uwe,

So: in Debian Sarge, some interesting thing happened.

When I start python with:
/usr/bin/python
it is starting the py2.3

When I write this:
import kinterbasdb<crl f>
the py2.3 is not say this:
"import _kinterbasdb as _k"
"ImportErro r: No module named _kinterbasdb"
only do the import.
So it is working.

BUT !

If I write this line to a script:
#!/usr/bin/python
import kinterbasdb
this error I get:
"import _kinterbasdb as _k"
"ImportErro r: No module named _kinterbasdb"

Why ?
What I do wrong ??????

Anybody know it ?
Monday, March 1, 2004, 12:15:04 PM, you wrote:

UG> I don't have any proplems with cross-platform issues.
UG> Working on Win2000 + suse linux 8.2, 9.0 and FB 1.5,
UG> kinterbasdb from http://sourceforge.net/projects/kinterbasdb/

I try with apt-get install "kidb", and do same things.

UG> Try this version!

UG> Uwe
UG> fo***********@a nonym.hu wrote:
Hello !

I have a problem.
I create my projects in Windows, and I write a database synchronizing
utility for copy a gdb changes to another gdb. Some of these products
is need to run in linux.

I'm very tired, because I download (apt-get install
python2.3-kinterbasedb) the module, what working good in Windows, but
in linux I get this message when I try to start my script:

bha:/kepes# ./syncmdb2teldb.p y
Traceback (most recent call last):
File "./syncmdb2teldb.p y", line 2, in ?
import kinterbasdb
File "/home/fixshare/kepes/kinterbasdb/__init__.py", line 41, in ?
import _kinterbasdb as _k
ImportError: No module named _kinterbasdb
bha:/kepes#
The test file is:
File: syncmdb2teldb.p y Col 0 321 bytes 100%
#!/usr/bin/python
import kinterbasdb

import sys
# Base datas

srcdb=kinterbas db.connect(dsn= '192.168.1.17:/mpanni/bha/database/teldata.gdb',us
er='sysdba',pas sword='m',chars et="win1250")
desdb=kinterbas db.connect(dsn= '192.168.1.17:/mpanni/bha/database/mpanni.gdb',use
r='sysdba',pass word='m',charse t="win1250")
print "ok"

1Help 2UnWrap 3Quit 4Hex 5Line 6RxSrch 7Search 8Raw 9Unform 10Quit

In the package dir:

bha:/usr/lib/python2.3/site-packages/kinterbasdb# ls -l
total 152
-rw-r--r-- 1 root root 29691 Jul 19 2002 __init__.py
-rw-r--r-- 1 root root 32036 Feb 27 17:44 __init__.pyc
-rw-r--r-- 1 root root 32036 Feb 27 17:44 __init__.pyo
-rw-r--r-- 1 root root 56072 Sep 28 16:32 _kinterbasdb.so
bha:/usr/lib/python2.3/site-packages/kinterbasdb#
What I do wrong, or what is it ????
(The Zope with Kinterbasdb is working good in this linux, so no
connection problem...)

thanx for every help !


--
Best regards,
fowlertrainer mailto:fo****** *****@anonym.hu
Jul 18 '05 #3

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

Similar topics

3
6668
by: R Baumann | last post by:
I'm a newbie with Python, and trying to connect to the Interbase/Firebird 'EMPLOYEE.GDB' file to play with it. Can anyone help with this? I'm running Firebird 1.5rc4 Python 2.3.2 kinterbasdb 3.1_pre6-win32-FB1.5-py2.3.exe winXP Pro SP1 I run the same code at home and it works fine. The only difference is, at
0
1203
by: fowlertrainer | last post by:
Hello ! Very interesting thing: When I copy this script to another dir, it is working, but in this directory is not working. Only different is to this dir is used by an symlink. The python is not working good with symlinked dirs ??? >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10
3676
by: stu7 | last post by:
+ I have some problems with QT. I know that it is supposed to be useful for compiling cross-platform versions of a program, and that it has something to do with C++ ...not a problem so far. But - if QT compilies a program for Linux (my interest)... why do I have to install QT (again) to use it ? It seems it hasn't compiled -FOR- Linux at all, but is only using the Linux framework to run itself on_ acting more like a virus than a...
3
4375
by: zeedan | last post by:
Hi, I appologise if I'm not posting this to the correct group, but I'm having problems starting MySQL server. I need it in order to post a websurvey for a research project I'm doing for a college computer ethics class. Well here is the output several commands, from netstat -a I can see that MySQL is listening, but when I try to start the server I get a port error. I'm running SUSE 9.1 and I searched all over the web for info on this...
5
4593
by: Maurice LING | last post by:
Hi, I've been using FB1.5 and access the database using Kinterbasdb + Python. My connection is established using kinterbasdb.connect() method and the parameters host, dns, database, user, password are all defaulted to 'None'. On my own machine running Mac OSX 10.3, I can connect using the following: host = 'localhost' database = '<my path to FB database>'
0
1136
by: durumdara | last post by:
Hi ! I compile an application (that working good in native python) to exe with py2exe. In native mode (python.exe ReportApp.py) it is working, the reports are created good. But when I try to create a report from the compiled exe, it is show an error: Traceback (most recent call last):
1
2464
by: Petr Jakes | last post by:
I am trying to insert "timestamp" to the Firebird database using standard library datetime module example given in the "KInterbasDB Usage Guide" http://tinyurl.com/mplo4 , section "Example Programs DATE/TIME/TIMESTAMP" Even timestamp has the correct format before inserting to the database (2006-26-2 17:25:34.940279 for example), milliseconds are not stored and the database returns (2006,26,2,17,25,34). I have made some Googling the...
0
985
by: Almad | last post by:
Hi, I uploaded my application on our production server running FreeBSD and I found it crashing at startup. Problem is in connecting to my Firebird database: kinterbasdb.connect(with either good or wrong arguments) is resolving in: python in free(): error: junk pointer, too high to make sense
0
1036
by: DarkBlue | last post by:
Sorry to interrupt the regular programming here . As has been reported on some websites the maintainer of kinterbasdb David Rushby has died last month after a diving accident. Kinterbasdb is the python wrapper around the Firebird database api and an excellent opensource project. The hope is , that this message will reach someone
0
8671
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
8598
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
9152
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
9016
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
5858
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
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
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
2321
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1997
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.