Forum Discussion

Former Member's avatar
Former Member
3 years ago

MrC's converter file fails [Requires Perl modules installation]

I'm trying to use MrC's converter file to convert a Lastpass export into 1pass format, and everytime I try to run it (including with the -h or --help option) I get an error message.

I've downloaded and extracted the converters, and I'm running from the command line. Here's what I get:
```
Error: failed to load converter module 'lastpass'
Can't locate Date/Calc.pm in @INC (you may need to install the Date::Calc module) (@INC contains: /home/ted/Documents/danger/mrc-converter-suite - released version/mrc-converter-suite-2022-10-12-0941/mrc-converter-suite/. /home/ted/Documents/danger/mrc-converter-suite - released version/mrc-converter-suite-2022-10-12-0941/mrc-converter-suite/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /home/ted/Documents/danger/mrc-converter-suite - released version/mrc-converter-suite-2022-10-12-0941/mrc-converter-suite/./Converters/Lastpass.pm line 19.
BEGIN failed--compilation aborted at /home/ted/Documents/danger/mrc-converter-suite - released version/mrc-converter-suite-2022-10-12-0941/mrc-converter-suite/./Converters/Lastpass.pm line 19.
Compilation failed in require at convert.pl line 237.

Usage: convert.pl lastpass

Options:

Include one of the converters above on the command line to see more complete options.
Example:

perl convert.pl ewallet --help

```


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Ubuntu 22.04.1
Browser:_ Firefox

5 Replies

  • MrC's avatar
    MrC
    Super Contributor

    Thanks for the additional information @tidmarsh . I'll add that to my list.

    I rarely have to update in Linux, so get behind in the list of modules that are required for any given distro. Since there are very few password managers here, the converter suite is only required occasionally in Linux.

    Enjoy 1Password!

  • Former Member's avatar
    Former Member

    I also had to sudo apt-get install libarchive-zip-perl, but that got it. Thanks!

  • MrC's avatar
    MrC
    Super Contributor

    @tidmarsh

    Do the same thing, but for the IO::String module:


    sudo apt-get install libio-string-perl

  • Former Member's avatar
    Former Member

    Thanks for the quick reply. I installed the module above, and now I get a different error:
    ```
    Error: failed to load converter module 'lastpass'
    Can't locate IO/String.pm in @INC (you may need to install the IO::String module) (@INC contains: /home/ted/Documents/danger/mrc-converter-suite - released version/mrc-converter-suite-2022-10-12-0941/mrc-converter-suite/. /home/ted/Documents/danger/mrc-converter-suite - released version/mrc-converter-suite-2022-10-12-0941/mrc-converter-suite/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /home/ted/Documents/danger/mrc-converter-suite - released version/mrc-converter-suite-2022-10-12-0941/mrc-converter-suite/./Converters/Lastpass.pm line 23.
    BEGIN failed--compilation aborted at /home/ted/Documents/danger/mrc-converter-suite - released version/mrc-converter-suite-2022-10-12-0941/mrc-converter-suite/./Converters/Lastpass.pm line 23.
    Compilation failed in require at convert.pl line 237.

    ```
    I then followed the directions at https://metacpan.org/pod/IO::String for installing IO::String, but get the same "Can't locate IO/String.pm in @INC..." error message

  • MrC's avatar
    MrC
    Super Contributor

    @tidmarsh

    I'm sorry that I do not have a proper modules installation script for the various Linux systems.

    To install the required Date::Calc module, run the command:


    sudo apt-get install libdate-calc-perl

    Then convert as per the instructions.


    $ perl convert.pl lastpass -v ../lastpass_safari_ext_export.csv
    Import summary:
    38 items discovered
    Export summary:
    1 Database item
    1 Driver License item
    1 Email Account item
    1 Passport item
    1 Software License item
    1 Wireless Router item
    2 Credit Card items
    2 Server items
    3 Bank Account items
    3 Membership items
    3 Social Security Number items
    4 Login items
    15 Secure Note items
    38 total items
    You may now import the file below into 1Password 8:
    /home/MrC/Desktop/MCS_converted.1pux