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

AttributeError on notmuch database object #28

Closed
maxking opened this issue Jun 7, 2017 · 8 comments
Closed

AttributeError on notmuch database object #28

maxking opened this issue Jun 7, 2017 · 8 comments

Comments

@maxking
Copy link
Contributor

maxking commented Jun 7, 2017

Traceback (most recent call last):
  File "/usr/local/bin/gmi", line 8, in <module>
    g.main ()
  File "/home/maxking/Documents/gmailieer/lieer/gmailieer.py", line 136, in main
    args.func (args)
  File "/home/maxking/Documents/gmailieer/lieer/gmailieer.py", line 307, in pull
    self.full_pull ()
  File "/home/maxking/Documents/gmailieer/lieer/gmailieer.py", line 538, in full_pull
    (rev, uuid) = db.get_revision ()
AttributeError: 'Database' object has no attribute 'get_revision'

Not sure what this means but I was trying to create a fresh maildir using gmailieer. I have python3.5.2 on Linux Mint 18.1.

@maxking
Copy link
Contributor Author

maxking commented Jun 7, 2017

It looks like Database object has a get_version method which returns only an int object which is rev.

I can send in a pull request to fix this if you are Ok with it?

@julian-klode
Copy link
Contributor

You need current git of notmuch for it to work, that adds get_revision.

@maxking
Copy link
Contributor Author

maxking commented Jun 7, 2017

Works like a charm! Thanks very much!

@maxking maxking closed this as completed Jun 7, 2017
@maxking
Copy link
Contributor Author

maxking commented Jun 7, 2017

Maybe add this information to documentation till the next version of python-notmuch comes out?

@gauteh
Copy link
Owner

gauteh commented Jun 7, 2017 via email

@maxking maxking reopened this Jun 8, 2017
@maxking
Copy link
Contributor Author

maxking commented Jun 8, 2017

I will just keep it open so that I remember to send a PR for the documentation, hope that is OK!

@gauteh
Copy link
Owner

gauteh commented Jun 8, 2017 via email

@gauteh
Copy link
Owner

gauteh commented Jun 12, 2017

Fixed in #31.

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

3 participants