DolphDev / pynationstates

Python API wrapper for NationStates
MIT License
15 stars 4 forks source link

Unable to load API #6

Closed OliMations closed 5 years ago

OliMations commented 5 years ago

So I installed the nationstates module using pip, pip install nationstates But when i try to import the nationstates api. It says "cannot import Api" I know this works as on another system where I installed the package a few months ago, it imported fine. Just on this new system where I installed nationstates just yesterday it gives me that error

Thanks!

DolphDev commented 5 years ago

Could you post the full traceback/error message? I an unable to reproduce on supported platforms.

Do note that this module has gone through extensive api changes since a few months ago, the last supported version there was https://pypi.org/project/nationstates/1.1.35.66/ which you can install through pip install nationstates==1.1.35.66

EDIT: It seems that this is likely your issue, I'm still writing out the docs for the new module

Thanks for reporting

OliMations commented 5 years ago

Hi, i did imagine this was my personal issue. As i have got on amazingly well with this package before. In terms of a traceback. There really isn't one, it simply says cannot import name 'Api'. It can import everything else just not that. I will give your idea a try and get back to you very soon about if it works or not.

EDIT: Yes that did indeed work, Thank you for the information!