seme0021 / python-zillow

Python library for the Zillow API
Apache License 2.0
130 stars 64 forks source link

Doesn't work with '3.5.2 |Anaconda 4.2.0 (x86_64)| #13

Closed JJnotJimmyJohn closed 7 years ago

JJnotJimmyJohn commented 7 years ago

Error message: File "/Users/jianjin/anaconda/lib/python3.5/site-packages/zillow/place.py", line 15 print "%s: %s" % (i, self.dict[i]) ^ SyntaxError: invalid syntax

beardlesslumberjack commented 7 years ago

Hey, i'm running into the same problem, did you ever find out what the issue was?

JJnotJimmyJohn commented 7 years ago

Nope. I used another zillow package.

beardlesslumberjack commented 7 years ago

which one did you use?

JJnotJimmyJohn commented 7 years ago

I'm sorry I just checked my old scripts. I used the same package but looks like I installed python 2.7 just for this package LOL.

KixS commented 7 years ago

There is an easy fix. Open the file place.py and put between brackets the print argument.

Python 3 changed the print syntax.

Python 2 : print xxxx
Python 3 : print(xxxx)
JJnotJimmyJohn commented 7 years ago

KixS,

You are definitly correct. Did you try this approach? I didn't do it simply because I was concerned there might be some other stuff not compatible with 3.x.

KixS commented 7 years ago

Yes, I just installed the module and so far it works as expected with Python 3.6

JJnotJimmyJohn commented 7 years ago

Perfect. Thank you KixS.