pypoloniex icon indicating copy to clipboard operation
pypoloniex copied to clipboard

ModuleNotFoundError: No module named 'LoadPairs'

Open ahmedahmedov opened this issue 7 years ago • 5 comments

Installed with pip. It seems this version is changed.

ahmedahmedov avatar Dec 19 '17 16:12 ahmedahmedov

When trying to install thru git using the following command: pip install git+https://github.com/Crypto-AI/pypoloniex I get the following error:

`
(py3) user@user-dwtc:~/anaconda3/envs/py3/lib/python3.6/site-packages/stocktalk$ pip install git+https://github.com/Crypto-AI/pypoloniex
Collecting git+https://github.com/Crypto-AI/pypoloniex
  Cloning https://github.com/Crypto-AI/pypoloniex to /tmp/pip-gku_271b-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/user/anaconda3/envs/py3/lib/python3.6/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-gku_271b-build/setup.py'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-gku_271b-build/`

ahmedahmedov avatar Dec 19 '17 16:12 ahmedahmedov

same here, i installed via pip, and look at thi error, it always try to import LoadPairs, doesn't matter if i just want TimeSeries

<ipython-input-5-2544aeba6ca4> in <module>()
----> 1 from pypoloniex import TimeSeries
      2 
      3 sess = TimeSeries()
      4 
      5 LTC = sess.getPair(market='BTC', coin='LTC')

~\Anaconda3\envs\cryptocurrency-analysis\lib\site-packages\pypoloniex\__init__.py in <module>()
----> 1 from LoadPairs import LoadPairs
      2 from TimeSeries import TimeSeries

ModuleNotFoundError: No module named 'LoadPairs'

Draichi avatar May 27 '18 22:05 Draichi

still having same problem from pypoloniex import LoadPairs ses=LoadPairs()

LTC=ses.getpair(market = 'BTC', coin = 'LTC') print(LTC) ImportError: No module named 'LoadPairs'

alperasan avatar Jan 31 '19 18:01 alperasan

one fix for python3 will be to modify the file init.py and change the following: Original from LoadPairs import LoadPairs Changed from .LoadPairs import LoadPairs

victorpy avatar Jan 05 '20 14:01 victorpy

Install through Github, I haven't updated the package on PyPi. If someone wants to upgrade it to Python 3 feel free to submit a pull request.

I'm surprised people are still using this package.

anfederico avatar Jan 05 '20 17:01 anfederico