mrc-converter-suite is not working properly (looks like Perl error) [Solved]

rinae
rinae
Community Member
edited February 2021 in Mac

Hello.
Recently I tried migration from Enpass to 1Password with the mrc-converter-suite.
I'm using M1 Macbook Air with the latest version of macOS(11.2).

However, the Perl script throws an error and nothing happened. Here's the error below.


Can't locate Date/Calc.pm in @INC (you may need to install the Date::Calc module) (@INC contains: /Users/rinae/Desktop/mrc-converter-suite/. /Users/rinae/Desktop/mrc-converter-suite/lib /opt/homebrew/Cellar/perl/5.32.1/lib/perl5/site_perl/5.32.1/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.32.1/lib/perl5/site_perl/5.32.1 /opt/homebrew/Cellar/perl/5.32.1/lib/perl5/5.32.1/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.32.1/lib/perl5/5.32.1 /opt/homebrew/lib/perl5/site_perl/5.32.1) at /Users/rinae/Desktop/mrc-converter-suite/./Utils/PIF.pm line 18.
BEGIN failed--compilation aborted at /Users/rinae/Desktop/mrc-converter-suite/./Utils/PIF.pm line 18.
Compilation failed in require at convert.pl line 18.
BEGIN failed--compilation aborted at convert.pl line 18 (#1)
(F) You said to do (or require, or use) a file that couldn't be found.
Perl looks for the file in all the locations mentioned in @INC, unless
the file name included the full path to the file. Perhaps you need
to set the PERL5LIB or PERL5OPT environment variable to say where the
extra library is, or maybe the script needs to add the library name
to @INC. Or maybe you just misspelled the name of the file. See
"require" in perlfunc and lib.

Uncaught exception from user code:
Can't locate Date/Calc.pm in @INC (you may need to install the Date::Calc module) (@INC contains: /Users/rinae/Desktop/mrc-converter-suite/. /Users/rinae/Desktop/mrc-converter-suite/lib /opt/homebrew/Cellar/perl/5.32.1/lib/perl5/site_perl/5.32.1/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.32.1/lib/perl5/site_perl/5.32.1 /opt/homebrew/Cellar/perl/5.32.1/lib/perl5/5.32.1/darwin-thread-multi-2level /opt/homebrew/Cellar/perl/5.32.1/lib/perl5/5.32.1 /opt/homebrew/lib/perl5/site_perl/5.32.1) at /Users/rinae/Desktop/mrc-converter-suite/./Utils/PIF.pm line 18.
BEGIN failed--compilation aborted at /Users/rinae/Desktop/mrc-converter-suite/./Utils/PIF.pm line 18.
Compilation failed in require at convert.pl line 18.
BEGIN failed--compilation aborted at convert.pl line 18.


For more information, I printed the perl configutation summary.


Summary of my perl5 (revision 5 version 32 subversion 1) configuration:

Platform:
osname=darwin
osvers=20.2.0
archname=darwin-thread-multi-2level
uname='darwin administrators-mac.local 20.2.0 darwin kernel version 20.2.0: wed dec 2 20:40:22 pst 2020; root:xnu-7195.60.75~1release_arm64_t8020 arm64 '
config_args='-des -Dprefix=/opt/homebrew/Cellar/perl/5.32.1 -Dprivlib=/opt/homebrew/Cellar/perl/5.32.1/lib/perl5/5.32.1 -Dsitelib=/opt/homebrew/Cellar/perl/5.32.1/lib/perl5/site_perl/5.32.1 -Dotherlibdirs=/opt/homebrew/lib/perl5/site_perl/5.32.1 -Dperlpath=/opt/homebrew/opt/perl/bin/perl -Dstartperl=#!/opt/homebrew/opt/perl/bin/perl -Dman1dir=/opt/homebrew/Cellar/perl/5.32.1/share/man/man1 -Dman3dir=/opt/homebrew/Cellar/perl/5.32.1/share/man/man3 -Duseshrplib -Duselargefiles -Dusethreads -Dsed=/usr/bin/sed'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-fno-common -DPERL_DARWIN -mmacosx-version-min=11.1 -fno-strict-aliasing -pipe -fstack-protector-strong -DPERL_USE_SAFE_PUTENV'
optimize='-O3'
cppflags='-fno-common -DPERL_DARWIN -mmacosx-version-min=11.1 -fno-strict-aliasing -pipe -fstack-protector-strong'
ccversion=''
gccversion='Apple LLVM 12.0.0 (clang-1200.0.32.28)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=8
longdblkind=0
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -mmacosx-version-min=11.1 -fstack-protector-strong'
libpth=/opt/homebrew/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/lib /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib
libs=
perllibs=
libc=
so=dylib
useshrplib=true
libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=bundle
d_dlsymun=undef
ccdlflags=' '
cccdlflags=' '
lddlflags=' -mmacosx-version-min=11.1 -bundle -undefined dynamic_lookup -fstack-protector-strong'

Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
MULTIPLICITY
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_ITHREADS
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
USE_REENTRANT_API
USE_THREAD_SAFE_LOCALE
Built under darwin
Compiled at Jan 23 2021 20:05:36
@INC:
/opt/homebrew/Cellar/perl/5.32.1/lib/perl5/site_perl/5.32.1/darwin-thread-multi-2level
/opt/homebrew/Cellar/perl/5.32.1/lib/perl5/site_perl/5.32.1
/opt/homebrew/Cellar/perl/5.32.1/lib/perl5/5.32.1/darwin-thread-multi-2level
/opt/homebrew/Cellar/perl/5.32.1/lib/perl5/5.32.1
/opt/homebrew/lib/perl5/site_perl/5.32.1


Is there anything I can do to resolve this error?


1Password Version: 7.7.1-BETA-7
Extension Version: Not Provided
OS Version: macOS 11.2
Sync Type: 1Password
Referrer: forum-search:converter

Comments

  • ag_ana
    ag_ana
    1Password Alumni

    Hi @rinae! Welcome to the forum!

    Thank you for all the information. I think this user on the forum encountered the same issue some time ago, can you please give the suggestions in that discussion a try, and see if they help?

  • MrC
    MrC
    Volunteer Moderator
    edited February 2021

    @rinae

    Use the full path of the standard macOS install of /usr/bin/perl

    If you are using your own Perl installation, you’ll have to install the required modules via Homebrew’s installation method, if you want to allow that Perl to run. Your PATH is set to default to Homebrew's Perl instead of the default macOS Perl.

  • rinae
    rinae
    Community Member

    @MrC /usr/bin/perl did work. Thanks for your help 👍

  • MrC
    MrC
    Volunteer Moderator

    Excellent @rinae ,

    Enjoy 1Password!

This discussion has been closed.