Skip Menu |

This queue is for tickets about the Photonic CPAN distribution.

Report information
The Basics
Id: 131800
Status: resolved
Priority: 0/
Queue: Photonic

People
Owner: WLMB [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.011
Fixed in: (no value)



Subject: pngtopnm: not found
t/geometry.t seems to fail if netpbm is not installed: ... Oops, this is not a PNM fileconverter error: sh: 1: pngtopnm: not found at /home/cpansand/.local/share/.cpan/build/2020021419/PDL-2.020-mGlujb/blib/lib/PDL/IO/Pnm.pm line 79. PDL::IO::Pnm::rbarf("/var/tmp/cpansmoker-1023/2020021419/B4lQ6GEjal", "Oops, this is not a PNM file") called at /home/cpansand/.local/share/.cpan/build/2020021419/PDL-2.020-mGlujb/blib/lib/PDL/IO/Pnm.pm line 274 PDL::rpnm("PDL", PDL=SCALAR(0x55df8b8919c0), "pngtopnm \"data/white.png\" |") called at /home/cpansand/.local/share/.cpan/build/2020021419/PDL-2.020-mGlujb/blib/lib/PDL/IO/Pnm.pm line 248 PDL::IO::Pnm::rpnm(PDL=SCALAR(0x55df8b8919c0), "pngtopnm \"data/white.png\" |") called at /home/cpansand/.local/share/.cpan/build/2020021419/PDL-2.020-mGlujb/blib/lib/PDL/IO/Pic.pm line 322 PDL::rpic("PDL", "data/white.png") called at /home/cpansand/.cpan/build/2020021419/Photonic-0.011-lLWt9s/blib/lib/Photonic/Geometry/FromImage2D.pm line 133 Photonic::Geometry::FromImage2D::_build_B(Photonic::Geometry::FromImage2D=HASH(0x55df8b891a20)) called at reader Photonic::Geometry::FromImage2D::B (defined at /home/cpansand/.cpan/build/2020021419/Photonic-0.011-lLWt9s/blib/lib/Photonic/Geometry/FromImage2D.pm line 118) line 8 Photonic::Geometry::FromImage2D::B(Photonic::Geometry::FromImage2D=HASH(0x55df8b891a20)) called at /home/cpansand/.cpan/build/2020021419/Photonic-0.011-lLWt9s/blib/lib/Photonic/Roles/Geometry.pm line 154 Photonic::Roles::Geometry::_build_npoints(Photonic::Geometry::FromImage2D=HASH(0x55df8b891a20)) called at reader Photonic::Geometry::FromImage2D::npoints (defined at /home/cpansand/.cpan/build/2020021419/Photonic-0.011-lLWt9s/blib/lib/Photonic/Roles/Geometry.pm line 69) line 8 Photonic::Geometry::FromImage2D::npoints(Photonic::Geometry::FromImage2D=HASH(0x55df8b891a20)) called at t/geometry.t line 103 # Looks like you planned 39 tests but ran 32. # Looks like your test exited with 255 just after 32. t/geometry.t .................. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 7/39 subtests ...
Thanks! Sorry for the delay. I just saw the ticket today. On Sat Feb 15 14:59:08 2020, SREZIC wrote: Show quoted text
> t/geometry.t seems to fail if netpbm is not installed: > > ...
On Wed Mar 25 11:09:49 2020, WLMB wrote: Show quoted text
> Thanks! > Sorry for the delay. I just saw the ticket today. > > On Sat Feb 15 14:59:08 2020, SREZIC wrote:
> > t/geometry.t seems to fail if netpbm is not installed: > > > > ...
I added code to geometry.t to check that the image converter is available, and otherwise skip the failing tests. Hope this solves the problem. I'm uploading version 0.012 which must have the problem fixed. Please let me know if the fix worked.
On Wed Mar 25 14:12:12 2020, WLMB wrote: Show quoted text
> ... > > I added code to geometry.t to check that the image converter is > available, and otherwise skip the failing tests. Hope this solves the > problem. I'm uploading version 0.012 which must have the problem > fixed. Please let me know if the fix worked.
I added code to Photonic::Geometry::FromImageB to die gracefully when asked to open an image file that PDL::IO::Pic doesn't understand
I guess the issue was solved in 0.014.