Can not get python code sample to work
The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Yi <yqi... @gmail.com>
Date: Mon, 17 Dec 2007 21:20:37 -0800 (PST)
Local: Tues, Dec 18 2007 12:20 am
Subject: Can not get python code sample to work
Hi,
I downloaded the gdata.py package and am trying to get the sample to
work. Running BloggerExample.py gives me the following error message:
Traceback (most recent call last):
File "BloggerExample.py", line 320, in <module>
main()
File "BloggerExample.py", line 316, in main
sample.run()
File "BloggerExample.py", line 237, in run
"Post author", True)
File "BloggerExample.py", line 104, in CreatePost
'/feeds/' + self.blog_id + '/posts/default')
File "build/bdist.macosx-10.3-i386/egg/gdata/service.py", line 757,
in Post
gdata.service.RequestError: {'status': 500, 'body': '<!DOCTYPE HTML
PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/
strict.dtd"><html dir="ltr"><head><base href="http://www.blogger.com ">
\n<meta http-equiv="Content-type" content="text/html; charset=utf-8">
\n<title>Blogger: Error performing your request</title>\n<link href="/
v-css/3241057453-blogger_lowend.css" rel="stylesheet" type="text/css">
\n<style type="text/css">\n @import url("/v-css/3670199809-
blogger_main.css");\n @import url("/v-css/3846071064-
buttons_dir.css"); \n @import url("/v-css/4278204697-
buttons.css");\n\n \n\n @media tty {\n i{content:"\\";/*"
"*/}} @import url("/v-css/1784484781-blogger_ie5win.css"); /*";}
\n }/* */\n\n </style>\n<script src="https://ssl.google-
analytics.com/urchin.js" type="text/javascript">\n </script>
<script type="text/javascript">\n _uacct="UA-18003-7";\n
_uanchor=1;\n urchinTracker();\n </script> \n<style type="text/
css">\n #body h2 {\n margin-top:0;\n }\n
\n #body p {\n color:#666;\n }\n\n
#errorCode {\n color:#826C55;\n text-align:center;
\n font-size:300%;\n margin:.5em\n }\n
\n #additionalInformation {\n margin:.5em;\n }\n
\n #errorDescription {\n
background:#ff9;\n padding:2em;\n margin:0 0 3em
0;\n }\n </style>\n<script type="text/javascript">
\n function showErrorMessage(root) {\n var entries =
root.feed.entry || [];\n\n if (entries.length > 0)
{\n var entry = entries[0];\n\n
document.getElementById("errorHeading").innerHTML = entry.title.$t;\n
\n
document.getElementById("errorDescription").style.display = "block";
\n document.getElementById("errorDescription").innerHTML =
\n entry.content.$t;\n }\n }\n </
script></head>\n<body><div id="header"><div id="h2"><div id="h3"><a
href="/" id="logo" title="Blogger home"><img src="/img/logo40.gif"
width="150" height="40" alt="Blogger"></a>\n<p id="tag"><em>Push-
Button Publishing</em></p>\n<span class="r"></span></div></div></div>
\n<div id="body"><div id="main"><div id="m2"><div id="m3"><h2
id="errorHeading">We\'re sorry, but we were unable to complete your
request.</h2>\n\n<p id="errorDescription" style="display:none"></p>
\n<p>When reporting this error to Blogger Support or on the Blogger
Help Group, please:</p>\n<ul><li><strong>Describe what you were doing</
strong> when you got this error.</li>\n<li>Provide the following
<strong>error code</strong> and <strong>additional information</
strong>.</li></ul>\n<div id="errorCode">bX-y33b4h</div>
\n<h3>Additional information</h3>\n<div
id="additionalInformation"><code><b>host:</b>\nwww.blogger.com <br></
code> <code><b>uri:</b>\n/feeds/7134586/posts/default<br></code></div>
\n<p>This information will help us to track down your specific problem
and fix it! We apologize for the inconvenience.</p>\n</div></div></div>
\n<div id="footer"><div><hr>\n<p><a href="/">Home</a>\n|\n<a href="/
about">About</a>\n|\n<a href="http://buzz.blogger.com ">Buzz</a>\n|\n<a
href="http://help.blogger.com/bin/static.py?page=start.cs ">Help</a>\n|
\n<a href="http://groups.google.com/group/blogger-help " title="Ask
questions and share information with other users in the Blogger Help
Group">Discuss</a>\n|\n<a href="/language.g">Language</a>\n|\n<a
href="http://code.blogspot.com/ ">Developers</a>\n|\n<a href="http://
www.googlestore.com/category.asp?catid=search&searchtype=keyword&... ">Gear</a>\n<br>\n<a
href="/terms.g">Terms of Service</a>\n|\n<a href="/privacy">Privacy</a>
\n|\n<a href="/content.g">Content Policy</a>\n|\n<span
dir="ltr">Copyright © 1999 – 2007 Google</span></p></div></
div>\n</div>\n<script type="text/javascript" src="http://bx-
codes.blogspot.com/feeds/posts/default/-/bX-y33b4h?alt=json-in-
script&callback=showErrorMessage"></script></body></html>',
'reason': 'Internal Server Error'}
iapetus:~/Downloads/gdata.py-1.0.9/samples/blogger/ >
I am using python 2.5.1 on Mac OS X 10.5.1
If you need anymore information I'd be glad to provide it.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Jeff Scudder <j... @google.com>
Date: Tue, 18 Dec 2007 11:38:39 -0800 (PST)
Local: Tues, Dec 18 2007 2:38 pm
Subject: Re: Can not get python code sample to work
On Dec 17, 9:20 pm, Yi <yqi... @gmail.com> wrote:
> Hi,
> I downloaded the gdata.py package and am trying to get the sample to
> work. Running BloggerExample.py gives me the following error message:
> Traceback (most recent call last):
> File "BloggerExample.py", line 320, in <module>
> main()
> File "BloggerExample.py", line 316, in main
> sample.run()
> File "BloggerExample.py", line 237, in run
> "Post author", True)
> File "BloggerExample.py", line 104, in CreatePost
> '/feeds/' + self.blog_id + '/posts/default')
> File "build/bdist.macosx-10.3-i386/egg/gdata/service.py", line 757,
> in Post
> gdata.service.RequestError: {'status': 500, 'body': '<!DOCTYPE HTML
> PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/
> strict.dtd"><html dir="ltr"><head><base href="http://www.blogger.com ">
> \n<meta http-equiv="Content-type" content="text/html; charset=utf-8">
> \n<title>Blogger: Error performing your request</title>\n<link href="/
> v-css/3241057453-blogger_lowend.css" rel="stylesheet" type="text/css">
> \n<style type="text/css">\n @import url("/v-css/3670199809-
> blogger_main.css");\n @import url("/v-css/3846071064-
> buttons_dir.css"); \n @import url("/v-css/4278204697-
> buttons.css");\n\n \n\n @media tty {\n i{content:"\\";/*"
> "*/}} @import url("/v-css/1784484781-blogger_ie5win.css"); /*";}
> \n }/* */\n\n </style>\n<script src="https://ssl.google-
> analytics.com/urchin.js" type="text/javascript">\n </script>
> <script type="text/javascript">\n _uacct="UA-18003-7";\n
> _uanchor=1;\n urchinTracker();\n </script> \n<style type="text/
> css">\n #body h2 {\n margin-top:0;\n }\n
> \n #body p {\n color:#666;\n }\n\n
> #errorCode {\n color:#826C55;\n text-align:center;
> \n font-size:300%;\n margin:.5em\n }\n
> \n #additionalInformation {\n margin:.5em;\n }\n
> \n #errorDescription {\n
> background:#ff9;\n padding:2em;\n margin:0 0 3em
> 0;\n }\n </style>\n<script type="text/javascript">
> \n function showErrorMessage(root) {\n var entries =
> root.feed.entry || [];\n\n if (entries.length > 0)
> {\n var entry = entries[0];\n\n
> document.getElementById("errorHeading").innerHTML = entry.title.$t;\n
> \n
> document.getElementById("errorDescription").style.display = "block";
> \n document.getElementById("errorDescription").innerHTML =
> \n entry.content.$t;\n }\n }\n </
> script></head>\n<body><div id="header"><div id="h2"><div id="h3"><a
> href="/" id="logo" title="Blogger home"><img src="/img/logo40.gif"
> width="150" height="40" alt="Blogger"></a>\n<p id="tag"><em>Push-
> Button Publishing</em></p>\n<span class="r"></span></div></div></div>
> \n<div id="body"><div id="main"><div id="m2"><div id="m3"><h2
> id="errorHeading">We\'re sorry, but we were unable to complete your
> request.</h2>\n\n<p id="errorDescription" style="display:none"></p>
> \n<p>When reporting this error to Blogger Support or on the Blogger
> Help Group, please:</p>\n<ul><li><strong>Describe what you were doing</
> strong> when you got this error.</li>\n<li>Provide the following
> <strong>error code</strong> and <strong>additional information</
> strong>.</li></ul>\n<div id="errorCode">bX-y33b4h</div>
> \n<h3>Additional information</h3>\n<div
> id="additionalInformation"><code><b>host:</b>\nwww.blogger.com <br></
> code> <code><b>uri:</b>\n/feeds/7134586/posts/default<br></code></div>
> \n<p>This information will help us to track down your specific problem
> and fix it! We apologize for the inconvenience.</p>\n</div></div></div>
> \n<div id="footer"><div><hr>\n<p><a href="/">Home</a>\n|\n<a href="/
> about">About</a>\n|\n<a href="http://buzz.blogger.com ">Buzz</a>\n|\n<a
> href="http://help.blogger.com/bin/static.py?page=start.cs ">Help</a>\n|
> \n<a href="http://groups.google.com/group/blogger-help " title="Ask
> questions and share information with other users in the Blogger Help
> Group">Discuss</a>\n|\n<a href="/language.g">Language</a>\n|\n<a
> href="http://code.blogspot.com/ ">Developers</a>\n|\n<a href="http://www.googlestore.com/category.asp?catid=search&searchtype=keyword& ...">Gear</a>\n<br>\n<a
> href="/terms.g">Terms of Service</a>\n|\n<a href="/privacy">Privacy</a>
> \n|\n<a href="/content.g">Content Policy</a>\n|\n<span
> dir="ltr">Copyright © 1999 – 2007 Google</span></p></div></
> div>\n</div>\n<script type="text/javascript" src="http://bx-
> codes.blogspot.com/feeds/posts/default/-/bX-y33b4h?alt=json-in-
> script&callback=showErrorMessage"></script></body></html>',
> 'reason': 'Internal Server Error'}
> iapetus:~/Downloads/gdata.py-1.0.9/samples/blogger/ >
> I am using python 2.5.1 on Mac OS X 10.5.1
> If you need anymore information I'd be glad to provide it.
It seems like this might have been a temporary server issue since it
was a 500 error and I am currently unable to reproduce it. Are you
seeing this error consistently?
Thank you,
Jeff
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Yi <yqi... @gmail.com>
Date: Fri, 21 Dec 2007 16:15:22 -0800 (PST)
Local: Fri, Dec 21 2007 7:15 pm
Subject: Re: Can not get python code sample to work
Hey Jeff,
This error seems to be resolved with the new release. I noticed that
the example changed as well, so I suppose that is what the fix was.
Cheers,
Yi
http://yiqiang.org
On Dec 18, 11:38 am, Jeff Scudder <j... @google.com> wrote:
> On Dec 17, 9:20 pm, Yi <yqi
... @gmail.com> wrote:
> > Hi,
> > I downloaded the gdata.py package and am trying to get the sample to
> > work. Running BloggerExample.py gives me the following error message:
> > Traceback (most recent call last):
> > File "BloggerExample.py", line 320, in <module>
> > main()
> > File "BloggerExample.py", line 316, in main
> > sample.run()
> > File "BloggerExample.py", line 237, in run
> > "Post author", True)
> > File "BloggerExample.py", line 104, in CreatePost
> > '/feeds/' + self.blog_id + '/posts/default')
> > File "build/bdist.macosx-10.3-i386/egg/gdata/service.py", line 757,
> > in Post
> > gdata.service.RequestError: {'status': 500, 'body': '<!DOCTYPE HTML
> > PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/
> > strict.dtd"><html dir="ltr"><head><base href="http://www.blogger.com ">
> > \n<meta http-equiv="Content-type" content="text/html; charset=utf-8">
> > \n<title>Blogger: Error performing your request</title>\n<link href="/
> > v-css/3241057453-blogger_lowend.css" rel="stylesheet" type="text/css">
> > \n<style type="text/css">\n @import url("/v-css/3670199809-
> > blogger_main.css");\n @import url("/v-css/3846071064-
> > buttons_dir.css"); \n @import url("/v-css/4278204697-
> > buttons.css");\n\n \n\n @media tty {\n i{content:"\\";/*"
> > "*/}} @import url("/v-css/1784484781-blogger_ie5win.css"); /*";}
> > \n }/* */\n\n </style>\n<script src="https://ssl.google-
> > analytics.com/urchin.js" type="text/javascript">\n </script>
> > <script type="text/javascript">\n _uacct="UA-18003-7";\n
> > _uanchor=1;\n urchinTracker();\n </script> \n<style type="text/
> > css">\n #body h2 {\n margin-top:0;\n }\n
> > \n #body p {\n color:#666;\n }\n\n
> > #errorCode {\n color:#826C55;\n text-align:center;
> > \n font-size:300%;\n margin:.5em\n }\n
> > \n #additionalInformation {\n margin:.5em;\n }\n
> > \n #errorDescription {\n
> > background:#ff9;\n padding:2em;\n margin:0 0 3em
> > 0;\n }\n </style>\n<script type="text/javascript">
> > \n function showErrorMessage(root) {\n var entries =
> > root.feed.entry || [];\n\n if (entries.length > 0)
> > {\n var entry = entries[0];\n\n
> > document.getElementById("errorHeading").innerHTML = entry.title.$t;\n
> > \n
> > document.getElementById("errorDescription").style.display = "block";
> > \n document.getElementById("errorDescription").innerHTML =
> > \n entry.content.$t;\n }\n }\n </
> > script></head>\n<body><div id="header"><div id="h2"><div id="h3"><a
> > href="/" id="logo" title="Blogger home"><img src="/img/logo40.gif"
> > width="150" height="40" alt="Blogger"></a>\n<p id="tag"><em>Push-
> > Button Publishing</em></p>\n<span class="r"></span></div></div></div>
> > \n<div id="body"><div id="main"><div id="m2"><div id="m3"><h2
> > id="errorHeading">We\'re sorry, but we were unable to complete your
> > request.</h2>\n\n<p id="errorDescription" style="display:none"></p>
> > \n<p>When reporting this error to Blogger Support or on the Blogger
> > Help Group, please:</p>\n<ul><li><strong>Describe what you were doing</
> > strong> when you got this error.</li>\n<li>Provide the following
> > <strong>error code</strong> and <strong>additional information</
> > strong>.</li></ul>\n<div id="errorCode">bX-y33b4h</div>
> > \n<h3>Additional information</h3>\n<div
> > id="additionalInformation"><code><b>host:</b>\nwww.blogger.com <br></
> > code> <code><b>uri:</b>\n/feeds/7134586/posts/default<br></code></div>
> > \n<p>This information will help us to track down your specific problem
> > and fix it! We apologize for the inconvenience.</p>\n</div></div></div>
> > \n<div id="footer"><div><hr>\n<p><a href="/">Home</a>\n|\n<a href="/
> > about">About</a>\n|\n<a href="http://buzz.blogger.com ">Buzz</a>\n|\n<a
> > href="http://help.blogger.com/bin/static.py?page=start.cs ">Help</a>\n|
> > \n<a href="http://groups.google.com/group/blogger-help " title="Ask
> > questions and share information with other users in the Blogger Help
> > Group">Discuss</a>\n|\n<a href="/language.g">Language</a>\n|\n<a
> > href="http://code.blogspot.com/ ">Developers</a>\n|\n<a href="http://www.googlestore.com/category.asp?catid=search&searchtype=keyword& ...">Gear</a>\n<br>\n<a
> > href="/terms.g">Terms of Service</a>\n|\n<a href="/privacy">Privacy</a>
> > \n|\n<a href="/content.g">Content Policy</a>\n|\n<span
> > dir="ltr">Copyright © 1999 – 2007 Google</span></p></div></
> > div>\n</div>\n<script type="text/javascript" src="http://bx-
> > codes.blogspot.com/feeds/posts/default/-/bX-y33b4h?alt=json-in-
> > script&callback=showErrorMessage"></script></body></html>',
> > 'reason': 'Internal Server Error'}
> > iapetus:~/Downloads/gdata.py-1.0.9/samples/blogger/ >
> > I am using python 2.5.1 on Mac OS X 10.5.1
> > If you need anymore information I'd be glad to provide it.
> It seems like this might have been a temporary server issue since it
> was a 500 error and I am currently unable to reproduce it. Are you
> seeing this error consistently?
> Thank you,
> Jeff
You must
Sign in before you can post messages.
You do not have the permission required to post.