From: Karol L. <kar...@kn...> - 2007-03-09 16:52:47
|
I can't seem to use the script downloadwiki.py. After installing BesutifulSoup, I get the following error: langner@slim:~/tmp/python/cclib/trunk$ python2.3 downloadwiki.py Traceback (most recent call last): File "downloadwiki.py", line 8, in ? soup = BeautifulSoup(allpages) File "/usr/lib/python2.3/site-packages/BeautifulSoup.py", line 307, in __init__ self.feed(text) File "/usr/lib/python2.3/site-packages/BeautifulSoup.py", line 310, in feed SGMLParser.feed(self, text) File "/usr/lib/python2.3/sgmllib.py", line 94, in feed self.rawdata = self.rawdata + data TypeError: cannot concatenate 'str' and 'instance' objects Does the script actually work? -- written by Karol Langner Fri Mar 9 17:50:42 CET 2007 |
From: Noel O'B. <bao...@gm...> - 2007-03-18 19:03:13
|
Works for me. ?? (1) I downloaded BeautifulSoup 3.0.3 from the web and placed it in my cclib trunk directory. (2) Running "python downloadwiki.py" (Python 2.4.3 on Windows) gives: [u'Announce', u'Aonames', u'Aooverlaps', u'Atomcoords', u'Atomnos', u'C_squared' , u'Calculation_Methods', u'Cclib', u'Changelog', u'Charge_Decomposition_Analysi s', u'Cheesecake_index', u'Complife06', u'Coreelectrons', u'Density', u'Develope rs', u'Development', u'Development_methods', u'Development_parsed_data', u'Etene rgies', u'Etsecs', u'Fonames', u'Fooverlaps', u'Gbasis', u'Geotargets', u'Geoval ues', u'Hessian', u'Homos', u'Install', u'Instructions', u'Main_Page', u'Mocoeff s', u'Moenergies', u'Mosyms', u'Mpenergies', u'Mulliken', u'Natom', u'Nbasis', u 'Nmo', u'Parsed_Data', u'Parsed_data', u'Progress', u'Scfenergies', u'Scftargets ', u'Scfvalues', u'Tests', u'Using_cclib', u'Vibcarts', u'Vibdisps'] and the file backup.xml is created. I assume the problem is a different version of BeautifulSoup. I will doublecheck on Monday whether this works on Linux for me. On 09/03/07, Karol Langner <kar...@kn...> wrote: > I can't seem to use the script downloadwiki.py. After installing > BesutifulSoup, I get the following error: > > langner@slim:~/tmp/python/cclib/trunk$ python2.3 downloadwiki.py > Traceback (most recent call last): > File "downloadwiki.py", line 8, in ? > soup = BeautifulSoup(allpages) > File "/usr/lib/python2.3/site-packages/BeautifulSoup.py", line 307, in > __init__ > self.feed(text) > File "/usr/lib/python2.3/site-packages/BeautifulSoup.py", line 310, in feed > SGMLParser.feed(self, text) > File "/usr/lib/python2.3/sgmllib.py", line 94, in feed > self.rawdata = self.rawdata + data > TypeError: cannot concatenate 'str' and 'instance' objects > > Does the script actually work? > > -- > written by Karol Langner > Fri Mar 9 17:50:42 CET 2007 > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > cclib-devel mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-devel > |
From: Karol L. <kar...@kn...> - 2007-03-19 10:10:24
|
Yes, the problem is probably a different version - I have BeautifulSoup 1.1 installed (the one Debian stable has in the repository. It works if I call the read() method on urllib.urlopen("....") first. I submitted that, but I'm not sure to what extent the problem is version-specific. If it fails for the newer version now (can you check?), I'll make a more specific fix. Karol On Sunday 18 of March 2007 20:03, Noel O'Boyle wrote: > Works for me. ?? > > (1) I downloaded BeautifulSoup 3.0.3 from the web and placed it in my > cclib trunk directory. > (2) Running "python downloadwiki.py" (Python 2.4.3 on Windows) gives: > [u'Announce', u'Aonames', u'Aooverlaps', u'Atomcoords', u'Atomnos', > u'C_squared' , u'Calculation_Methods', u'Cclib', u'Changelog', > u'Charge_Decomposition_Analysi s', u'Cheesecake_index', u'Complife06', > u'Coreelectrons', u'Density', u'Develope rs', u'Development', > u'Development_methods', u'Development_parsed_data', u'Etene rgies', > u'Etsecs', u'Fonames', u'Fooverlaps', u'Gbasis', u'Geotargets', u'Geoval > ues', u'Hessian', u'Homos', u'Install', u'Instructions', u'Main_Page', > u'Mocoeff s', u'Moenergies', u'Mosyms', u'Mpenergies', u'Mulliken', > u'Natom', u'Nbasis', u 'Nmo', u'Parsed_Data', u'Parsed_data', u'Progress', > u'Scfenergies', u'Scftargets ', u'Scfvalues', u'Tests', u'Using_cclib', > u'Vibcarts', u'Vibdisps'] > > and the file backup.xml is created. > > I assume the problem is a different version of BeautifulSoup. I will > doublecheck on Monday whether this works on Linux for me. > > On 09/03/07, Karol Langner <kar...@kn...> wrote: > > I can't seem to use the script downloadwiki.py. After installing > > BesutifulSoup, I get the following error: > > > > langner@slim:~/tmp/python/cclib/trunk$ python2.3 downloadwiki.py > > Traceback (most recent call last): > > File "downloadwiki.py", line 8, in ? > > soup = BeautifulSoup(allpages) > > File "/usr/lib/python2.3/site-packages/BeautifulSoup.py", line 307, in > > __init__ > > self.feed(text) > > File "/usr/lib/python2.3/site-packages/BeautifulSoup.py", line 310, in > > feed SGMLParser.feed(self, text) > > File "/usr/lib/python2.3/sgmllib.py", line 94, in feed > > self.rawdata = self.rawdata + data > > TypeError: cannot concatenate 'str' and 'instance' objects > > > > Does the script actually work? > > > > -- > > written by Karol Langner > > Fri Mar 9 17:50:42 CET 2007 > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > cclib-devel mailing list > > ccl...@li... > > https://lists.sourceforge.net/lists/listinfo/cclib-devel -- written by Karol Langner Mon Mar 19 11:10:03 CET 2007 |
From: Noel O'B. <bao...@gm...> - 2007-03-19 12:28:45
|
Still works for me. Noel On 19/03/07, Karol Langner <kar...@kn...> wrote: > Yes, the problem is probably a different version - I have BeautifulSoup 1.1 > installed (the one Debian stable has in the repository. It works if I call > the read() method on urllib.urlopen("....") first. I submitted that, but I'm > not sure to what extent the problem is version-specific. If it fails for the > newer version now (can you check?), I'll make a more specific fix. > > Karol > > On Sunday 18 of March 2007 20:03, Noel O'Boyle wrote: > > Works for me. ?? > > > > (1) I downloaded BeautifulSoup 3.0.3 from the web and placed it in my > > cclib trunk directory. > > (2) Running "python downloadwiki.py" (Python 2.4.3 on Windows) gives: > > [u'Announce', u'Aonames', u'Aooverlaps', u'Atomcoords', u'Atomnos', > > u'C_squared' , u'Calculation_Methods', u'Cclib', u'Changelog', > > u'Charge_Decomposition_Analysi s', u'Cheesecake_index', u'Complife06', > > u'Coreelectrons', u'Density', u'Develope rs', u'Development', > > u'Development_methods', u'Development_parsed_data', u'Etene rgies', > > u'Etsecs', u'Fonames', u'Fooverlaps', u'Gbasis', u'Geotargets', u'Geoval > > ues', u'Hessian', u'Homos', u'Install', u'Instructions', u'Main_Page', > > u'Mocoeff s', u'Moenergies', u'Mosyms', u'Mpenergies', u'Mulliken', > > u'Natom', u'Nbasis', u 'Nmo', u'Parsed_Data', u'Parsed_data', u'Progress', > > u'Scfenergies', u'Scftargets ', u'Scfvalues', u'Tests', u'Using_cclib', > > u'Vibcarts', u'Vibdisps'] > > > > and the file backup.xml is created. > > > > I assume the problem is a different version of BeautifulSoup. I will > > doublecheck on Monday whether this works on Linux for me. > > > > On 09/03/07, Karol Langner <kar...@kn...> wrote: > > > I can't seem to use the script downloadwiki.py. After installing > > > BesutifulSoup, I get the following error: > > > > > > langner@slim:~/tmp/python/cclib/trunk$ python2.3 downloadwiki.py > > > Traceback (most recent call last): > > > File "downloadwiki.py", line 8, in ? > > > soup = BeautifulSoup(allpages) > > > File "/usr/lib/python2.3/site-packages/BeautifulSoup.py", line 307, in > > > __init__ > > > self.feed(text) > > > File "/usr/lib/python2.3/site-packages/BeautifulSoup.py", line 310, in > > > feed SGMLParser.feed(self, text) > > > File "/usr/lib/python2.3/sgmllib.py", line 94, in feed > > > self.rawdata = self.rawdata + data > > > TypeError: cannot concatenate 'str' and 'instance' objects > > > > > > Does the script actually work? > > > > > > -- > > > written by Karol Langner > > > Fri Mar 9 17:50:42 CET 2007 > > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of IT > > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > > your opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > _______________________________________________ > > > cclib-devel mailing list > > > ccl...@li... > > > https://lists.sourceforge.net/lists/listinfo/cclib-devel > > -- > written by Karol Langner > Mon Mar 19 11:10:03 CET 2007 > |