Rob-- / SnapWrap

Wrapper for the unofficial and undocumented Snapchat API (using Snapchat's latest endpoints).
MIT License
57 stars 7 forks source link

Error in the example #6

Closed atestu closed 9 years ago

atestu commented 9 years ago

I'm getting this error when trying to run the example.

Traceback (most recent call last):
  File "example.py", line 1, in <module>
    from SnapWrap import Snapchat
  File "SnapWrap/SnapWrap/__init__.py", line 2, in <module>
    from snapchat import Snapchat
  File "SnapWrap/SnapWrap/snapchat.py", line 2, in <module>
    from SnapWrap import Client, Snap
ImportError: cannot import name Client

(I'm running python 2.7.6)

Rob-- commented 9 years ago

This is a simple fix, sorry for the trouble. You could try cloning the library and try and solve it yourself. I'll investigate when I get home from school.

atestu commented 9 years ago

Thanks, no worries. I'm very new at Python so I have no idea how to do that sorry :-/

On Mar 11, 2015, at 04:22, Robert notifications@github.com wrote:

This is a simple fix, sorry for the trouble. You could try cloning the library and try and solve it yourself. I'll investigate when I get home from school.

— Reply to this email directly or view it on GitHub.

Rob-- commented 9 years ago

It should work - try downloading the repo as a .zip file and then running python setup.py install. If you're still having trouble then post a comment, if it's fixed also either tell me so I can close the issue or close it yourself.

May I ask why you're using Python 2.7.6? I haven't tested it on this version, the lowest I've tested is 2.7.9.

Rob-- commented 9 years ago

I presume you've sorted everything out.

atestu commented 9 years ago

2.7.6 is the one that came with my Mac. I downloaded the zip and now it's working, thanks a lot and sorry for not responding earlier!