Skip to content

TST: test_write_dta5 and test_write_dta6 failures on sparc #3896

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 Jun 13, 2013 · 0 comments · Fixed by #3898
Closed

TST: test_write_dta5 and test_write_dta6 failures on sparc #3896

yarikoptic opened this issue Jun 13, 2013 · 0 comments · Fixed by #3898
Labels
Testing pandas testing functions or related to the test suite
Milestone

Comments

@yarikoptic
Copy link
Contributor

v0.11.0-492-gb204e14

======================================================================
ERROR: test_write_dta5 (pandas.io.tests.test_stata.StataTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 137, in test_write_dta5
    written_and_read_again = self.read_dta(path)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 39, in read_dta
    return read_stata(file, convert_dates=True)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 37, in read_stata
    reader = StataReader(filepath_or_buffer, encoding)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 302, in __init__
    self._read_header()
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 324, in _read_header
    typlist = [ord(self.path_or_buf.read(1)) for i in range(self.nvar)]
TypeError: ord() expected a character, but string of length 0 found

======================================================================
ERROR: test_write_dta6 (pandas.io.tests.test_stata.StataTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 146, in test_write_dta6
    written_and_read_again = self.read_dta(path)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/test_stata.py", line 39, in read_dta
    return read_stata(file, convert_dates=True)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 37, in read_stata
    reader = StataReader(filepath_or_buffer, encoding)
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 302, in __init__
    self._read_header()
  File "/home/yoh/deb/gits/pkg-exppsy/pandas/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/stata.py", line 328, in _read_header
    self.dtyplist = [self.DTYPE_MAP[typ] for typ in typlist]
KeyError: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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