linux-photogrammetry-tools icon indicating copy to clipboard operation
linux-photogrammetry-tools copied to clipboard

TypeError: cannot unpack non-iterable IFDRational object

Open Mobi97213 opened this issue 1 year ago • 7 comments

I don't know how to fix this... Should I just bail on this tool and find something else?

My Google searches suggest this is a coding error. The NONE result can not be assigned to a variable.

Extracting focal distances...Traceback (most recent call last): File "/home/rick/Downloads/Linux-Photogrametry-Tools/lpt-v0.1.0/work_dir/bundler.py", line 388, in images = extract_focal_length(verbose=args.verbose) File "/home/rick/Downloads/Linux-Photogrametry-Tools/lpt-v0.1.0/work_dir/bundler.py", line 98, in extract_focal_length focalN, focalD = tags.get('FocalLength', (0, 1)) TypeError: cannot unpack non-iterable IFDRational object make: *** [Makefile:27: bundler] Error 1

My environment: Ubuntu 22.10 soon to upgrade to 23.04 next month. Python 3.10.7

I had to change libceres1 to libceres3 on the following install...

sudo apt install build-essential libjpeg62 liblapack3 libceres3 jhead python3 python3-pil python3-ruamel.yaml build-essential is already the newest version (12.9ubuntu3). libjpeg62 is already the newest version (1:6b2-3). liblapack3 is already the newest version (3.10.1-2). libceres3 is already the newest version (2.1.0+really2.1.0+dfsg-1). jhead is already the newest version (1:3.06.0.1-2). python3 is already the newest version (3.10.6-1). python3-pil is already the newest version (9.2.0-1). python3-ruamel.yaml is already the newest version (0.17.16-1).

Mobi97213 avatar Mar 21 '23 03:03 Mobi97213