Hi guys have a python software that i want to freeze for distribution. The problem is after freezing it with cx_freeze and i run it, it works fine on my development computer but when i sent it to my testing computer (window XP sp3 32bit) it give me this error Traceback(mostresent call last): File "C:Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line27, in <module? File "timeTracker.py", line 555, in <module> File "timeTracker.py", line 381, in __init__ File "timeTracker.py", line 427, in runTimeThread File "timeTracker.py", line 494, in __init__ File "timeTracker.py", line 118, in __init__ File "C:Python27\lib\site-packages\pyttsx1.1-py2.7.egg\pyttsx\__init__.py", line 39, in init File "C:Python27\lib\site-packages\pyttsx1.1-py2.7.egg\pyttsx\engine.py", line 45, in __init__ …

Member Avatar
Member Avatar
+0 forum 9

I have my outlook mailboxes in this structure mailbox1 -Inbox Mailbox2 -Inbox Current script is able to access Inbox of mailbox1 as it is my main mail box where as mailbox2 has been added into my profile. I want to be able to access Inbox of Mailbox2 import win32com.client import pythoncom import re class Handler_Class(object): def OnNewMailEx(self, receivedItemsIDs): # RecrivedItemIDs is a collection of mail IDs separated by a ",". for ID in receivedItemsIDs.split(","): mail = outlook.Session.GetItemFromID(ID) subject = mail.Subject outlook = win32com.client.DispatchWithEvents("Outlook.Application", Handler_Class) #and then an infinit loop that waits from events. pythoncom.PumpMessages() The above script is accessing mailbox1 …

Member Avatar
+0 forum 0

Hi, I want to send back reply to the same email but with different email account. Here is my script mail = outlook.Session.GetItemFromID(ID) subject = mail.Subject if mail: message_reply = mail.Reply() message_reply.From='_from_email' #not working message_reply.Body = "THE FOLLOWING TASK HAS BEEN MARKED AS COMPLETED: \n\n" message_reply.CC= '_CC_Email' message_reply.Send() I tried message_reply.From, message_reply.Sender.Address, mail.From but nothing is working. It is sending from my default email account. message_reply.CC, message_reply.Body is working. Can anyone help me out?

Member Avatar
+0 forum 0

Hello gurus: I saw the discussion related on working with words with python which is: import win32com.client wordapp = win32com.client.Dispatch("Word.Application") # Create new Word Object wordapp.Visible = 0 # Word Application should`t be visible worddoc = wordapp.Documents.Add() # Create new Document Object worddoc.PageSetup.Orientation = 1 # Make some Setup to the Document: worddoc.PageSetup.LeftMargin = 20 worddoc.PageSetup.TopMargin = 20 worddoc.PageSetup.BottomMargin = 20 worddoc.PageSetup.RightMargin = 20 worddoc.Content.Font.Size = 11 worddoc.Content.Paragraphs.TabStops.Add (100) worddoc.Content.Text = "Hello, I am a text!" worddoc.Content.MoveEnd worddoc.Close() # Close the Word Document (a save-Dialog pops up) wordapp.Quit() # Close the Word Application Now I wanted to know: are the …

Member Avatar
Member Avatar
+0 forum 1

The End.