I create a new Python file with the following using Wing IDE.
import feedparser
d = feedparser.pars e("http://feedparser.org/docs/examples/atom10.xml")
print d.feed.title
I get this error when I debug.
AssertionError:
Traceback (innermost last):
File "c:\Documen ts and Settings\abc\Ap plication Data\Wing IDE
2\untitled-1.py", line 1, in ?
import feedparser
File "c:\Documen ts and Settings\abc\Ap plication Data\Wing IDE
2\untitled-1.py", line 2, in ?
d =
feedparser.pars e("http://feedparser.org/docs/examples/atom10.xml")
File "C:\Python24\Li b\feedparser.py ", line 2611, in parse
saxparser.parse (source)
File "C:\Python24\Li b\xml\sax\expat reader.py", line 107, in parse
xmlreader.Incre mentalParser.pa rse(self, source)
File "C:\Python24\Li b\xml\sax\xmlre ader.py", line 123, in parse
self.feed(buffe r)
File "C:\Python24\Li b\xml\sax\expat reader.py", line 207, in feed
self._parser.Pa rse(data, isFinal)
File "C:\Python24\Li b\xml\sax\expat reader.py", line 639, in EndElement
File "C:\Python24\Li b\xml\sax\expat reader.py", line 348, in
end_element_ns
self._cont_hand ler.endElementN S(pair, None)
File "C:\Python24\Li b\feedparser.py ", line 1403, in endElementNS
self.unknown_en dtag(localname)
File "C:\Python24\Li b\feedparser.py ", line 476, in unknown_endtag
method()
File "C:\Python24\Li b\feedparser.py ", line 1193, in _end_title
value = self.popContent ('title')
File "C:\Python24\Li b\feedparser.py ", line 700, in popContent
value = self.pop(tag)
File "C:\Python24\Li b\feedparser.py ", line 685, in pop
contentparams = copy.deepcopy(s elf.contentpara ms)
File "C:\Python24\Li b\copy.py", line 193, in deepcopy
rv = reductor(2)
File "C:\Python24\Li b\feedparser.py ", line 233, in __getattr__
assert not key.startswith( '_')
With the exact same line of code in Komodo I get the correct output
which is "Sample Feed"
Any idea what's wrong? 4 1886 With the exact same line of code in Komodo I get the correct output which is "Sample Feed"
Any idea what's wrong?
My guess would be different PYTHONPATHs. Try this on each: import sys print sys.path
They might even be using different python versions - but both of these
are just guesses.
Luke
fyleow wrote: I create a new Python file with the following using Wing IDE.
import feedparser d = feedparser.pars e("http://feedparser.org/docs/examples/atom10.xml") print d.feed.title
I get this error when I debug.
AssertionError:
Traceback (innermost last):
File "c:\Documen ts and Settings\abc\Ap plication Data\Wing IDE 2\untitled-1.py", line 1, in ? import feedparser File "c:\Documen ts and Settings\abc\Ap plication Data\Wing IDE 2\untitled-1.py", line 2, in ? d = feedparser.pars e("http://feedparser.org/docs/examples/atom10.xml") File "C:\Python24\Li b\feedparser.py ", line 2611, in parse saxparser.parse (source)
[snip]
The traceback is wierd. It states that the first line of untitle-1.py
is calling the second line of the same file. That doesn't make sense.
Any idea what's wrong?
Seems like it's an IDE specific bug.
On 20/04/2006 5:54 PM, fyleow wrote: I create a new Python file with the following using Wing IDE.
import feedparser d = feedparser.pars e("http://feedparser.org/docs/examples/atom10.xml") print d.feed.title
I get this error when I debug.
[snip] With the exact same line of code in Komodo I get the correct output which is "Sample Feed"
Two IDEs? Sounds like IDEitis to me. Presuming that you have a
command-line interpreter supplied with your OS: fire it up, type in
"python", type those 3 lines in, see what happens ... I'm betting that
Serge's supposition is correct.
Not sure if this would cause it, but I also have both Wing and Komodo,
and when I search for files named FeedParser, I get this:
c:/Documents and Settings\Richar d Dooling\Local Settings\Applic ation
Data\Wing IDE 2\cache\analysi s\C\Python24\li b\email\FeedPar ser.py.ether
c:/Program Files\ActiveSta te Komodo
3.5\lib\python\ Lib\email\FeedP arser.py
c:/Python24\Lib\em ail\FeedParser. py
Maybe you need to investigate and see if those versions are all the
same? Then check and see which one is running at any given time?
rick
"My mother buried three husbands, and two of them were just napping."
--Rita Rudner This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Dave |
last post by:
After following Microsofts admonition to reformat my system before doing a
final compilation of my app I got many warnings/errors upon compiling an rtf
file created in word. I used the Help Workshop program: hcw.exe that's
included with Visual Basic. This exact same file compiled perfectly with no
notes, warnings or errors prior to reformatting my system. Prior to the
reformatting, I copied the help.rtf file onto a CD and checked the box to...
|
by: Jacek Generowicz |
last post by:
Where can I find concise, clear documentation describing what one has
to do in order to enable Python's internal help to be able to provide
descriptions of Python keywords ?
I am in a situation where I have to give Python novices the ability to
fix this for themselves easily.
Failing "concise" and "clear", how about "complete and correct" ?
|
by: Tom |
last post by:
A question for gui application programmers. . .
I 've got some GUI programs, written in Python/wxPython, and I've got
a help button and a help menu item. Also, I've got a compiled file
made with the microsoft HTML workshop utility, lets call it
c:\path\help.chm. My question is how do you launch it from the GUI?
What logic do I put behind the "help" button, in other words.
I thought it would be
os.spawnv(os.P_DETACH,...
|
by: Sarir Khamsi |
last post by:
Is there a way to get help the way you get it from the Python
interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the
module cmd.Cmd? I know how to add commands and help text to cmd.Cmd
but I would also like to get the man-page-like help for classes and
functions. Does anyone know how to do that? Thanks.
Sarir
|
by: Sudheer Kareem |
last post by:
Dear All
Please tell me how to assosiate help files with my Vb.net
Project.
Regards
Sudheer
| |
by: wukexin |
last post by:
Help me, good men. I find mang books that introduce bit "mang header
files",they talk too bit,in fact it is my too fool, I don't learn it, I have
do a test program, but I have no correct doing result in any way. Who can
help me, I thank you very very much.
list.cpp(main program)
//--------------------------------------------------------------------------
-
#pragma hdrstop
#pragma argsused
|
by: Colin J. Williams |
last post by:
Python advertises some basic service:
C:\Python24>python
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
With numarray, help gives unhelpful responses:
|
by: John Baker |
last post by:
I find it highly annoying that MS Access tries to go online when I want
to look at the help files. Is there a way to configure it so it just
looks at my local helpfiles when I hit F1?
|
by: Bruce Dodds |
last post by:
I recently started using Access 2003 for the first time. I wanted to
pass on some comments about the Help system to Access MVPs who frequent
this board. I'm doing this in the hope that some of what I say may be
passed on to Microsoft.
Microsoft has implemented a combination local and web based help system
in Access 2003. The local Help installed on your hard drive is fast, but
the content is abbreviated. For really useful help you have...
|
by: priyajohal |
last post by:
#include<fstream.h>
#include<process.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<dos.h>
#include<ctype.h>
#include<stdio.h>
void setup()
void help();
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |