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

using any function in top doesn't work #6

Open
hyalkaf opened this issue Jan 23, 2018 · 3 comments
Open

using any function in top doesn't work #6

hyalkaf opened this issue Jan 23, 2018 · 3 comments

Comments

@hyalkaf
Copy link

hyalkaf commented Jan 23, 2018

I'm running some python 3 code in a juypter notebook and I tried to to do

from cryptocompy import coin, top

top.get_top_coins("USD", 10)

However I'm getting this error.

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-30-d1a747a58826> in <module>()
      1 import pandas
----> 2 from cryptocompy import coin, top
      3 
      4 top.get_top_coins("USD", 10)

~\Anaconda3\lib\site-packages\cryptocompy\top.py in <module>()
      1 # top.py
      2 
----> 3 from helper_functions import build_url, load_data
      4 
      5 def get_top_exchanges_by_volume(fsym, tsym, limit=5):

ModuleNotFoundError: No module named 'helper_functions'
@gstqtfr
Copy link

gstqtfr commented Mar 12, 2018

Same problem for me, too!

@gstqtfr
Copy link

gstqtfr commented Mar 12, 2018

Looking at this, it's an import problem.

In mining.py and top.py (both of which throw the ModuleNotFoundError: No module named 'helper_functions' error, we have:

from helper_functions import build_url, load_data, ...

whereas the others use:

from .helper_functions import build_url, load_data, ...

Editing the import statements to relative imports fixes this for me.

@connorlee77
Copy link

Could the python package be updated with this change?

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

No branches or pull requests

3 participants