Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fix for issue #15 (importing) #16

merged 1 commit into from

3 participants


We ran into this issue today as well. I was going to put a pull request in for the fix but you beat me too it. Thanks for sharing!

@joshmarshall joshmarshall merged commit 53c8ffc into joshmarshall:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 19, 2012
  1. @jsalz
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 0 deletions.
  1. +7 −0 jsonrpclib/
7 jsonrpclib/
@@ -129,6 +129,13 @@ def load(obj):
except ImportError:
raise TranslationError('Could not import %s from module %s.' %
(json_class_name, json_module_tree))
+ # The returned class is the top-level module, not the one we really
+ # want. (E.g., if we import a.b.c, we now have a.) Walk through other
+ # path components to get to b and c.
+ for i in json_module_parts[1:]:
+ temp_module = getattr(temp_module, i)
json_class = getattr(temp_module, json_class_name)
# Creating the object...
new_obj = None
Something went wrong with that request. Please try again.