Skip to content

AttributeError: 'module' object has no attribute 'open_file' #8650

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
yarikoptic opened this issue Oct 27, 2014 · 2 comments · Fixed by #8651
Closed

AttributeError: 'module' object has no attribute 'open_file' #8650

yarikoptic opened this issue Oct 27, 2014 · 2 comments · Fixed by #8651
Labels
IO HDF5 read_hdf, HDFStore Testing pandas testing functions or related to the test suite
Milestone

Comments

@yarikoptic
Copy link
Contributor

======================================================================
ERROR: test_frame_select_complex2 (pandas.io.tests.test_pytables.TestHDFStore)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_pytables.py", line 3686, in test_frame_select_complex2
    parms.to_hdf(pp,'df',mode='w',format='table',data_columns=['A'])
  File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/core/generic.py", line 896, in to_hdf
    return pytables.to_hdf(path_or_buf, key, self, **kwargs)
  File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/pytables.py", line 293, in to_hdf
    complib=complib) as store:
  File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
    return self.gen.next()
  File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/pytables.py", line 274, in get_store
    store = HDFStore(path, **kwargs)
  File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/pytables.py", line 423, in __init__
    self.open(mode=mode, **kwargs)
  File "/tmp/buildd/pandas-0.15.0/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/pytables.py", line 553, in open
    self._handle = tables.open_file(self._path, self._mode, **kwargs)
AttributeError: 'module' object has no attribute 'open_file'

on the same old ubuntu 13.10

INSTALLED VERSIONS
------------------
commit: None
python: 2.7.5.final.0
python-bits: 64
OS: Linux
OS-release: 3.2.0-4-amd64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: C
LANG: C

pandas: 0.15.0
nose: 1.3.0
Cython: 0.19
numpy: 1.7.1
scipy: 0.12.0
statsmodels: 0.5.0
IPython: None
sphinx: 1.1.3
patsy: 0.3.0
dateutil: 1.5
pytz: 2012c
bottleneck: None
tables: 2.4.0
numexpr: 2.0.1
matplotlib: 1.2.1
openpyxl: 1.7.0
xlrd: 0.9.2
xlwt: 0.7.4
xlsxwriter: None
lxml: None
bs4: 4.2.0
html5lib: 0.95-dev
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None
@jreback
Copy link
Contributor

jreback commented Oct 27, 2014

same here this PyTables too old and not supported
Numexpr too

@jreback
Copy link
Contributor

jreback commented Oct 27, 2014

we do s delayed import of tables so it's possible that the test machinery swallows the error

@jreback jreback added IO HDF5 read_hdf, HDFStore Testing pandas testing functions or related to the test suite labels Oct 27, 2014
@jreback jreback added this to the 0.15.1 milestone Oct 27, 2014
@jreback jreback modified the milestones: 0.15.2, 0.15.1 Oct 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO HDF5 read_hdf, HDFStore Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants