Convert Keepass version 2.34 data 1PW using user supported utilities

Options

Converting Keepass 2 data to 1PW using utility by "MrC". I'm at step 4 "Perform the conversion". I have entered the command you see below with the resulting error:

. . .
C:\Users\Tom\Desktop\convert_to_1p4>perl convert_to_1p4.pl keepass2 -v ..\pm_export.txt
The file '..\pm_export.txt' does not exist.

C:\Users\Tom\Desktop\convert_to_1p4>
. . .

The file, pm_export.txt truly does exist in two places:
C:\Users\Tom\Desktop\convert_to_1p4
and
C:\Users\Tom\Desktop

Would someone help me past this hurdle please?


1Password Version: 6.1.272d
Extension Version: 4.6.1.90
OS Version: Windows 10
Sync Type: iCloud

Comments

  • MrC
    MrC
    Volunteer Moderator
    edited October 2016
    Options

    Hi @tgtmontana ,

    Happy to help, and sorry for your troubles.

    It appears your working directory in the command shell is the same place where the conversion script is located (or you would have received a different error).

    The error you see typically occurs when you have shell extensions hidden by default, and your file name might actually be something like pm_export.txt.xml, and you only see pm_export.txt.

    The way to verify the filename is to use the dir command to see the contents of the directory. Try:

    dir ..\pm*.*
    

    and see what you get back.

    Alternatively, use shell filename auto-completion to type the full name for you. As you enter the filename, only enter the first couple of letters in the path:

    ..\pm_
    

    and then hit Tab one or more times until the filename fully completes.

    Let's see if this helps you. If not, post the output of:

     dir
    

    while you are in the convert_to_1p4 directory.

  • MrC
    MrC
    Volunteer Moderator
    edited October 2016
    Options

    @tgtmontana ,

    Oh, by the way, be sure to use the 1.09 version in Testing Bits mentioned in the converter suite thread. It contains some keepass2 fixes:

    • Converter keepass2 was in some cases incorrectly handling the status result of decompressing an attachment, and in this case, was also prematurely aborting the import conversion, causing the inability to create the 1PIF output file.
    • Converter keepass2 will store an entry's historic passwords (from the History element) into 1Password's Previously used passwords list.
  • tgtmontana
    tgtmontana
    Community Member
    Options

    Worked like a charm. Thanks so much. As you suspected, the complete file name is: "pm_export.txt.xml"

    Conversion completed as follows:

    C:\Users\Tom\Desktop\convert_to_1p4>perl convert_to_1p4.pl keepass2 -v ..\pm_export.txt.xml
    Imported 133 items
    Exported 133 login items
    Exported 133 total items
    You may now import the file C:\Users\Tom\Desktop\1P_import.1pif into 1Password

    Thanks again!

  • MrC
    MrC
    Volunteer Moderator
    Options

    @tgtmontana ,

    Excellent! Enjoy 1Password.

  • AGAlumB
    AGAlumB
    1Password Alumni
    Options

    @tgtmontana: I'm glad to hear you were able to get your data converted. Be sure to let us know if you have any questions about 1Password! :)

This discussion has been closed.