mimersql / MimerPy

Python database adapter for Mimer SQL
MIT License
3 stars 3 forks source link

bsql works but mimerpy does not #8

Open idexxbernvaug opened 1 month ago

idexxbernvaug commented 1 month ago

Hello! I am stumped here.

I am able to connect to a remote db using bsql: image

But when I try to use mimerpy, I get an error: con = mimerpy.connect( dsn='idexxcvqa', user='LABCAT_QA', password='omitted' ) image

Here is my sqlhosts file:

-- ============================================================================
DEFAULT:
--
-- Database
-- ----------------------------------------------------------------------------
   example_localdb
-- ============================================================================
LOCAL:
--
-- Database           Path
-- ------------------ ---------------------------------------------------------
   testdb             /usr/local/MimerSQL/testdb
-- ============================================================================
REMOTE:
--
-- Database           Node               Protocol Interface Service
-- ------------------ ------------------ -------- --------- -------------------
   idexxcvqa   omitted.domain.com    'tcp'       ''        1360
-- ============================================================================

I must be missing something... Any help is much appreciated. Thanks!

fredrikalund commented 1 month ago

Hi, What version of Mimer SQL are running on the server you are trying to connect to? Regards, Fredrik

idexxbernvaug commented 1 month ago

The Mimer version on the server is 10.0.8A

fredrikalund commented 1 month ago

That's the problem. MimerPy uses our new Mimer C API and it only works with Mimer SQL 11.0 and later. The error code/message could be better here.

idexxbernvaug commented 1 month ago

Well that explains it. Thanks for the info!