List Info

Thread: Can not get python code sample to work




Can not get python code sample to work
user name
2007-12-17 23:20:37
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/html
4/
strict.dtd"><html
dir="ltr"><head><base href="http://www.blogger.c
om">
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");nn    nn    media tty {n     
i{content:"\";/*"
"*/}} import
url("/v-css/1784484781-blogger_ie5win.css");
/*";}
n    }/* */nn  </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        }nn
#errorCode {n          color:#826C55;n         
text-align:center;
n          font-size:300%;n          margin:.5emn       
}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 || [];nn          if (entries.length >
0)
{n            var entry = entries[0];nn
document.getElementById("errorHeading").innerHTML
= entry.title.$t;n
n
document.getElementById("errorDescription").style.
display = "block";
n           
document.getElementById("errorDescription").innerH
TML =
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>nn<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>Describ
e 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/de
fault<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&g
t;
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="htt
p://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&amp;search
type=keyword&amp;search=blogger">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 &copy; 1999 &ndash;
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&amp;callback=showErrorMessage"></scrip
t></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 received this message because you are subscribed to the
Google Groups "Blogger Data API" group.
To post to this group, send email to bloggerDevgooglegroups.com
To unsubscribe from this group, send email to
bloggerDev-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/bloggerDev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Can not get python code sample to work
user name
2007-12-18 13:38:39


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/html
4/
> strict.dtd"><html
dir="ltr"><head><base href="http://www.blogger.c
om">
> 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");nn    nn    media tty
{n      i{content:"\";/*"
> "*/}} import
url("/v-css/1784484781-blogger_ie5win.css");
/*";}
> n    }/* */nn  </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       
}nn
> #errorCode {n          color:#826C55;n         
text-align:center;
> n          font-size:300%;n          margin:.5emn   
    }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 || [];nn          if (entries.length
> 0)
> {n            var entry = entries[0];nn
>
document.getElementById("errorHeading").innerHTML
= entry.title.$t;n
> n
>
document.getElementById("errorDescription").style.
display = "block";
> n           
document.getElementById("errorDescription").innerH
TML =
> 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>nn<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>Describ
e 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/de
fault<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&g
t;
> 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="htt
p://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&searchty
pe=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 &copy; 1999
&ndash; 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&amp;callback=showErrorMessage"></scrip
t></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 received this message because you are subscribed to the
Google Groups "Blogger Data API" group.
To post to this group, send email to bloggerDevgooglegroups.com
To unsubscribe from this group, send email to
bloggerDev-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/bloggerDev?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Can not get python code sample to work
user name
2007-12-21 18:15:22
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/html
4/
> > strict.dtd"><html
dir="ltr"><head><base href="http://www.blogger.c
om">
> > 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");nn � �nn � �media tty
{n � � �i{content:"\";/*"
> > "*/}} import
url("/v-css/1784484781-blogger_ie5win.css");
/*";}
> > n � �}/* */nn �</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 � � � �}nn
> > #errorCode {n � � � � �color:#826C55;n
� � � � �text-align:center;
> > n � � � � �font-size:300%;n � �
� � �margin:.5emn � � � �}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 || [];nn � � � � �if
(entries.length > 0)
> > {n � � � � � �var entry =
entries[0];nn
> >
document.getElementById("errorHeading").innerHTML
= entry.title.$t;n
> > n
> >
document.getElementById("errorDescription").style.
display = "block";
> > n � � � � �
�document.getElementById("errorDescription").inn
erHTML =
> > 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>nn<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>Describ
e 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/de
fault<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&g
t;
> > 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="htt
p://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&searchty
pe=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 &copy; 1999
&ndash; 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&amp;callback=showErrorMessage"></scrip
t></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 received this message because you are subscribed to the
Google Groups "Blogger Data API" group.
To post to this group, send email to bloggerDevgooglegroups.com
To unsubscribe from this group, send email to
bloggerDev-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/bloggerDev?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )