barnumbirr / coinmarketcap

A python wrapper around the https://coinmarketcap.com API.
Apache License 2.0
437 stars 110 forks source link

Im numb #37

Closed wardj1999 closed 6 years ago

wardj1999 commented 6 years ago

So im calling

from coinmarketcap import Market coinmarketcap = Market() coinmarketcap.ticker(start=0, limit=3, convert='EUR')

as stated in the manual you provided and I have installed all the dependicies using PyCharm but every time I run it it just returns

Traceback (most recent call last): File "C:/Users/J/PycharmProjects/Learning/coinmarketcap.py", line 1, in from coinmarketcap import Market File "C:\Users\J\PycharmProjects\Learning\coinmarketcap.py", line 1, in from coinmarketcap import Market ImportError: cannot import name 'Market'

I'm pretty new to python but have coded in the past in other languages im just not understanding what im doing wrong. I have requests installed and requests cache installed i tried restarting PyCharm to see if maybe they werent registering but still to no avail. The module is installed in my Pycharm directory and the class Market() does exist im just not sure what im doing wrong...

wardj1999 commented 6 years ago

Nvm my file had the same name as the module so it was just calling from my coinmarketcap.py file and not the module lol i dont know how to close issues but if you could thatd be great :)