Skip to content

Failing stata tests on debian SPARC buildbot #5778

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
ghost opened this issue Dec 27, 2013 · 4 comments · Fixed by #5780
Closed

Failing stata tests on debian SPARC buildbot #5778

ghost opened this issue Dec 27, 2013 · 4 comments · Fixed by #5780
Labels
Bug IO Data IO issues that don't fit into a more specific label Testing pandas testing functions or related to the test suite
Milestone

Comments

@ghost
Copy link

ghost commented Dec 27, 2013

======================================================================
ERROR: test_read_write_dta11 (pandas.io.tests.test_stata.TestStata)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/tests/test_stata.py", line 247, in test_read_write_dta11
    written_and_read_again = self.read_dta(path)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/tests/test_stata.py", line 41, in read_dta
    return read_stata(file, convert_dates=True)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/stata.py", line 47, in read_stata
    reader = StataReader(filepath_or_buffer, encoding)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/stata.py", line 343, in __init__
    self._read_header()
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/stata.py", line 468, in _read_header
    for i in range(self.nvar)]
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/stata.py", line 468, in <listcomp>
    for i in range(self.nvar)]
TypeError: ord() expected a character, but string of length 0 found

======================================================================
ERROR: test_read_write_dta12 (pandas.io.tests.test_stata.TestStata)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/tests/test_stata.py", line 263, in test_read_write_dta12
    written_and_read_again = self.read_dta(path)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/tests/test_stata.py", line 41, in read_dta
    return read_stata(file, convert_dates=True)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/stata.py", line 47, in read_stata
    reader = StataReader(filepath_or_buffer, encoding)
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/stata.py", line 343, in __init__
    self._read_header()
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/stata.py", line 468, in _read_header
    for i in range(self.nvar)]
  File "/home/buildslave/nd-bb-slave-sparc-sid/pandas-py3_x-sid-sparc/build/venv/lib/python3.3/site-packages/pandas-0.13.0rc1_124_g8cd34c6-py3.3-linux-sparc64.egg/pandas/io/stata.py", line 468, in <listcomp>
    for i in range(self.nvar)]
TypeError: ord() expected a character, but string of length 0 found

cc @PKEuS
http://nipy.bic.berkeley.edu/builders/pandas-py3.x-sid-sparc/builds/491/steps/shell_4/logs/stdio

@jreback
Copy link
Contributor

jreback commented Dec 27, 2013

these need to be skipped like the other ones (e.g. if not is_little_endian():.....), never could get it to work properly on big endian so we punted on this

@jreback
Copy link
Contributor

jreback commented Dec 27, 2013

@y-p thanks...lmk any more you see

@yarikoptic
Copy link
Contributor

Hopefully fixes through skipping would never bite you back ;-p I have seen quite a few bugs which were simply uncovered while testing on big endians, while the original issue was not endian specific

@jreback
Copy link
Contributor

jreback commented Dec 27, 2013

@yarikoptic very true

these skips are on a very specific binary format that is being tested
most of the tests work - open issue for original author to take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug IO Data IO issues that don't fit into a more specific label 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