ExifTool Forum

ExifTool => Install Problems => Topic started by: christopher on January 12, 2018, 10:51:05 PM

Title: Error running exifr in Rstudio
Post by: christopher on January 12, 2018, 10:51:05 PM
Wondering if anyone has experience with this issue when running exifr in RStudio
I've run exifr on two other computers with exiftool.exe placed in the C:/Windows directory with no issues.
However the computer (Windows 10) i'm using now i can't figure out what the issue is.
exiftool files are in the temp folder (par-53746576656e) and exiftool runs from the cmd prompt no problems.

library(exifr)
Error: package or namespace load failed for 'exifr':
.onLoad failed in loadNamespace() for 'exifr', details:
  call: configure_perl(quiet = quiet)
  error: Could not find perl at any of the following locations: perl, C:\Perl64\bin\perl, C:\Perl\bin\perl, C:\Strawberry\perl\bin\perl. Specify perl location using options(exifr.perlpath='my/path/to/perl')
Title: Re: Error running exifr in Rstudio
Post by: Phil Harvey on January 13, 2018, 08:59:58 AM
Can you run exiftool from the command line?

- Phil
Title: Re: Error running exifr in Rstudio
Post by: StarGeek on January 13, 2018, 01:51:08 PM
Quote from: christopher on January 12, 2018, 10:51:05 PM
  error: Could not find perl at any of the following locations: perl, C:\Perl64\bin\perl, C:\Perl\bin\perl, C:\Strawberry\perl\bin\perl. Specify perl location using options(exifr.perlpath='my/path/to/perl')

The error seems to be that there is a problem in finding perl.  Those paths look like the proper places for either ActivePerl and Strawberry Perl.

What version of Perl do you have installed and what's the path to it?
Title: Re: Error running exifr in Rstudio
Post by: christopher on January 13, 2018, 11:57:16 PM
Yes exiftool runs from the command line

Yeh i had to install strawberry Perl which i haven't had to do in the past and this fixed the problem. Thanks.
There seems to have been an update to the exifr package for R which may have led to this being a requirement