Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MicaSense Image Processing Setup #229

Open
job012 opened this issue Dec 11, 2024 · 1 comment
Open

MicaSense Image Processing Setup #229

job012 opened this issue Dec 11, 2024 · 1 comment

Comments

@job012
Copy link

job012 commented Dec 11, 2024

In the MicaSense Image Processing Setup, I got after running

  • first cell:

Successfully imported all required libraries. Successfully executed exiftool.

  • second cell:

FileNotFoundError Traceback (most recent call last)
Cell In[2], line 7
3 imageName = glob.glob(os.path.join(imagePath,'IMG_0001_1.tif'))[0]
5 exiftool_path = None
----> 7 img = Image(imageName)
8 img.plot_raw(figsize=(8.73,8.73));
10 from micasense.panel import Panel

File ~\imageprocessing\micasense\image.py:72, in Image.init(self, image_path, exiftool_obj, allow_uncalibrated)
70 raise IOError("Provided path is not a file: {}".format(image_path))
71 self.path = image_path
---> 72 self.meta = metadata.Metadata(self.path, exiftool_obj=exiftool_obj)
74 if self.meta.band_name() is None:
75 raise ValueError("Provided file path does not have a band name: {}".format(image_path))

File ~\imageprocessing\micasense\metadata.py:51, in Metadata.init(self, filename, exiftool_path, exiftool_obj)
49 if not os.path.isfile(filename):
50 raise IOError("Input path is not a file")
---> 51 with exiftool.ExifToolHelper() as exift:
52 self.exif = exift.get_metadata(filename)

File ~\anaconda3\envs\micasense\lib\site-packages\exiftool\helper.py:100, in ExifToolHelper.init(self, auto_start, check_execute, check_tag_names, **kwargs)
92 """
93 :param bool auto_start: Will automatically start the exiftool process on first command run, defaults to True
94 :param bool check_execute: Will check the exit status (return code) of all commands. This catches some invalid commands passed to exiftool subprocess, defaults to True. See :py:attr:check_execute for more info.
(...)
97 :param kwargs: All other parameters are passed directly to the super-class constructor: :py:meth:exiftool.ExifTool.__init__()
98 """
99 # call parent's constructor
--> 100 super().init(**kwargs)
102 self._auto_start: bool = auto_start
103 self._check_execute: bool = check_execute

File ~\anaconda3\envs\micasense\lib\site-packages\exiftool\exiftool.py:292, in ExifTool.init(self, executable, common_args, win_shell, config_file, encoding, logger)
288 self.logger = logger
290 # use the passed in parameter, or the default if not set
291 # error checking is done in the property.setter
--> 292 self.executable = executable or constants.DEFAULT_EXECUTABLE
293 self.encoding = encoding
294 self.common_args = common_args

File ~\anaconda3\envs\micasense\lib\site-packages\exiftool\exiftool.py:366, in ExifTool.executable(self, new_executable)
363 abs_path = shutil.which(new_executable)
365 if abs_path is None:
--> 366 raise FileNotFoundError(f'"{new_executable}" is not found, on path or as absolute path')
368 # absolute path is returned
369 self._executable = str(abs_path)

FileNotFoundError: "exiftool.exe" is not found, on path or as absolute path

@job012 job012 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2024
@job012 job012 reopened this Dec 12, 2024
@job012
Copy link
Author

job012 commented Dec 12, 2024

In a previous version of the repository, I didn't have this problem but still didn't make it till the end of Tutorial 1 because I got an error in the Undistorting images section. I realized the code version of the tutorials is different than the one I cloned. Can it be, that changes of the lastest version created some bugs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant