Re: Fwd: Unable to Install Python (3.5.0) Properly

2020-05-17 Thread Tarun Pathak
fetch from the web. The log file contains all these errors. On Mon, May 18, 2020, 12:50 AM DL Neil via Python-list < python-list@python.org> wrote: > On 17/05/20 7:06 PM, Tarun Pathak wrote: > > -- Forwarded message - > > From: Tarun Pathak > > D

Fwd: Unable to Install Python (3.5.0) Properly

2020-05-17 Thread Tarun Pathak
-- Forwarded message - From: Tarun Pathak Date: Sun, May 17, 2020, 12:07 PM Subject: Unable to Install Python (3.5.0) Properly To: Dear Sir/Madam, I am trying to install Python for a while. But failed to do so. Tried with different files as well. Requesting your suggestion

How to read webpage

2009-08-01 Thread tarun
Dear All,I want to read a webpage and copy the contents of it in word file. I tried to write following code: import urllib2 urllib2.urlopen("http://www.rediff .com/") *Error:-* urllib2.urlopen("http://www.icicibank.com/";) File "C:\Python25\lib\urllib2.py", line 121

Issue with subprocess Module

2009-04-07 Thread tarun
nheritable DUPLICATE_SAME_ACCESS) WindowsError: [Error 6] The handle is invalid *Python Script:* *test.py* import subprocess,os my_bat = os.getcwd()+'\\test.bat' proc = subprocess.Popen(my_bat,stdin=subprocess.PIPE) input = '\n' proc.communicate(input) *Batch File* *test.bat* ec

Killing Child Process

2009-02-26 Thread tarun
in python 2.5.1? Thanks, Tarun -- http://mail.python.org/mailman/listinfo/python-list

Converting c header file to a python file

