473,698 Members | 2,203 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re[2]: KinterBasDB problems in Linux

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 ???
>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>


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 #1
0 1203

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
2
2639
by: fowlertrainer | last post by:
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:
3
2069
by: flupke | last post by:
Hi, i'm developing an app that uses wxPython and Firebird via kinterbasdb on Win XP SP2. On insert of a record i get this error: (kinterbasdb.InterfaceError) (0, "Type mismatch: Input parameter for field named must be a string, rather than a <type 'unicode'>.") Python, wxPython are all unicode enabled. The firebird database is created with the UNICODE_FSS charset and opened as such in kinterbasdb's
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):
12
2992
by: timothy.williams | last post by:
Hi. I have a Python program that parses a file and inserts records into a database with MySQLdb. I recently upgraded to MySQL 5.0.8, and now my parser runs *really* slow. Writing out to CSV files is fine, but when I try to insert the same records in a MySQL5 database, it slows to a crawl. Using MySQL 4.1 seems fine. The data seems to be inserted correctly, it's just really slow. Has anyone else noticed a similar problem using MySQL5...
3
1473
by: Ed Leafe | last post by:
In Dabo, we create cursor classes that combine the backend-specific dbapi cursor class with our own mixin class that adds framework- specific behaviors. This has been working well for a couple of years now with many different backends, but today I'm getting errors with our Firebird class. I've checked the kinterbasdb site, and found nothing there that was helpful. The error reads: TypeError: Error when calling the metaclass bases type...
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...
4
1498
by: Laszlo Nagy | last post by:
Hi All, I connected to a FireBird 1.5 database this way: import kinterbasdb kinterbasdb.init(type_conv=200) # See http://kinterbasdb.sourceforge.net/dist_docs/usage.html#faq_fep_is_mxdatetime_required Then I try to update the database:
0
8600
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
9156
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
9021
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
8892
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
8860
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...
0
4361
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
3038
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
2323
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1998
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.