Re: urgent help

2015-02-20 Thread Denis McMahon
On Fri, 20 Feb 2015 16:14:18 -0800, ms.isma222 wrote: > sir what mean by the following errors: > Traceback (most recent call last): > File "D:\My Documents\Desktop\scripts\WebMD\getWebMDExperts.py", line > 143, in > links = getExpertInfoLinks() > File "D:\My Documents\Desktop\scripts\W

Re: urgent help

2015-02-20 Thread MRAB
On 2015-02-21 00:20, ms.isma...@gmail.com wrote: On Saturday, February 21, 2015 at 8:17:06 AM UTC+8, ms.is...@gmail.com wrote: On Saturday, February 21, 2015 at 8:14:43 AM UTC+8, ms.is...@gmail.com wrote: > On Friday, February 20, 2015 at 4:41:57 PM UTC+8, Mark Lawrence wrote: > > On 20/02/2015

Re: urgent help

2015-02-20 Thread MRAB
On 2015-02-21 00:16, ms.isma...@gmail.com wrote: On Saturday, February 21, 2015 at 8:14:43 AM UTC+8, ms.is...@gmail.com wrote: On Friday, February 20, 2015 at 4:41:57 PM UTC+8, Mark Lawrence wrote: > On 20/02/2015 08:24, ismaham...@gcuf.edu.pk wrote: > > Would you please give your requests a mea

Re: urgent help

