Re: [python-win32] get MAPI session from OOM
Am 03/06/18 um 12:51 schrieb Christian K.: > Am 2018-05-31 03:31, schrieb t...@probo.com: >> On May 30, 2018, at 11:23 AM, ckk...@hoc.net wrote: >>> >>> >>> Any ideas? Do you think it will help to do a fresh install of office >>> 2016? >> >> In addition to just installing Outlook, have you configured Outlook? >> You can't access MAPI unless you have incoming and outgoing servers >> configured and authenticated. > > I installed Office 2016 from scratch and still get the same error. But I > could make a new observation. When running a standalone script > > from win32com.client import Dispatch > o = Dispatch('Outlook.Application') > o.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession) > > > a window opens saying that there is no standard mail application > defined. I checked in the system settings and changed the setting from > the windows 10 mail app to outlook but I still get that error. I get it > too when I initialize a MAPISession like this: > > from win32com.mapi import mapi > mapi.MAPIInitialize((0,mapi.MAPI_MULTITHREAD_NOTIFICATIONS)) > I got it. This was due to a very stupid mistake. I tried to connect to 32 bit office from 64 bit python. Sorry for the noise. Christian ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] get MAPI session from OOM
Am 2018-05-31 03:31, schrieb t...@probo.com: On May 30, 2018, at 11:23 AM, ckk...@hoc.net wrote: Any ideas? Do you think it will help to do a fresh install of office 2016? In addition to just installing Outlook, have you configured Outlook? You can't access MAPI unless you have incoming and outgoing servers configured and authenticated. I installed Office 2016 from scratch and still get the same error. But I could make a new observation. When running a standalone script from win32com.client import Dispatch o = Dispatch('Outlook.Application') o.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession) a window opens saying that there is no standard mail application defined. I checked in the system settings and changed the setting from the windows 10 mail app to outlook but I still get that error. I get it too when I initialize a MAPISession like this: from win32com.mapi import mapi mapi.MAPIInitialize((0,mapi.MAPI_MULTITHREAD_NOTIFICATIONS)) I am lost. Christian ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] get MAPI session from OOM
Am 2018-05-31 03:31, schrieb t...@probo.com: On May 30, 2018, at 11:23 AM, ckk...@hoc.net wrote: Any ideas? Do you think it will help to do a fresh install of office 2016? In addition to just installing Outlook, have you configured Outlook? You can't access MAPI unless you have incoming and outgoing servers configured and authenticated. I have configured two IMAP accounts in outlook before trying to get the MAPI session. But I have not yet done a clean install. I will keep you updated. Christian ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] get MAPI session from OOM
On May 30, 2018, at 11:23 AM, ckk...@hoc.net wrote: > > > Any ideas? Do you think it will help to do a fresh install of office 2016? In addition to just installing Outlook, have you configured Outlook? You can't access MAPI unless you have incoming and outgoing servers configured and authenticated. — Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] get MAPI session from OOM
Am 2018-05-27 14:58, schrieb c.kristu...@hoc.net: -- Originalnachricht -- Von: t...@probo.com An: "Python-Win32 List" Gesendet: 26.05.2018 21:54:36 Betreff: Re: [python-win32] get MAPI session from OOM On May 26, 2018, at 5:21 AM, ckk...@hoc.net wrote: on a 64bit windows 7 machine with pywin32 221 I used to get a pointer to the MAPI session like this outlook.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession) on a fresh windows 10 machine with pywin32 221 this fails with pywintypes.com_error: (-2147467259, 'Unknown error', None, None) Is this a fresh Windows 10 machine that includes a copy of Microsoft Outlook? Yes, exactly. I moved my office 16 license to the new machine which had office 365 pre-installed. Any ideas? Do you think it will help to do a fresh install of office 2016? Regards, Christian ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] get MAPI session from OOM
-- Originalnachricht -- Von: t...@probo.com An: "Python-Win32 List" Gesendet: 26.05.2018 21:54:36 Betreff: Re: [python-win32] get MAPI session from OOM On May 26, 2018, at 5:21 AM, ckk...@hoc.net wrote: on a 64bit windows 7 machine with pywin32 221 I used to get a pointer to the MAPI session like this outlook.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession) on a fresh windows 10 machine with pywin32 221 this fails with pywintypes.com_error: (-2147467259, 'Unknown error', None, None) Is this a fresh Windows 10 machine that includes a copy of Microsoft Outlook? Yes, exactly. I moved my office 16 license to the new machine which had office 365 pre-installed. Christian ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] get MAPI session from OOM
Am 26. Mai 2018 21:54:36 GMT-03:00 schrieb t...@probo.com: >On May 26, 2018, at 5:21 AM, ckk...@hoc.net wrote: >> >> on a 64bit windows 7 machine with pywin32 221 I used to get a pointer >to the MAPI session like this >> >> >outlook.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession) >> >> on a fresh windows 10 machine with pywin32 221 this fails with >> >> pywintypes.com_error: (-2147467259, 'Unknown error', None, None) > >Is this a fresh Windows 10 machine that includes a copy of Microsoft >Outlook? Yes, exactly. I moved my office 16 license to the new machine which had office 365 pre-installed. Christian ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] get MAPI session from OOM
On May 26, 2018, at 5:21 AM, ckk...@hoc.net wrote: > > on a 64bit windows 7 machine with pywin32 221 I used to get a pointer to the > MAPI session like this > > outlook.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession) > > on a fresh windows 10 machine with pywin32 221 this fails with > > pywintypes.com_error: (-2147467259, 'Unknown error', None, None) Is this a fresh Windows 10 machine that includes a copy of Microsoft Outlook? — Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32
[python-win32] get MAPI session from OOM
Hi, on a 64bit windows 7 machine with pywin32 221 I used to get a pointer to the MAPI session like this outlook.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession) on a fresh windows 10 machine with pywin32 221 this fails with pywintypes.com_error: (-2147467259, 'Unknown error', None, None) Any idea why this is failing? How can I debug it? Christian ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32