|
DependencyModules
Modules required by the Google data Python Client Library.
Phase-Deploy IntroductionThe modules in the project depend on the following modules. If they are not present in your execution environment, they will need to be added. cElementTree or ElementTreeThe XML parsing and generation for this library is carried out by ElementTree. There are two versions of Element Tree which work with this library, but I recommend using cElementTree as performance is better than for ElementTree. If you are using Python version 2.5 or higher, you will not need to install this package separately. Instructions for downloading and configuring cElementTree can be found here: http://effbot.org/zone/celementtree.htm Instructions for downloading and configuring ElementTree can be found here: http://effbot.org/zone/element-index.htm httplibhttplib has been part of the core Python library since version 2.0, so it should already be present on your system. urlliburllib is also a core Python library, so you should not have to install it. |
abc
I am getting the following error while running the sample code
./samples/base/baseQueryExample.py Please enter your Google Base query: digital camera Traceback (most recent call last):
gdata.service.RequestError?: {'status': 404, 'body': '<html><head><title>Error</title>\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n<script type="text/javascript">\n(function(){function a(d){this.t={};this.tick=function(e,f,b){b=b?b:(new Date).getTime();this.te?=[b,f]};this.tick("start",null,d)}var c=new a;window.jstiming={Timer:a,load:c};try{var g=null;if(window.chrome&&window.chrome.csi)g=Math.floor(window.chrome.csi().pageT);if(g==null)if(window.gtbExternal)g=window.gtbExternal.pageT();if(g==null)if(window.external)g=window.external.pageT;if(g)window.jstiming.pt=g}catch(h){};})();\n\n</script>\n<script type="text/javascript" src="/base/resource/847749285-tail_bin.js"></script>\n\n<link rel="stylesheet" type="text/css" href="/base/styles/gb.css">\n<script type="text/javascript" src="/base/googlebasejs/2500138738-googlebasejs.js"></script>\n\n</head>\n<body><script type="text/javascript">\n var gaq = gaq || ;\n gaq.push([\'setAccount\', "UA-18035-8"]);\n gaq.push([\'setDomainName\', \'none\']);\n gaq.push([\'setAllowLinker\', true]);\n gaq.push([\'trackPageview\']);\n\n (function() {\n var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;\n ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';\n var s = document.getElementsByTagName(\'script\')0?; s.parentNode.insertBefore(ga, s);\n })();\n </script>\n<div id="header-top-section"><div id="gaia-links"><a href="http://base.google.com/support/?hl=en_US" target="new">Help</a> | <a href="/base/welcome">Sign in</a></div>\n<h1><a href="/base/"><img src="http://www.google.com/images/logos/base_logo.gif" alt="Google Base"></a></h1>\n<div class="decoration-corners page-title"><div class="tl"><div class="tr"><div class="bl"><div class="br"><div class="decoration-content" id="page-title"><strong>Oops...</strong></div></div></div></div></div></div>\n<div class="alert-message-section" title="null">\n<div id="alertMessagePlaceholder" style="display:block"> </div></div>\n\n<br class="clear"></div>\n\n\n<div class="maximize"><div id="light-frame"><div class="error-page"><h3>Oops...</h3>\n<div class="error-message">We didn't understand that.</div>\n<div class="error-message">You have tried to access a non-existent page.</div>\n<div class="outlink"><a href="http://www.google.com/">Google Homepage</a></div></div></div></div>\n<div id="footer">© 2010 Google Inc.\n-\n<a href="/base/">Google Base Home</a> - <a href="http://www.google.com/privacy.html">Privacy Policy</a> - <a href="http://base.google.com/support/bin/answer.py?hl=en_US&answer=61118">Program Policies</a> - <a href="http://www.google.com/">Google Home</a></div>\n</body></html>\n<script type="text/javascript"> var loadTimer = window.jstiming.load;\nloadTimer.name = "error";\nloadTimer.tick("plt");\nif (window.jstiming.report) {\nwindow.jstiming.report(window.jstiming.load);\n}</script>', 'reason': 'Not Found'}The python version installed at my box
python Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45) 4.4.2 20091222 (Red Hat 4.4.2-20)? on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from xml.etree import ElementTree? >>>
I have successfully run the following
./samples/docs/docs_example.py NOTE: Please run these tests only with a test account. Please enter your username: askarali Password:
Document List Sample 1) List your documents. 2) Search your documents. 3) Upload a document. 4) Download a document. 5) List a document's permissions. 6) Add/change a document's permissions. 7) Exit.
I have the exact same problem!! And the Docs_example works well for me too.
For some reason I don't have the module named "atom" installed...: Traceback (most recent call last):
ImportError?: No module named atom where can I get it?I can't get the library to 5-star a video. I keep getting the error:
code? UnboundLocalError?: local variable 'rating_uri' referenced before assignment [/code]
I've tried using the natural link that is given to me through the id.text method as the argument for video_entry, but that doesn't work. I get the same error using the actual video id as well, which is gotten by rsplitting the link with a delimiter of '/' and a max of 1 separators.
Can anybody advise?
I know that the 5-star system has been deprecated by YouTube?, but when I looked at the ratings in the atom responses it seems like the rating-system just goes by Like/Dislike. I was hoping that in a way the 5-star rating could act as a "Like" until the library is updated.