2015-02-20 Thread MRAB
On 2015-02-21 00:14, ms.isma...@gmail.com wrote: On Friday, February 20, 2015 at 4:41:57 PM UTC+8, Mark Lawrence wrote: On 20/02/2015 08:24, ismaham...@gcuf.edu.pk wrote: Would you please give your requests a meaningful subject. > sir these errors whats mean by it > warning (from warnings modu

Re: urgent help

2015-02-20 Thread Dave Angel
On 02/20/2015 07:20 PM, ms.isma...@gmail.com wrote: On Saturday, February 21, 2015 at 8:17:06 AM UTC+8, ms.is...@gmail.com wrote: On Saturday, February 21, 2015 at 8:14:43 AM UTC+8, ms.is...@gmail.com wrote: On Friday, February 20, 2015 at 4:41:57 PM UTC+8, Mark Lawrence wrote: On 20/02/2015 0

Re: urgent help

2015-02-20 Thread ms . isma222
On Saturday, February 21, 2015 at 8:17:06 AM UTC+8, ms.is...@gmail.com wrote: > On Saturday, February 21, 2015 at 8:14:43 AM UTC+8, ms.is...@gmail.com wrote: > > On Friday, February 20, 2015 at 4:41:57 PM UTC+8, Mark Lawrence wrote: > > > On 20/02/2015 08:24, ismaham...@gcuf.edu.pk wrote: > > > >

Re: urgent help

2015-02-20 Thread ms . isma222
On Saturday, February 21, 2015 at 8:14:43 AM UTC+8, ms.is...@gmail.com wrote: > On Friday, February 20, 2015 at 4:41:57 PM UTC+8, Mark Lawrence wrote: > > On 20/02/2015 08:24, ismaham...@gcuf.edu.pk wrote: > > > > Would you please give your requests a meaningful subject. > > > > > sir these error

Re: urgent help

2015-02-20 Thread ms . isma222
On Friday, February 20, 2015 at 4:41:57 PM UTC+8, Mark Lawrence wrote: > On 20/02/2015 08:24, ismaham...@gcuf.edu.pk wrote: > > Would you please give your requests a meaningful subject. > > > sir these errors whats mean by it > > warning (from warnings module): > >File "D:\PHD 1st semester\sc

Re: urgent help

2015-02-20 Thread Mark Lawrence
On 20/02/2015 08:24, ismaham...@gcuf.edu.pk wrote: Would you please give your requests a meaningful subject. sir these errors whats mean by it warning (from warnings module): File "D:\PHD 1st semester\scripts\NetDoctor\getNetDoctor.py", line 18 br.set_handle_gzip(True) UserWarning: gzip

urgent help

2015-02-20 Thread ismahameed
sir these errors whats mean by it warning (from warnings module): File "D:\PHD 1st semester\scripts\NetDoctor\getNetDoctor.py", line 18 br.set_handle_gzip(True) UserWarning: gzip transfer encoding is experimental! Traceback (most recent call last): File "D:\PHD 1st semester\scripts\NetDoc

Re: urgent help

2015-02-19 Thread Denis McMahon
On Thu, 19 Feb 2015 04:00:50 -0500, Dave Angel wrote: > On 02/19/2015 03:35 AM, ismaham...@gcuf.edu.pk wrote: >> this is the error in the following python code, can any one help me >> error{Traceback (most recent call last): >>File "C:\Python27\Scripts\BeOk\getBeOKExperts.py", line 6, in >>

Re: urgent help

2015-02-19 Thread Mark Lawrence
On 19/02/2015 09:48, ismaham...@gcuf.edu.pk wrote: As Dave Angel said nearly two hours ago the module is called bs4, so the command you need is:- from bs4 import BeautifulSoup In future please don't repeat the entire email just to add a sentence or two, particularly when you do so three time

Re: urgent help

2015-02-19 Thread ismahameed
On Thursday, February 19, 2015 at 5:46:42 PM UTC+8, ismah...@gcuf.edu.pk wrote: > On Thursday, February 19, 2015 at 5:31:49 PM UTC+8, ismah...@gcuf.edu.pk > wrote: > > On Thursday, February 19, 2015 at 4:35:18 PM UTC+8, ismah...@gcuf.edu.pk > > wrote: > > > this is the error in the following pyth

Re: urgent help

2015-02-19 Thread ismahameed
On Thursday, February 19, 2015 at 5:31:49 PM UTC+8, ismah...@gcuf.edu.pk wrote: > On Thursday, February 19, 2015 at 4:35:18 PM UTC+8, ismah...@gcuf.edu.pk > wrote: > > this is the error in the following python code, can any one help me > > error{Traceback (most recent call last): > > File "C:\Py

Re: urgent help

2015-02-19 Thread ismahameed
On Thursday, February 19, 2015 at 4:35:18 PM UTC+8, ismah...@gcuf.edu.pk wrote: > this is the error in the following python code, can any one help me > error{Traceback (most recent call last): > File "C:\Python27\Scripts\BeOk\getBeOKExperts.py", line 6, in > from BeautifulSoup import Beautif

Re: urgent help

2015-02-19 Thread Dave Angel
On 02/19/2015 03:35 AM, ismaham...@gcuf.edu.pk wrote: this is the error in the following python code, can any one help me error{Traceback (most recent call last): File "C:\Python27\Scripts\BeOk\getBeOKExperts.py", line 6, in from BeautifulSoup import BeautifulSoup ImportError: No module

urgent help

2015-02-19 Thread ismahameed
this is the error in the following python code, can any one help me error{Traceback (most recent call last): File "C:\Python27\Scripts\BeOk\getBeOKExperts.py", line 6, in from BeautifulSoup import BeautifulSoup ImportError: No module named BeautifulSoup} "#encoding=utf8 from codecs impor

Re: Data Tree urgent help!!!!!!

2013-02-20 Thread Steven D'Aprano
Chris Angelico wrote: >> I'm wondering why you used map. >> >> >> apple, pear, dog, cat, fork, spoon = "apple pear dog cat fork >> spoon".split() > > Why, in case someone monkeypatched split() to return something other > than strings, of course! > > Sorry, I've been learning Ruby this week, and

Re: Data Tree urgent help!!!!!!

2013-02-20 Thread Chris Angelico
On Wed, Feb 20, 2013 at 10:01 PM, Steven D'Aprano wrote: > Leo Breebaart wrote: > >> Peter Otten <__pete...@web.de> writes: >> >>> >>> class Name(str): >>> ... def __repr__(self): >>> ... return self >>> ... >>> >>> apple, pear, dog, cat, fork, spoon = map(Name, "apple pear dog cat

Re: Data Tree urgent help!!!!!!

2013-02-20 Thread Steven D'Aprano
Leo Breebaart wrote: > Peter Otten <__pete...@web.de> writes: > >> >>> class Name(str): >> ... def __repr__(self): >> ... return self >> ... >> >>> apple, pear, dog, cat, fork, spoon = map(Name, "apple pear dog cat >> >>> fork spoon".split()) > > Is there any reason why you intro

Re: Data Tree urgent help!!!!!!

2013-02-20 Thread Peter Otten
Leo Breebaart wrote: > Peter Otten <__pete...@web.de> writes: > >> >>> class Name(str): >> ... def __repr__(self): >> ... return self >> ... >> >>> apple, pear, dog, cat, fork, spoon = map(Name, "apple pear dog cat >> >>> fork spoon".split()) > > Is there any reason why you intro

Re: Data Tree urgent help!!!!!!

2013-02-20 Thread Leo Breebaart
Peter Otten <__pete...@web.de> writes: > >>> class Name(str): > ... def __repr__(self): > ... return self > ... > >>> apple, pear, dog, cat, fork, spoon = map(Name, "apple pear dog cat fork > >>> spoon".split()) Is there any reason why you introduced the Name class? In Python 2.

Re: IOerror : need urgent help

2013-02-19 Thread Mark Lawrence
On 19/02/2013 15:40, Thomas Calmant wrote: hi It seems you forgot to escape the escape character in the file names ('\'): "C:\Users\inshu.chauhan\Desktop\test.arff" => r"C:\Users\inshu.chauhan\Desktop\test.arff" or => "C:\\Users\\inshu.chauhan\\Desktop\\test.arff" ++ Thomas Yuck :) -- Cheer

Re: IOerror : need urgent help

2013-02-19 Thread inshu chauhan
On Tue, Feb 19, 2013 at 4:54 PM, MRAB wrote: > On 2013-02-19 15:27, inshu chauhan wrote: > >> Here is my attempt to merge 10 files stored in a folder into a single >> file : >> >> import csv >> >> with open("C:\Users\inshu.chauhan\**Desktop\test.arff", "w") as w: >> writer = csv.writer(w) >>

Re: IOerror : need urgent help

2013-02-19 Thread MRAB
On 2013-02-19 15:27, inshu chauhan wrote: Here is my attempt to merge 10 files stored in a folder into a single file : import csv with open("C:\Users\inshu.chauhan\Desktop\test.arff", "w") as w: writer = csv.writer(w) for f in glob.glob("C:\Users\inshu.chauhan\Desktop\For Model_600\*.

Re: IOerror : need urgent help

2013-02-19 Thread Mark Lawrence
On 19/02/2013 15:27, inshu chauhan wrote: Here is my attempt to merge 10 files stored in a folder into a single file : import csv with open("C:\Users\inshu.chauhan\Desktop\test.arff", "w") as w: writer = csv.writer(w) for f in glob.glob("C:\Users\inshu.chauhan\Desktop\For Model_600\*.

Re: IOerror : need urgent help

2013-02-19 Thread Thomas Calmant
hi It seems you forgot to escape the escape character in the file names ('\'): "C:\Users\inshu.chauhan\Desktop\test.arff" => r"C:\Users\inshu.chauhan\Desktop\test.arff" or => "C:\\Users\\inshu.chauhan\\Desktop\\test.arff" ++ Thomas 2013/2/19 inshu chauhan > Here is my attempt to merge 10 files

IOerror : need urgent help

2013-02-19 Thread inshu chauhan
Here is my attempt to merge 10 files stored in a folder into a single file : import csv with open("C:\Users\inshu.chauhan\Desktop\test.arff", "w") as w: writer = csv.writer(w) for f in glob.glob("C:\Users\inshu.chauhan\Desktop\For Model_600\*.arff"): rows = open(f, "r").readlines(

Re: Data Tree urgent help!!!!!!

2013-02-19 Thread Ana Dionísio
Thank you so much!!! It works perfectly!!! ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Data Tree urgent help!!!!!!

2013-02-19 Thread Peter Otten
anadionisio...@gmail.com wrote: > Hello! > I have this lists with information and I need to make a "tree" by > associating the information inside the lists. For example: > > l1 = [apple, pear] > l2 = [dog, cat] > l3 = [fork, spoon] > > And I need to make something like this: > > l4 = [apple, do

Data Tree urgent help!!!!!!

2013-02-19 Thread anadionisio257
Hello! I have this lists with information and I need to make a "tree" by associating the information inside the lists. For example: l1 = [apple, pear] l2 = [dog, cat] l3 = [fork, spoon] And I need to make something like this: l4 = [apple, dog, fork] l5 = [apple, dog, spoon] l6= [apple, cat, fo

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
This is the trae back ,can you help me please. Traceback (most recent call last): File "C:\Documents and Settings\dzxbrn\Desktop\Stop Test\13 Oct\MainThread.py", line 13, in threadFunction obj.MyNavigate(dest) # this is gving an error. File "C:\Documents and Settings\dzxbrn\De

Re: COM Error -- Urgent help

2006-10-17 Thread Neil Hodgson
Teja: > ie=win32com.client.Dispatch('internetexplorer.application') > ie.Visible=1 > > class GenericFunctions: > def __init__(self): > print "In Constructor of Generic Functions" > def MyNavigate(self,dest): > ie.Navigate(dest) You are using an interface created on th

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Diez B. Roggisch wrote: > Teja wrote: > > > > > Dennis Lee Bieber wrote: > >> On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed > >> the following in comp.lang.python: > >> > >> >thread.start_new_thread(self.nav, (s,'www.google.com') > >> > > >> > I am getting an attribut

Re: COM Error -- Urgent help

2006-10-17 Thread Diez B. Roggisch
Teja wrote: > > Dennis Lee Bieber wrote: >> On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed >> the following in comp.lang.python: >> >> >thread.start_new_thread(self.nav, (s,'www.google.com') >> > >> > I am getting an attribute error >> >> That can not be the REAL code

Re: COM Error -- Urgent help

2006-10-17 Thread Fredrik Lundh
Teja wrote: > s=pythoncom.CoMarshalInterThreadInterfaceInStream(pythoncom.IID_IDispatch,i­­e) > >thread.start_new_thread(self.nav, (s,'www.google.com') > > I am getting an attribute error the traceback tells you what attribute Python was looking for, and may also provide additional clues

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Dennis Lee Bieber wrote: > On 17 Oct 2006 00:58:59 -0700, "Teja" <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > > >thread.start_new_thread(self.nav, (s,'www.google.com') > > > > I am getting an attribute error > > That can not be the REAL code... I'd expect a sy

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Fredrik Lundh wrote: > Teja wrote: > > > I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help > > me out... > > nobody here can read your mind. please post the code you're actually > using, *and* the error you're getting. > > Thnks for your immediate reply. Here is the code:

Re: COM Error -- Urgent help

2006-10-17 Thread Fredrik Lundh
Teja wrote: > I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help > me out... nobody here can read your mind. please post the code you're actually using, *and* the error you're getting. -- http://mail.python.org/mailman/listinfo/python-list

Re: COM Error -- Urgent help

2006-10-17 Thread Teja
Méta-MCI wrote: > Hi! > > > .func( is not defined... > > > @-salutations > -- > Michel Claveau I am sorry. By func(dest) I meant MyNavigate(dest). Can u please help me out... Thnks, Teja.P -- http://mail.python.org/mailman/listinfo/python-list

Re: COM Error -- Urgent help

2006-10-16 Thread M�ta-MCI
Hi! .func( is not defined... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

COM Error -- Urgent help

2006-10-16 Thread Teja
HI all, I have a problem in accesing COM objects in threads. To be precise, lets assume that I have a class GenericFunctions which is defined as follows: import win32com.client, pythoncom, thread ie=win32com.client.Dispatch('internetexplorer.application') ie.Visible=1 class GenericFunctions: