About Archive Tag Cloud Translations RSS

You are writing a comment about Search Recipes for Yahoo's BOSS in Python, here is a quick summary:

This entry is a bit of a cookbook for using Yahoo's Python library for accessing the BOSS Mashup Framework. It has full examples for searching the web, images, news , for paginating results, and for limiting searches to specific domains.


You are responding to this comment written by Will Larson on July 17th 2008, 00:01.

Lyna,

Are you running Python in a directory that contains the config.json file? I have to admit I'm not exactly sure how the path is decided in the Windows XP context.

My impression is that the poor design of the library in regards to the config.json file, and attempts to discover it, are at the root of this.

However, it might also be a malformed config.json file as well. Trying something like this should help narrow things down:

import simplejson
file = open('config.json','r')
data = file.read()
file.close()
extracted = simplejson.loads(data)
print extracted

Sorry that I don't have a Windows machine to test things on. When I was actually doing Python development on Windows XP I wasn't doing anything sufficiently advanced to run into these kinds of issues.

Will


Please be aware that comment forms go stale after one hour.





Comments may make use of LifeFlow MarkDown. Raw html will be escaped.


Quick Introduction to LifeFlow MarkDown Syntax

A highlighted code block:

@@ ruby
def a (b, c):
  b * c
end
@@

Other common languages work as well: scheme, python, java, html, etc.

Other markdown syntax:

 ### This is an h3 title
#### This is an h4 title
**this is bold**
*this is italics*

1. This is an
2. ordered list

* And an unordered
* list too

[this is a link](http://www.lethain.com/ "Lethain")