2008-12-11 Thread tarun
|| defined(__cplusplus__) extern "C" { #endif And also function declarations Thanks, Tarun -- http://mail.python.org/mailman/listinfo/python-list

Converting a .xls file to .html

2008-12-03 Thread tarun
Hello All, I've a .xml file (saved as .xls) that can be opened in Microsoft excel. I want to write python code that converts this excel file into .html (so that it can be viewed as is in an explorer). Can any one help? Regards, Tarun -- http://mail.python.org/mailman/listinfo/python-list

Regarding subprocess module

2008-09-05 Thread tarun
ting the python file from dos box (command prompt) on windows I want subprocess.Popen to open a new dos box. But it works in the same window. What should I do to open the subprocess in new window? Thanks & Regards. Tarun -- http://mail.python.org/mailman/listinfo/python-list

Code for locking a resource

2008-08-19 Thread tarun
1, in __getitem__ val = dict.__getitem__(self, key) KeyError: 'OPT2' Can any one help me with a code for locking a resource across threads. One more observation. I tried the following code on Python Idle >>> import threading >>> threading.RLock() <_RLock(None, 0)&

Re: Python Query: Related to locking a resource in a multithreaded environment

2008-08-18 Thread tarun
I think I need something called global interpreter lock which is accessible to all the threads. But I am not sure how to implement this. On Tue, Aug 19, 2008 at 11:28 AM, tarun <[EMAIL PROTECTED]> wrote: > Hello All, > > I've a configuration.ini file. This particular can be

Python Query: Related to locking a resource in a multithreaded environment

2008-08-18 Thread tarun
reads. How do i do this? Please let me know ASAP. Thanks In Advance, Tarun -- http://mail.python.org/mailman/listinfo/python-list

Some issue with right click in TreeCtrl

2008-05-07 Thread tarun
CLICK. And in this function, I say self.tree.SelectItem(evt.GetItem(),True) to select the item and then so some action for right click. Can any one help. Thanks & Regards, Tarun *Please find the code in the attachment and also below:-* import wx tests = ["All Tests", [

Related to Shelve Module

2008-04-27 Thread tarun
adress (0x..) is different from the first print statement. Can anyone tell me why. Also let me know if you the way of getting same value both the times. Quick help will be appreciated. Thanks & Regards, Tarun -- http://mail.python.org/mailman/listinfo/python-list

Issues with Python + Batch File

2008-03-25 Thread tarun
st is under execution, the GUI gets closed but the DOS BOX still remains open. I want to some how close the DOS BOX when the GUI is closed. Thanks & Regards, Tarun [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Paramiko bugs out on windows 2003 server

2008-03-24 Thread Tarun Kapoor
from paramiko.common import * File "C:\Python23\lib\paramiko\common.py", line 98, in ? from osrandom import OSRandomPool File "C:\Python23\lib\paramiko\osrandom.py", line 54, in ? raise ImportError("Cannot find OS entropy source") ImportError: Cannot find OS ent

RE: paramiko

2008-03-20 Thread Tarun Kapoor
anks !! Tk -Original Message- From: Guilherme Polo [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 16, 2008 11:12 AM To: Tarun Kapoor; python-list@python.org Subject: Re: paramiko 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > I am using paramiko to do an SFTP file trans

Scroll Bar in List Ctrl

2008-01-28 Thread tarun
lways. Can any one help Thanks, Tarun Devnani -- http://mail.python.org/mailman/listinfo/python-list

Re: [wxPython-users] Issue with docking wx.listctrl window

2008-01-27 Thread tarun
Robin, I can use sizers and divide my frames into sections. But I also want to add menu options for display/hide window1 and window2 in my original example. Is this possible even if I use sizers. Regards, Tarun On Jan 28, 2008 1:09 PM, tarun <[EMAIL PROTECTED]> wrote: > Thanks Robin.

Re: [wxPython-users] Issue with docking wx.listctrl window

2008-01-27 Thread tarun
Thanks Robin. Can you please elobrate more on this. Regards, Tarun Devnani On Jan 25, 2008 10:24 PM, Robin Dunn <[EMAIL PROTECTED]> wrote: > tarun wrote: > > Thanks a lot Robin. > > > > I tried using self.log and instead of self.log.list. *Code is attached.* > &

Re: [wxPython-users] Issue with docking wx.listctrl window

2008-01-24 Thread tarun
Thanks a lot Robin. I tried using self.log and instead of self.log.list. *Code is attached.* But this gives me a panel and listctrl in it. The extra blank space around the listctrl in window1 is something that I don't need. Please help. Regards, Tarun Devnani On Jan 24, 2008 11:28 PM,

Issue with docking wx.listctrl window

2008-01-23 Thread tarun
Hello All, I'm trying to create a Frame with AuiManager. The code is attached. *Problem:* - I want 2 windows to be docked in the frame. One is a text control and other is a list control. - The text control gets docked, but on trying to dock the list control, all the tabs dis-appear. The tabs ap

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 1:56 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > > 2008/1/16, Tarun Kapoor <[EMAIL

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 12:22 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > > > 2008/1/16, Tarun Kapoor <[EMAIL PRO

Re: paramiko

2008-01-16 Thread Tarun Kapoor
On Jan 16, 11:38 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 2008/1/16, Tarun Kapoor <[EMAIL PROTECTED]>: > > > > > # now, connect and use paramiko Transport to negotiate SSH2 across > > the connection > > sock = socket.socket(sock

Re: paramiko

2008-01-16 Thread Tarun Kapoor
= threading.Event() t.auth_password(username=username, password=password, event=event) event.wait() if not t.is_authenticated(): print "not authenticated" output: not authenticated On Jan 16, 11:11 am, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > 20

paramiko

2008-01-16 Thread Tarun Kapoor
successful not authenticated Tarun Waterstone Capital Management 2 Carlson Parkway, Suite 260 Plymouth, MN 55447 Direct: 952-697-4123 Cell:612-205-2587 Disclaimer This e-mail and any attachments is confidential and intended solely for the use of the individual(s) to whom it is ad

Paramiko/SSH blues....

2008-01-16 Thread Tarun Kapoor
I am using paramiko to do an SFTP file transfer... I was able to connect to the remote server using an SFTP client I have just to make sure that username and password are working.. But when i try to connect using this script it fails **hostname, username and password are declared. #

Killing worker threads

2008-01-06 Thread tarun
Hello All, Can anyone help me with a simple code through which the main thread can kill the worker thread it started. Thanks & Regards, Tarun Devnani -- http://mail.python.org/mailman/listinfo/python-list

GUI builder tool

2007-11-29 Thread tarun
Hi All, Please help me in selecting the best tool for developing wxPython GUIs. I'm preparing a tool that has explorer,editor and log window using wxPython.. I've heard some namely wxGlade,Boa,etc.. Which one would be the best. Thanks in Advance Regards, Tarun -- http://mail.python.o

Fwd: Frame/Dialog with Tabs

2007-11-28 Thread tarun
Hello, Can anyone help with a *sample wxpython code* that can create a frame/dailog with tabs. Something similar in the attachment. Thanks & Regards, Tarun <>-- http://mail.python.org/mailman/listinfo/python-list

Creation of multiple threads

2007-11-22 Thread tarun
#x27;) else: # Process results here self.status.SetLabel('Computation Result: %s' % event.data) # In either event, the worker is done self.worker = None class MainApp(wx.App): """Class Main App.""" def OnInit(self): """Init Main App.""" self.frame = MainFrame(None, -1) self.frame.Show(True) self.SetTopWindow(self.frame) return True if __name__ == '__main__': app = MainApp(0) app.MainLoop() Help would be appreciated. Thanks in advance Regards, Tarun -- http://mail.python.org/mailman/listinfo/python-list

Issue with reading and writing into .ini files using python

2007-11-21 Thread tarun
:val = dict.__getitem__(self, key) KeyError: 'SELECTED' Can anyone help. Thanks in advance Regards, Tarun -- http://mail.python.org/mailman/listinfo/python-list

Re: Issue with wxPython GUI

2007-11-13 Thread tarun
ion of None return) self.status.SetLabel('Computation aborted') else: # Process results here self.status.SetLabel('Computation Result: %s' % event.data) # In either event, the worker is done self.worker = None class MainApp(wx.

Re: Issue with wxPython GUI

2007-11-13 Thread tarun
hanks & Regards, Tarun On 11/13/07, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > > > > > > *New Problem: *I am opening and executing a script from the GUI. The > > script has a many log messages, > > which it posts on some shared memory. The GUI reads the message

Issue with wxPython GUI

2007-11-12 Thread tarun
script has executed. Moreover, the GUI becomes un-responsive till the script has completely executed. Do you have any suggestions for this? Thanks & Regards, Tarun -- http://mail.python.org/mailman/listinfo/python-list

Use of while(1) with app.mainLoop of wxpython

2007-11-01 Thread tarun
ssages from the channel to the message log window. For this I've to put a while (1) loop, but when I do this, the GUI doesn't come up. I see the GUI coming when while(1) is removed. Is there any issue with usage of app.mainloop and while(1) together. Quick help would be really appreciated.

Error on FTP Upload .. No such file or directory

2007-05-17 Thread Tarun Kapoor
By the way... test.txt does exist Disclaimer This e-mail and any attachments is confidential and intended solely for the use of the individual(s) to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Waterstone Capita

Error on FTP Upload .. No such file or directory

2007-05-17 Thread Tarun Kapoor
--- Code -- remotepath = "/incoming" f = FTP(host) f.login(username,password) f.cwd(remotepath) localfile ="C:\\test.txt" fd = open(localfile,'rb') path,filename = os.path.split(localfile) f.storbinary('STOR %s' % filename,fd) fd.close() f.quit