Closed mortbauer closed 12 years ago
are you on master or testing? can you pinpoint the commit that breaks things for you?
sorry actually i can't pinpoint it, i'm not even sure if it maybe happend after an upgrade of some python package, but i tryed now both master and testing with the same result.
Quoting mortbauer (2012-02-02 22:49:27)
sorry actually i can't pinpoint it, i'm not even sure if it maybe happend after an upgrade of some python package, but i tryed now both master and testing with the same result.
Reply to this email directly or view it on GitHub: https://github.com/pazz/alot/issues/301#issuecomment-3788319
I bet that the problem is in helper.py, line 261 where we call magic.open.
Please check your installed version of libmagics python bindings: cyting INSTALL:
python bindings to libmagic, greater or equal than v5.04:
http://darwinsys.com/file/ This is packaged as 'python-magic' in debian/ubuntu.
There are other bindings around, but alot depends on exactly this implementation and version. In particular: dont use anything you got from PYPI, they are all unmaintained or broken :/
/p
you are right, i installed a newer version of the python bindings for libmagic and it works fine now.
thanks
great! i just wonder why you downgraded.. maybe it only worked with pre-magic versions of alot for you.. anyway, cheers.
When i try to attach a file in compose mode i get following output in my logfile in debug mode:
DEBUG:init:mode:envelope got commandline "prompt 'attach ~/'" DEBUG:init:ARGS: [u'prompt', u'attach ~/'] DEBUG:init:PARMS: {'startwith': u'attach ~/'} DEBUG:init:cmd parms {'posthook': None, 'startwith': u'attach ~/', 'prehook': None} DEBUG:ui:apply command: <alot.commands.globals.PromptCommand object at 0x2c38b50> INFO:globals:open command shell DEBUG:init:mode:global got commandline "bnext" DEBUG:init:ARGS: [u'bnext'] DEBUG:init:PARMS: {'offset': 1} DEBUG:init:cmd parms {'posthook': None, 'prehook': None, 'offset': 1} DEBUG:init:mode:global got commandline "select" DEBUG:init:ARGS: [u'select'] DEBUG:init:PARMS: {'key': 'select'} DEBUG:init:cmd parms {'prehook': None, 'key': 'select', 'posthook': None} DEBUG:ui:apply command: <alot.commands.globals.SendKeypressCommand object at 0x27c6250> DEBUG:globals:CMDLINE: attach /home/martin/facebook.pdf DEBUG:init:mode:envelope got commandline "attach /home/martin/facebook.pdf" DEBUG:init:ARGS: [u'attach', u'/home/martin/facebook.pdf'] DEBUG:init:PARMS: {'path': u'/home/martin/facebook.pdf'} DEBUG:init:cmd parms {'path': u'/home/martin/facebook.pdf', 'prehook': None, 'posthook': None} DEBUG:ui:apply command: <alot.commands.envelope.AttachCommand object at 0x27c63d0> INFO:envelope:attaching: [u'/home/martin/facebook.pdf'] DEBUG:ui:Traceback (most recent call last): Failure: exceptions.AttributeError: 'module' object has no attribute 'open'
DEBUG:init:mode:envelope got commandline "exit" DEBUG:init:ARGS: [u'exit'] DEBUG:init:PARMS: {} DEBUG:init:cmd parms {'prehook': None, 'posthook': None} DEBUG:ui:apply command: <alot.commands.globals.ExitCommand object at 0x2c31910>
This appears with evry filetype i tryed so far.