Closed oPromessa closed 2 months ago
This was introduced with the addition of colored output and --theme
. I'm using a rich.console.Console
to print verbose output instead of click.echo
. When the console object detects it's not writing to a terminal, it assumes line width is 80
and wraps texts. I think the preferred behavior should be to never wrap text (that's what \n
is for). I'll work on a fix to set the terminal width to a huge number so it never wraps (I already do this for testing as the wrapped text breaks the test suite)
I think this is fixed in v0.47.6.
Hello there. On version 0.54.4 I'm having a similar issue, but this time without the verbose.
In a combination of running osxphotos with > log.txt 2>&1 from MAC's crontab using verbose, timestamp and post-function output lines are being broken when. Is it maybe post-function?
osxphotos export "${DSTFOLDER}" --exportdb ${FOLDER}/.osxphotos_export.db --load-config ${WORKFOLDER}/colibri.toml >> ${LOGFILE} 2>&1
[export]
cleanup = true
db = "/Users/Shared/Pictures/iPhoto Shared Library.photoslibrary"
description_template = "Album:{album,}{newline}Description:{descr,}"
directory = "{album|filter(startswith 1|2)[/,.|:,.]}"
exiftool = true
exiftool_merge_keywords = true
exiftool_merge_persons = true
keyword_template = [ "{keyword}", "{label}", "{searchinfo.activity?activity:{searchinfo.activity},}", "{searchinfo.venue_type?venue_type:{searchinfo.venue_type},}", ]
no_progress = true
not_hidden = true
ramdb = true
retry = 2
skip_bursts = true
skip_live = true
skip_original_if_edited = true
strip = true
timestamp = true
touch_file = true
update = true
2022-11-07 03:44:04.172845 -- Warning: export database '/Users/Shared/Pictures/Logs/.osxphotos_export.db' is in a different directory than export destination '/Volumes/photo-1/Family.Photos'
2022-11-07 03:44:49.039606 -- Exporting 88920 photos to
/Volumes/photo-1/Family.Photos...
2022-11-07 06:55:30.382067 -- ❌️ exiftool error for file
/Volumes/photo-1/(...)/P7120123_edited.jpeg: Error:
Bad format (12592) for MakerNotes entry 0 - /tmp/osxphotos_export_87or0zge/16BE5
85E-1F3D-402C-9EC6-DD5531DBA262_1_201_a_exiftool.jpegError: Bad format (12592)
for MakerNotes entry 0 - /tmp/osxphotos_export_87or0zge/16BE585E-1F3D-402C-9EC6-
DD5531DBA262_1_201_a_exiftool.jpegError: Bad format (12592) for MakerNotes
entry 0 - /tmp/osxphotos_export_87or0zge/16BE585E-1F3D-402C-9EC6-DD5531DBA262_1_
201_a_exiftool.jpegError: Bad format (12592) for MakerNotes entry 0 - /tmp/osxp
hotos_export_87or0zge/16BE585E-1F3D-402C-9EC6-DD5531DBA262_1_201_a_exiftool.jpeg
Error: Bad format (12592) for MakerNotes entry 0 - /tmp/osxphotos_export_87or0z
ge/16BE585E-1F3D-402C-9EC6-DD5531DBA262_1_201_a_exiftool.jpeg
2022-11-07 06:55:30.391416 -- ❌️ Error exporting photo
I'll take a look when I get a chance.
No longer using crontab. Closing this issue.
Describe the bug In a combination of running osxphotos with
> log.txt 2>&1
from MAC's crontab usingverbose
,timestamp
andpost-function
output lines are being broken when. Is it maybe post-function?On vi with line numbers you can see the output...
To Reproduce Steps to reproduce the behavior:
from osxphotos import PhotoInfo, ExportResults (...)
def post_touch( photo: PhotoInfo, results: ExportResults, verbose: callable, **kwargs): (...)