PiDNG icon indicating copy to clipboard operation
PiDNG copied to clipboard

RPICAM2DNG for RaspberryPiHqCamera is broken

Open RostakaGmfun opened this issue 2 years ago • 3 comments

The latest code expects the "fmt" dictionary to be present in camera's "model", while it is a string, hence the below AttributeError is raised:

 File "/project/PiDNG/src/pidng/core.py", line 120, in convert
    unpacked = self.__unpack_pixels__(image)
  File "/project/PiDNG/src/pidng/core.py", line 173, in __unpack_pixels__
    if "CSI2P" in self.model.fmt.get("format", ""):
AttributeError: 'RaspberryPiHqCamera' object has no attribute 'fmt'

RostakaGmfun avatar Jun 08 '22 10:06 RostakaGmfun

Seeing the same error, looks like the format was changed to accommodate the newer picamera2 but not backward compatible...

Tschucker avatar Jun 09 '22 18:06 Tschucker

Hello,

I can't commit to an exact timeframe, but I will try to address this soon.

schoolpost avatar Jun 10 '22 05:06 schoolpost

I submitted Pull request #74 to fix this.

mcnalu avatar May 04 '23 11:05 mcnalu