Forum Discussion

Former Member's avatar
Former Member
4 years ago

converting from Keepass2 using converter [Need 1Password 7]

your version of 1Password: Version 8
the name and version of the password manager you are converting from: Keepass2 v2.49
your OS and version: Windows 10 21H2

I'm trying to use the converter suite https://1password.community/discussion/101693/moving-to-1password-from-another-password-manager but failing at some point in the process.

I won't be able to resume this process until after the holiday (perhaps 11/30).


1Password Version: 8.4.1-2
Extension Version: Not Provided
OS Version: Windows 10

28 Replies

  • MrC's avatar
    MrC
    Super Contributor

    @joseph_fsm

    If that is an XML file, please enable debug mode by adding -d to the command line, and provide the output of the first few lines that show the print_fileinfo debug lines:


    $ perl convert.pl -v -d keepass2 _TestFiles/keepass2/keepass2.xml
    main : Runninng script from '/Users/cappella/Documents/Coding/mrc-converter-suite'
    main : Command Line: -v -d keepass2 _TestFiles/keepass2/keepass2.xml
    main : Output file: /Users/cappella/Desktop/1P_import.1pif
    print_fileinfo : Input file info: "_TestFiles/keepass2/keepass2.xml"
    print_fileinfo : size: 6636901
    print_fileinfo : kind: XML 1.0 document text, ASCII text, with very long lines (64034), with CRLF line terminators
    print_fileinfo : mime: text/xml; charset=us-ascii

  • Former Member's avatar
    Former Member

    In my confusion after arriving for work today, I renamed that file in error. Either I'm missing a step or...

    C:\temp\mrc-converter-suite>perl convert.pl -v keepass2 pm_export.json
    Negative repeat count does nothing at
    C:/Strawberry/perl/vendor/lib/XML/Parser/Expat.pm line 372 (#1)
    (W numeric) You tried to execute the
    x repetition operator fewer than 0
    times, which doesn't make sense.

    Uncaught exception from user code:

        no element found at line 1, column 0, byte 0:
    
        ^
         at C:/Strawberry/perl/vendor/lib/XML/Parser.pm line 187.
        XML::Parser::parsefile(XML::Parser=HASH(0x39e08b8), "pm_export.json") called at C:/Strawberry/perl/site/lib/XML/XPath/XMLParser.pm line 71
        XML::XPath::XMLParser::parse(XML::XPath::XMLParser=HASH(0x3c532f8)) called at C:/Strawberry/perl/site/lib/XML/XPath.pm line 154
        XML::XPath::find(XML::XPath=HASH(0x3c86380), "/KeePassFile/Meta/Binaries/Binary", undef) called at C:/Strawberry/perl/site/lib/XML/XPath.pm line 176
        XML::XPath::findnodes(XML::XPath=HASH(0x3c86380), "/KeePassFile/Meta/Binaries/Binary") called at C:/temp/mrc-converter-suite/./Converters/Keepass2.pm line 112
        Converters::Keepass2::do_import("pm_export.json", undef) called at convert.pl line 175
    
  • MrC's avatar
    MrC
    Super Contributor

    @joseph_fsm

    Ok, that helps. From the README:

    Your export is in JSON format. Export as per the README.

  • Former Member's avatar
    Former Member

    Good Morning! I have lots of duties today, but I want to get this done too. Here's my input and error:

    C:\temp\mrc-converter-suite>perl convert.pl -v keepass2 pm_export.json
    Negative repeat count does nothing at
    C:/Strawberry/perl/vendor/lib/XML/Parser/Expat.pm line 372 (#1)
    (W numeric) You tried to execute the
    x repetition operator fewer than 0
    times, which doesn't make sense.

    Uncaught exception from user code:

        no element found at line 1, column 0, byte 0:
    
        ^
         at C:/Strawberry/perl/vendor/lib/XML/Parser.pm line 187.
        XML::Parser::parsefile(XML::Parser=HASH(0x3a54878), "pm_export.json") called at C:/Strawberry/perl/site/lib/XML/XPath/XMLParser.pm line 71
        XML::XPath::XMLParser::parse(XML::XPath::XMLParser=HASH(0x3cb1368)) called at C:/Strawberry/perl/site/lib/XML/XPath.pm line 154
        XML::XPath::find(XML::XPath=HASH(0x3ce43f0), "/KeePassFile/Meta/Binaries/Binary", undef) called at C:/Strawberry/perl/site/lib/XML/XPath.pm line 176
        XML::XPath::findnodes(XML::XPath=HASH(0x3ce43f0), "/KeePassFile/Meta/Binaries/Binary") called at C:/temp/mrc-converter-suite/./Converters/Keepass2.pm line 112
        Converters::Keepass2::do_import("pm_export.json", undef) called at convert.pl line 175
    
  • MrC's avatar
    MrC
    Super Contributor

    Ok, sounds good. I'll just need to know what's failing for you.

    Happy Holidays, @joseph_fsm

  • Former Member's avatar
    Former Member

    Actually, I'll wait until Tuesday. I've have a long couple of days already...

  • Former Member's avatar
    Former Member

    If you're available now, I could stay a little longer.

  • MrC's avatar
    MrC
    Super Contributor

    @joseph_fsm

    I'm happy to help, whenever you are able. Just post another message here when you are ready.