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.py
Traceback (most recent call last):
File "./syncmdb2teldb.py", 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.py Col 0 321 bytes 100%
#!/usr/bin/python
import kinterbasdb
import sys
# Base datas
srcdb=kinterbasdb.connect(dsn='192.168.1.17:/mpanni/bha/database/teldata.gdb',us
er='sysdba',password='m',charset="win1250")
desdb=kinterbasdb.connect(dsn='192.168.1.17:/mpanni/bha/database/mpanni.gdb',use
r='sysdba',password='m',charset="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 2 2627 fo***********@anonym.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.py Traceback (most recent call last): File "./syncmdb2teldb.py", 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.py Col 0 321 bytes 100% #!/usr/bin/python import kinterbasdb
import sys # Base datas
srcdb=kinterbasdb.connect(dsn='192.168.1.17:/mpanni/bha/database/teldata.gdb',us er='sysdba',password='m',charset="win1250") desdb=kinterbasdb.connect(dsn='192.168.1.17:/mpanni/bha/database/mpanni.gdb',use r='sysdba',password='m',charset="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
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<crlf>
the py2.3 is not say this:
"import _kinterbasdb as _k"
"ImportError: 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"
"ImportError: 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***********@anonym.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.py Traceback (most recent call last): File "./syncmdb2teldb.py", 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.py Col 0 321 bytes 100% #!/usr/bin/python import kinterbasdb
import sys # Base datas
srcdb=kinterbasdb.connect(dsn='192.168.1.17:/mpanni/bha/database/teldata.gdb',us er='sysdba',password='m',charset="win1250") desdb=kinterbasdb.connect(dsn='192.168.1.17:/mpanni/bha/database/mpanni.gdb',use r='sysdba',password='m',charset="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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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.
...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
by: DolphinDB |
last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation.
Take...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| |