quandl / quandl-python

MIT License
1.38k stars 338 forks source link

pandas dependency #32

Closed hobson closed 8 years ago

hobson commented 9 years ago

pip install Quandl gives "ImportError: No module named pandas"

Downloading/unpacking Quandl Downloading Quandl-2.2.tar.gz Running setup.py (path:/home/hobs/.virtualenvs/pugtest/build/Quandl/setup.py) egg_info for package Quandl Traceback (most recent call last): File "", line 17, in File "/home/hobs/.virtualenvs/pugtest/build/Quandl/setup.py", line 6, in import Quandl File "Quandl/init.py", line 13, in from .Quandl import ( File "Quandl/Quandl.py", line 11, in import pandas as pd ImportError: No module named pandas Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/home/hobs/.virtualenvs/pugtest/build/Quandl/setup.py", line 6, in

import Quandl

File "Quandl/init.py", line 13, in

from .Quandl import (

File "Quandl/Quandl.py", line 11, in

import pandas as pd

ImportError: No module named pandas

ChrisStevens commented 9 years ago

Do you have pandas installed on your system?

If you pip install pandas and then Quandl this should be solved.

Please let me know.

hobson commented 9 years ago

Not on a fresh virtualenv! Nothing should be installed on a test system where pip install Quandl is tested or used for fresh deployment. I found the problem in Quandl.__init__.py. It's trying to import itself. And setup.py is trying to import it to gain access to authors etc. That breaks setup.py when it tries to install those dependencies that init.py imports. I'll send a PR from my fork that worked for me so I could use pip and setup.py for Quandl on systems like circle, heroku, codeship, etc. .

hobson commented 9 years ago

Patch that fixes this for me is in #33