[Dbix-class] Errors installing DBIx::Class

Peter Rabbitson rabbit+dbic at rabbit.us
Fri Jan 22 12:24:07 GMT 2016


On 01/22/2016 01:11 PM, Dave Howorth wrote:
> In the previous thread, Peter suggested I freeze the version of
> DBIx::Class until the code was updated to fix my problem. It's actually
> a new machine so it's not a question of reverting to the previous
> version but of finding a version that will install. I just tried
>
>    cpanm DBIx::Class at 0.08270
>
> Unfortunately it failed the tests as did 0.08200 with similar errors.
> I'd appreciate any thoughts on how to get a working system.
>
> The machine is running Scientific Linux 6, which is new to me, and
> because its perl is too old (5.10.1) for some of my code I'm using
> perlbrew, which is also new to me, to give me 5.22.1, which is also new
> to me. perl -V output at the end of this message. So perhaps I need some
> other patch or to downgrade something else, but what?

5.10.1 is hardly "too old" :)

>
> Thanks for any help.
>
> The test errors were:
>
> #   Failed test 'DBIx::Class::SQLAHacks::import appears to have entered
> inheritance chain by import into SQL::Abstract'
> #   at t/55namespaces_cleaned.t line 146.
> # Looks like you failed 1 test of 13975.
> t/55namespaces_cleaned.t ............................
> Dubious, test returned 1 (wstat 256, 0x100)
> Failed 1/13975 subtests
>          (less 48 skipped subtests: 13926 okay)

This is a harmless error, just ignore it. The test itself has been 
relegated to xt/ as it gives user-inactionable false negatives sometimes.


>
> #   Failed test 'Cascading delete on Ordered has_many works'
> #   at t/60core.t line 362.
> # died: DBIx::Class::Exception
> (DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception:
> DBD::SQLite::st execute failed: UNIQUE constraint failed: track.cd,
> track.position [for Statement "UPDATE track SET position = ? WHERE (
> trackid = ? )"] at t/60core.t line 362
> # )
> #   Failed test 'Cascading through has_many top level.'
> #   at t/60core.t line 363.
> #          got: '3'
> #     expected: '0'
>
> #   Failed test 'Cascading through has_many children.'
> #   at t/60core.t line 364.
> #          got: '3'
> #     expected: '0'
> # Looks like you failed 3 tests of 123.
> t/60core.t ..........................................
> Dubious, test returned 3 (wstat 768, 0x300)
> Failed 3/123 subtests
>          (less 18 skipped subtests: 102 okay)

I am not sure - never seen this one. Perhaps try an older DBD::SQLite 
first (e.g. 1.37). It seems to be related to the ordering changes...





More information about the DBIx-Class mailing list