Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traceback error when import of keypass2.xml #52

Closed
christian-weiss opened this issue Nov 18, 2018 · 5 comments
Closed

Traceback error when import of keypass2.xml #52

christian-weiss opened this issue Nov 18, 2018 · 5 comments

Comments

@christian-weiss
Copy link

Command:
pass import keepass keypass2.38_onUbuntu.xml

Error:

Traceback (most recent call last):
  File "/usr/lib/password-store/import/import.py", line 776, in <module>
    main(sys.argv)
  File "/usr/lib/password-store/import/import.py", line 732, in main
    importer.parse(file)
  File "/usr/lib/password-store/import/import.py", line 334, in parse
    self._import(root)
  File "/usr/lib/password-store/import/import.py", line 513, in _import
    self._import(group, path)
  File "/usr/lib/password-store/import/import.py", line 516, in _import
    entry['title'] = self._getpath(xmlentry)
  File "/usr/lib/password-store/import/import.py", line 551, in _getpath
    return os.path.join(path, title)
  File "/usr/lib/python3.6/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.6/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'NoneType'
pass version
============================================
= pass: the standard unix password manager =
=                                          =
=                  v1.7.1                  =
=                                          =
=             Jason A. Donenfeld           =
=               Jason@zx2c4.com            =
=                                          =
=      http://www.passwordstore.org/       =
============================================
python3 --version
Python 3.6.5
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"

How to solve that? (How to debug?)

@roddhjav
Copy link
Owner

Hi, could you tell me which version of pass-import you are using?

@christian-weiss
Copy link
Author

It was late night, i forgot to mention, sorry.

I installed it yesterday via:

git clone https://github.com/roddhjav/pass-import/
cd pass-import
sudo make install

so it is most up-to-date

@roddhjav
Copy link
Owner

Ok, I was able to reproduce the bug. This is because in your xml export file you have either a 'Group' name or an 'Entry' title that is empty and therefore that return nothing as value.

As an fast fix you can edit your xml file and add a name. Otherwise a real fix will come soon.

@roddhjav
Copy link
Owner

It should be fixed now.

@christian-weiss
Copy link
Author

Confirm. Issue is fixed.

roddhjav added a commit that referenced this issue Nov 26, 2018
* master:
  Fix revelation import
  Fail if the gpg public key is not in the keyring.
  keepass: fix import with no title/group name #52
  Add install instruction for NixOS and Gentoo Linux.
  Correcting description in manpage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants