Skip to content

pandas import throws AttributeError: 'module' object has no attribute 'dtype' #11851

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

Closed
gliptak opened this issue Dec 16, 2015 · 8 comments
Closed

Comments

@gliptak
Copy link
Contributor

gliptak commented Dec 16, 2015

In https://travis-ci.org/cloudera/spark-timeseries/jobs/97127307

Compiled numpy-1.10.2 and pandas-0.17.1

======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'dtype')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/cloudera/spark-timeseries/python/.eggs/nose-1.3.7-py2.7.egg/nose/loader.py", line 418, in loadTestsFromName
    addr.filename, addr.module)
  File "/home/travis/build/cloudera/spark-timeseries/python/.eggs/nose-1.3.7-py2.7.egg/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/home/travis/build/cloudera/spark-timeseries/python/.eggs/nose-1.3.7-py2.7.egg/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/home/travis/build/cloudera/spark-timeseries/python/sparkts/test/test_datetimeindex.py", line 1, in <module>
    from test_utils import PySparkTestCase
  File "/home/travis/build/cloudera/spark-timeseries/python/sparkts/test/test_utils.py", line 2, in <module>
    from sparkts.utils import add_pyspark_path, quiet_py4j
  File "/home/travis/build/cloudera/spark-timeseries/python/sparkts/utils.py", line 4, in <module>
    import pandas as pd
  File "/home/travis/build/cloudera/spark-timeseries/python/.eggs/pandas-0.17.1-py2.7-linux-x86_64.egg/pandas/__init__.py", line 7, in <module>
    from pandas import hashtable, tslib, lib
  File "pandas/src/numpy.pxd", line 157, in init pandas.hashtable (pandas/hashtable.c:38262)
AttributeError: 'module' object has no attribute 'dtype'
@gliptak
Copy link
Contributor Author

gliptak commented Dec 16, 2015

Similar to #3711 #7517

@jreback
Copy link
Contributor

jreback commented Dec 16, 2015

has this ever worked?

@gliptak
Copy link
Contributor Author

gliptak commented Dec 16, 2015

The Travis build never worked.

Locally running python ./setup.py test with pip installed numpy (1.9.2) and pandas (0.17.1) the build was OK.

I just uninstalled those and pulling in numpy-1.10.2 and pandas-0.17.1 (by the setup.py) my local is also now broken.

The Travis build is a clean install (although has a number of other dependencies) ...

@jreback
Copy link
Contributor

jreback commented Dec 16, 2015

not sure how you are installing
easiest to use conda

this is not directly s pandas issue it s build / install issue

@jreback jreback closed this as completed Dec 16, 2015
@gliptak
Copy link
Contributor Author

gliptak commented Dec 16, 2015

Installing running python ./setup.py test

https://github.com/gliptak/spark-timeseries/blob/mavenpython/python/setup.py

@jreback What is the right forum to discuss this? Thanks

@jreback
Copy link
Contributor

jreback commented Dec 16, 2015

you need to have a higher pandas version requirement I would say

pandas doesn't have that kind of forward compat with numpy

@gliptak
Copy link
Contributor Author

gliptak commented Dec 16, 2015

As per above, Pandas 0.17.1 got installed (which seems to be the latest version) with NumPy 0.10.2 (latest version too). What influence would the lower limit have in this case? Thanks

@jreback
Copy link
Contributor

jreback commented Dec 16, 2015

not really sure what your issue is

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

2 participants