[python] can't find shared lib
On Wed, 05 Oct 2011 13:58:14 +0100, Patrick Totzke wrote: > I fumbled around with resetting come commits, and it turns out that the > problem is in 9e976fc60c40e07cb62a7d656e86ee3101c1b2f5. Once resetted before > that, > everything works nicely. Thanks for the pointer :) [master 7047975] python: also use libnotmuch.so.2 Sebastian -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111005/ce4cb086/attachment.pgp>
[PATCH] lib: make find_message{,by_filename) report errors
The new API looks sane and much better to me. +1, just give me plenty of time to catch up before releasing once this goes in :-) Sebastian -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111005/972eeedb/attachment.pgp>
[python] can't find shared lib
I fumbled around with resetting come commits, and it turns out that the problem is in 9e976fc60c40e07cb62a7d656e86ee3101c1b2f5. Once resetted before that, everything works nicely. The strange thing is that with the current HEAD, so including this commit, the CLI interface works, only the python bindings seem affected. I forgot to mention, I'm on Ubuntu 11.04. best, /p Quoting Patrick Totzke (2011-10-05 13:49:57) >Hi everyone, >It seems we have a problem with ctypes and libnotmuch: >I manually removed everything notmuch related from my system and pulled the >latest master branch from git. >After a successful make;sudo make install; >i installed the python bindings from notmuch/bindings/python >via `sudo python ./setup.py install`, which also succeeded. However, If I >start using the bindings I get: > >```... > File "/usr/local/lib/python2.7/dist-packages/notmuch/__init__.py", line 55, > in >from notmuch.database import Database, Query > File "/usr/local/lib/python2.7/dist-packages/notmuch/database.py", line 22, > in >from notmuch.globals import nmlib, STATUS, NotmuchError, Enum, _str > File "/usr/local/lib/python2.7/dist-packages/notmuch/globals.py", line 28, > in >raise ImportError("Could not find shared 'notmuch' library.") >ImportError: Could not find shared 'notmuch' library. >``` > >Any ideas? >best, >/p
[python] can't find shared lib
Hi everyone, It seems we have a problem with ctypes and libnotmuch: I manually removed everything notmuch related from my system and pulled the latest master branch from git. After a successful make;sudo make install; i installed the python bindings from notmuch/bindings/python via `sudo python ./setup.py install`, which also succeeded. However, If I start using the bindings I get: ```... File "/usr/local/lib/python2.7/dist-packages/notmuch/__init__.py", line 55, in from notmuch.database import Database, Query File "/usr/local/lib/python2.7/dist-packages/notmuch/database.py", line 22, in from notmuch.globals import nmlib, STATUS, NotmuchError, Enum, _str File "/usr/local/lib/python2.7/dist-packages/notmuch/globals.py", line 28, in raise ImportError("Could not find shared 'notmuch' library.") ImportError: Could not find shared 'notmuch' library. ``` Any ideas? best, /p
python: unpythonic result of Message.get_replies()
Hi everyone :) I noticed that Message.get_replies() returns a Messages object *or* None. Quoting the documentation: > Returns: Messages or None if there are no replies to this message Messages is a class implementing the iterator protocol, so a python programmer would expect to get an iterator that raises a StopIteration on the first invocation of next() if there aren't any replies. With the current implementation one needs to do something like replies = message.get_replies() if replies != None: for reply in replies: [...] which looks awkward. Imho one should be able to just do for reply in message.get_replies(): [...] What do you think? Would it be possible to get this into the 0.9 release? I could propose a patch if you like, but not today... Justus -- next part -- A non-text attachment was scrubbed... Name: .signature Type: application/octet-stream Size: 17 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111005/ab0fbc26/attachment.obj>
[python] can't find shared lib
Hi everyone, It seems we have a problem with ctypes and libnotmuch: I manually removed everything notmuch related from my system and pulled the latest master branch from git. After a successful make;sudo make install; i installed the python bindings from notmuch/bindings/python via `sudo python ./setup.py install`, which also succeeded. However, If I start using the bindings I get: ```... File /usr/local/lib/python2.7/dist-packages/notmuch/__init__.py, line 55, in module from notmuch.database import Database, Query File /usr/local/lib/python2.7/dist-packages/notmuch/database.py, line 22, in module from notmuch.globals import nmlib, STATUS, NotmuchError, Enum, _str File /usr/local/lib/python2.7/dist-packages/notmuch/globals.py, line 28, in module raise ImportError(Could not find shared 'notmuch' library.) ImportError: Could not find shared 'notmuch' library. ``` Any ideas? best, /p ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Re: [python] can't find shared lib
I fumbled around with resetting come commits, and it turns out that the problem is in 9e976fc60c40e07cb62a7d656e86ee3101c1b2f5. Once resetted before that, everything works nicely. The strange thing is that with the current HEAD, so including this commit, the CLI interface works, only the python bindings seem affected. I forgot to mention, I'm on Ubuntu 11.04. best, /p Quoting Patrick Totzke (2011-10-05 13:49:57) Hi everyone, It seems we have a problem with ctypes and libnotmuch: I manually removed everything notmuch related from my system and pulled the latest master branch from git. After a successful make;sudo make install; i installed the python bindings from notmuch/bindings/python via `sudo python ./setup.py install`, which also succeeded. However, If I start using the bindings I get: ```... File /usr/local/lib/python2.7/dist-packages/notmuch/__init__.py, line 55, in module from notmuch.database import Database, Query File /usr/local/lib/python2.7/dist-packages/notmuch/database.py, line 22, in module from notmuch.globals import nmlib, STATUS, NotmuchError, Enum, _str File /usr/local/lib/python2.7/dist-packages/notmuch/globals.py, line 28, in module raise ImportError(Could not find shared 'notmuch' library.) ImportError: Could not find shared 'notmuch' library. ``` Any ideas? best, /p ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch