ora2pg icon indicating copy to clipboard operation
ora2pg copied to clipboard

IMPORT configuration causes "Can't call method 'logit'" error in Ora2Pg v25.0

Open tarulkinra opened this issue 5 months ago • 3 comments

Hi,

It looks like there's a bug in Ora2Pg version 25.0 related to the IMPORT configuration directive.

I have a shared/common configuration file stored in a config folder, and I try to include it from another config file like this:

Main config:

cat config/ora2pg_new.conf IMPORT ./config/ora2pg_common.conf

However, when I run Ora2Pg with this config:

$ ora2pg -c config/ora2pg_new.conf -d -a "TABLE[XYZ]"

I get the following error:

Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14858, <GEN0> line 1.

This worked fine in earlier versions of Ora2Pg (e.g., 24.x), so it seems like a regression in v25.0.

Let me know if you need help reproducing the issue or more environment details. Thanks for maintaining this awesome tool!

tarulkinra avatar Jul 17 '25 10:07 tarulkinra

Maybe there is a typo or hidden character in your config file?

ericswiggum avatar Aug 13 '25 17:08 ericswiggum

I also encountered the same problem, even though the imported configuration file was empty.

cdchen avatar Sep 09 '25 08:09 cdchen

Please try the current code from master, the error sounds like the regression that we fixed in 87d6d935e8d82d35385b030d108350b63147eb55.

SebAlbert avatar Sep 12 '25 15:09 SebAlbert