What I find weird is that there’s a notable delay between the output of the warnf line and the error message. Though I suppose that it is not really the culprit here: If I remove it from the bundle, the error occurs after warnf printed the URL of the image just before this one. Running print(os.environ) in IDLE but now from prompt using IDLE3 /Library/Frameworks/amework/Versions/3.8/bin:/usr/local/fsl/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin~/.And the image. The key difference being it ends: AttributeError: 'list' object has no attribute 'encode'Įdit 3: Additional troubleshooting off the back of Tripleee's queries Return json.loads(self.execute(b"-j", *params).decode("utf-8"))įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/exiftool.py", line 108, in fsencodeĪttributeError: 'list' object has no attribute 'encode' Return self.get_tag_batch(tag, )įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/exiftool.py", line 312, in get_tag_batchĭata = self.get_tags_batch(, filenames)įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/exiftool.py", line 291, in get_tags_batchįile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/exiftool.py", line 252, in execute_json Metadata = et.get_tag('Date Created', files)įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/exiftool.py", line 325, in get_tag Traceback (most recent call last):įile "/Users/username/Documents/test.py", line 9, in Well now I open terminal and input IDLE3 so that it is opened from prompt, not via the icon on my hotbar. Until I open a new terminal window/tab, a which point the problem returns. Now running type -all exiftool in Bash gives only. > I used some code I found elsewhere to try and fix this. Running type -all exiftool in Bash gave two paths. Running print(os.environ) in IDLE /usr/bin:/bin:/usr/sbin:/sbinĮdit 2: Additional troubleshooting off the back of Tripleee's queries Running type -all exiftool in Bash exiftool is /usr/local/bin/exiftool py document and then it runs in my idle shell? > I just have that snippet of code in a. (Excuse my ignorance if and when I give the wrong information) Incidentally, this also confirms that my path is correct.Įdit 1: Additional information as per the request of tripleee ExifTool returns all the Exif data for my test image including an in-tact 'Date Created' field. $ exiftool /Users/username/Pictures/testimage.jpg I can be certain ExifTool is correctly installed because if in command line I run. Presumably, the key piece of information here is: FileNotFoundError: No such file or directory: 'exiftool'Įxcept that I don't really understand what I am being told? ExifTool is supposed to be a tool, I am not intentionally trying to access it as a file or directory. Raise child_exception_type(errno_num, err_msg, err_filename)įileNotFoundError: No such file or directory: 'exiftool' Self._execute_child(args, executable, preexec_fn, close_fds,įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child Traceback (most recent call last):įile "/Users/username/Documents/test.py", line 7, in įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/exiftool.py", line 191, in _enter_įile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/site-packages/exiftool.py", line 170, in startįile "/Library/Frameworks/amework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in _init_ As I am very new to coding I am struggling to troubleshoot this response. Metadata = et.get_tag('DateCreated', files) This is what my code looks like: import exiftoolįiles = I am using an almost identical copy of what can be found in the github support documents and another StackOverflow resource. I am trying to use PyExifTool to examine the EXIF data of given images.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |