Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular Dependency? #14

Open
mhs321 opened this issue Dec 11, 2017 · 9 comments
Open

Circular Dependency? #14

mhs321 opened this issue Dec 11, 2017 · 9 comments
Labels

Comments

@mhs321
Copy link

mhs321 commented Dec 11, 2017

Hi,

Thanks for making this package. Is anyone else getting a circular dependency issue when trying to import the CoinSpot package?

I am using Python3.5 and I get an import error:

from coinspot import CoinSpot

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-2-d10b2caa352c> in <module>()
----> 1 from coinspot import CoinSpot as CS

~/.local/lib/python3.5/site-packages/coinspot/__init__.py in <module>()
----> 1 from coinspot import CoinSpot
      2

ImportError: cannot import name 'CoinSpot'
@geekpete
Copy link
Owner

Thanks for reporting this.
I can replicate the issue on OSX, I'll see what I can do to fix it.
What OS were you on?

@mhs321
Copy link
Author

mhs321 commented Dec 11, 2017 via email

@geekpete geekpete added the bug label Jan 19, 2018
@DanielFarahani
Copy link

Having the same issue here; using ubuntu 18, any guidance?
ty

@NET-OF-BEING
Copy link

Same issue... Whats going on with this issue. I'm getting
{"status":"error","message":"invalid key/secret"}

@PeterMav
Copy link

PeterMav commented May 25, 2021

Same issue with me. Getting the circular bug and unable to retrieve any data as getting
{"status":"error","message":"invalid key/secret"}
I just want to add the actual error I am receiving
from coinspot import CoinSpot
ImportError: cannot import name 'CoinSpot' from partially initialized module 'coinspot' (most likely due to a circular import)

@WasOnce
Copy link

WasOnce commented Sep 10, 2021

Further detail on the errors I am getting and resolution that worked for me.

Import "httplib" could not be resolved : Pylance (reportMissingImports)
It seems that httplib has been changed to http.client in python 3. Therefore a change to coinspot.py is required to change the line "import httplib" to "import http.client as httplib"
This seems to clear this error for me.

Import "yaml" could not be resolved from source : Pylance (reportMissingModuleSource)
After "pip install PyYAML" the missing module problem also was resolved.

Unfortunately the above changes did not resolve the orignal error
"Exception has occurred: ImportError
cannot import name 'CoinSpot' from partially initialized module 'coinspot' (most likely due to a circular import) "

@geekpete
Copy link
Owner

Take a look at the py3fixes branch. I will probably merge it to master soon.

@WasOnce
Copy link

WasOnce commented Sep 12, 2021 via email

@geekpete
Copy link
Owner

geekpete commented Sep 13, 2021

Wasn't even aware of this...it'd be nice to support the new API even if it is still only in Beta, lemme take a look.
This Python library was based off the official Coinspot JS library/SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants