hanneshapke / pyzillow

pyzillow is a python library to access the Zillow APIs
MIT License
98 stars 68 forks source link

Problem with GetUpdatedPropertyDetails #6

Open dgua opened 8 years ago

dgua commented 8 years ago

Hello, I am trying the example code from the readme. GetDeepSearchResults works with no problems, but GetUpdatedPropertyDetails fails.

Here's my code:

from pyzillow.pyzillow import ZillowWrapper, GetDeepSearchResults, GetUpdatedPropertyDetails zillow_data = ZillowWrapper(ZWSID) deep_search_response = zillow_data.get_deep_search_results(address, zipcode) result = GetDeepSearchResults(deep_search_response) zillow_id = result.zillow_id updated_property_details_response = zillow_data.get_updated_property_details(zillow_id) result = GetUpdatedPropertyDetails(updated_property_details_response)

Here is the error traceback:

`

TypeError Traceback (most recent call last) /Volumes/silo/Users/davide/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in run_code(self, code_obj, result) 3081 if result is not None: 3082 result.error_in_exec = sys.exc_info()[1] -> 3083 self.showtraceback() 3084 else: 3085 outflag = 0

/Volumes/silo/Users/davide/anaconda/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc in showtraceback(self, exc_tuple, filename, tb_offset, exception_only) 1880 value, tb, tb_offset=tb_offset) 1881 -> 1882 self._showtraceback(etype, value, stb) 1883 if self.call_pdb: 1884 # drop into debugger

/Volumes/silo/Users/davide/anaconda/lib/python2.7/site-packages/ipykernel/zmqshell.pyc in _showtraceback(self, etype, evalue, stb) 417 u'traceback' : stb, 418 u'ename' : unicode_type(etype.name), --> 419 u'evalue' : py3compat.safe_unicode(evalue), 420 } 421

/Volumes/silo/Users/davide/anaconda/lib/python2.7/site-packages/ipython_genutils/py3compat.pyc in safe_unicode(e) 63 """ 64 try: ---> 65 return unicode_type(e) 66 except UnicodeError: 67 pass

TypeError: coercing to Unicode: need string or buffer, dict found`

I am using Anaconda Python 2.7 and the latest pyzillow.

MDcontributor commented 6 years ago

I, too, am having the same problem with GetUpdatedPropertyDetails. However, I am running Anaconda Python 3.5. If there are any updates, I would love to hear them!

Thanks!