Rob-- / SnapWrap

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

snapchat vs SnapWrap #17

Open NoahCristino opened 4 years ago

NoahCristino commented 4 years ago

I've tried to run the example code and I keep getting this error:

  from SnapWrap import Snapchat
  File "/home/noah/SnapWrap-master/SnapWrap/__init__.py", line 1, in <module>
    from snapchat import Snap
ImportError: cannot import name 'Snap' from 'snapchat' (/usr/lib/python3.8/site-packages/snapchat/__init__.py)

the readme code says import snapchat while the example.py file is import SnapWrap. The import SnapWrap works but fails due to the init.py trying to use a library called snapchat. I've tried to change it to SnapWrap which is recognized but that leads to a circular reference error. Any ideas how this could be fixed?

nasserakhter commented 4 years ago

try import SnapWrap as snapchat