Dancer2 install errors
Hi, Can anyone help with the errors that I'm getting while trying to install Dancer2, looks a problem with core.app.before_request but there are also some errors regarding new_from_plack. I'm using a fresh install of Ubuntu 64 bit, 14.04. t/00-report-prereqs.t .................................. ok [main:25555] error @2015-06-05 13:28:24> Exception caught in 'core.app.before_request' filter: Hook error: Can't locate object method "failure" via package "Foo" (perhaps you forgot to load "Foo"?) at t/app.t line 150. at /home/mj/.cpanm/work/1433507299.25464/Dancer2-0.160002/blib/lib/Dancer2/Core/App.pm line 953. in /home/mj/.cpanm/work/1433507299.25464/Dancer2-0.160002/blib/lib/Dancer2/Core/App.pm l. 526 t/app.t ................................................ ok t/app_alone.t .......................................... ok t/author-no-tabs.t ..................................... skipped: these tests are for testing by the author t/auto_page.t .......................................... ok t/caller.t ............................................. ok t/charset_server.t ..................................... ok t/classes/Dancer2-Core-Factory/new.t ................... ok t/classes/Dancer2-Core-Hook/new.t ...................... ok # Running test with XS_URL_DECODE # Running test without XS_PARSE_QUERY_STRING # Running test without XS_URL_DECODE t/classes/Dancer2-Core-Request/new.t ................... ok t/classes/Dancer2-Core-Response-Delayed/after_hooks.t .. ok t/classes/Dancer2-Core-Response-Delayed/new.t .......... ok coercion for "headers" failed: Not an ARRAY reference at /home/mj/.cpanm/work/1433507299.25464/Dancer2-0.160002/blib/lib/Dancer2/Core/Role/Headers.pm line 16. # Child (new_from_plack) exited without calling finalize() # Failed test 'new_from_plack' # at /usr/local/share/perl/5.18.2/Test/Builder.pm line 279. # Looks like you failed 1 test of 3. # Looks like your test exited with 29 just after 3. t/classes/Dancer2-Core-Response/new_from.t ............. Dubious, test returned 29 (wstat 7424, 0x1d00) Failed 1/3 subtests I can provide the full log if needed. Cheers MJ
Hi! 2015-06-05 15:46 GMT+03:00 mark jones <mjemail@me.com>:
Can anyone help with the errors that I'm getting while trying to install Dancer2, looks a problem with core.app.before_request but there are also some errors regarding new_from_plack. I'm using a fresh install of Ubuntu 64 bit, 14.04.
Which method you used to install Dancer2? -- Wbr, Kõike hääd, Gunnar
Hi there, I used cpanm: curl -L http://cpanmin.us | perl - --sudo Dancer2 MJ
On 5 Jun 2015, at 13:53, WK <wanradt@gmail.com> wrote:
Hi!
2015-06-05 15:46 GMT+03:00 mark jones <mjemail@me.com>:
Can anyone help with the errors that I'm getting while trying to install Dancer2, looks a problem with core.app.before_request but there are also some errors regarding new_from_plack. I'm using a fresh install of Ubuntu 64 bit, 14.04.
Which method you used to install Dancer2?
-- Wbr, Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
2015-06-05 15:46 GMT+03:00 mark jones <mjemail@me.com>:
Can anyone help with the errors that I'm getting while trying to install Dancer2, looks a problem with core.app.before_request but there are also some errors regarding new_from_plack. I'm using a fresh install of Ubuntu 64 bit, 14.04.
Sorry, already noticed, you use cpanm.
t/classes/Dancer2-Core-Response-Delayed/new.t .......... ok coercion for "headers" failed: Not an ARRAY reference at /home/mj/.cpanm/work/1433507299.25464/Dancer2-0.160002/blib/lib/Dancer2/Core/Role/Headers.pm line 16. # Child (new_from_plack) exited without calling finalize()
This 16th line initializes HTTP::Headers-object. Is HTTP::Headers up do date? I use same setup (Ubuntu 14.04, 64 bit, cpanm) and I installed same version Dancer2 fine. -- Wbr, Kõike hääd, Gunnar
No luck I'm afraid, I still get the same errors after running: curl -L http://cpanmin.us | perl - --sudo HTTP::Headers % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 314 0 314 0 0 509 0 --:--:-- --:--:-- --:--:-- 509 100 295k 100 295k 0 0 236k 0 0:00:01 0:00:01 --:--:-- 2567k HTTP::Headers is up to date. (6.05) MJ
On 5 Jun 2015, at 14:01, WK <wanradt@gmail.com> wrote:
2015-06-05 15:46 GMT+03:00 mark jones <mjemail@me.com>:
Can anyone help with the errors that I'm getting while trying to install Dancer2, looks a problem with core.app.before_request but there are also some errors regarding new_from_plack. I'm using a fresh install of Ubuntu 64 bit, 14.04.
Sorry, already noticed, you use cpanm.
t/classes/Dancer2-Core-Response-Delayed/new.t .......... ok coercion for "headers" failed: Not an ARRAY reference at /home/mj/.cpanm/work/1433507299.25464/Dancer2-0.160002/blib/lib/Dancer2/Core/Role/Headers.pm line 16. # Child (new_from_plack) exited without calling finalize()
This 16th line initializes HTTP::Headers-object. Is HTTP::Headers up do date?
I use same setup (Ubuntu 14.04, 64 bit, cpanm) and I installed same version Dancer2 fine.
-- Wbr, Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
2015-06-05 16:10 GMT+03:00 mark jones <mjemail@me.com>:
No luck I'm afraid, I still get the same errors after running:
curl -L http://cpanmin.us | perl - --sudo HTTP::Headers % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 314 0 314 0 0 509 0 --:--:-- --:--:-- --:--:-- 509 100 295k 100 295k 0 0 236k 0 0:00:01 0:00:01 --:--:-- 2567k HTTP::Headers is up to date. (6.05)
Too bad, can't help then. But I can tell that it seems not related to "core.app.before_request", because I see from my build log that I had same problems , but after those errors every other test works fine and in test summary is no mentioned failed tests. -- Wbr, Kõike hääd, Gunnar
Thank anyway, I've done forced install for now. I'll try and fix it when something breaks. MJ
On 5 Jun 2015, at 14:31, WK <wanradt@gmail.com> wrote:
2015-06-05 16:10 GMT+03:00 mark jones <mjemail@me.com>:
No luck I'm afraid, I still get the same errors after running:
curl -L http://cpanmin.us | perl - --sudo HTTP::Headers % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 314 0 314 0 0 509 0 --:--:-- --:--:-- --:--:-- 509 100 295k 100 295k 0 0 236k 0 0:00:01 0:00:01 --:--:-- 2567k HTTP::Headers is up to date. (6.05)
Too bad, can't help then. But I can tell that it seems not related to "core.app.before_request", because I see from my build log that I had same problems , but after those errors every other test works fine and in test summary is no mentioned failed tests.
-- Wbr, Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
Looks like a new release was uploaded to CPAN yesterday and tests are failing on a lot of platforms: http://matrix.cpantesters.org/?dist=Dancer2+0.160002 On Fri, Jun 5, 2015 at 7:47 AM, mark jones <mjemail@me.com> wrote:
Thank anyway, I've done forced install for now. I'll try and fix it when something breaks.
MJ
On 5 Jun 2015, at 14:31, WK <wanradt@gmail.com> wrote:
2015-06-05 16:10 GMT+03:00 mark jones <mjemail@me.com>:
No luck I'm afraid, I still get the same errors after running:
curl -L http://cpanmin.us | perl - --sudo HTTP::Headers % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 314 0 314 0 0 509 0 --:--:-- --:--:-- --:--:-- 509 100 295k 100 295k 0 0 236k 0 0:00:01 0:00:01 --:--:-- 2567k HTTP::Headers is up to date. (6.05)
Too bad, can't help then. But I can tell that it seems not related to "core.app.before_request", because I see from my build log that I had same problems , but after those errors every other test works fine and in test summary is no mentioned failed tests.
-- Wbr, Kõike hääd,
Gunnar _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
On 6/06/2015 12:20 am, Maxwell Carey wrote:
Looks like a new release was uploaded to CPAN yesterday and tests are failing on a lot of platforms: http://matrix.cpantesters.org/?dist=Dancer2+0.160002
There will be an email + blog post regarding the changes in Dancer2 v0.160002 soon. This release (independently) coincided with a new Plack release (v1.0036). One change in Plack is to migrate from using HTTP::Headers to HTTP::Headers::Fast. There are a couple of PRs on GitHub with suggested fixes for Dancer2 to account for the change in Plack. It may take a couple of days for the fix to be merged and release as several of the core team are traveling to YAPC::NA. Depending on your circumstances, downgrading to Plack v1.0034 may suffice until a new Dancer2 release hits CPAN. Cheers, Russell.
participants (4)
-
mark jones -
Maxwell Carey -
Russell Jenkins -
WK