You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2018/02/11 21:08:01 UTC

[jira] [Created] (ARROW-2131) [Python] Serialization test fails on Windows when library has been built in place / not installed

Wes McKinney created ARROW-2131:
-----------------------------------

             Summary: [Python] Serialization test fails on Windows when library has been built in place / not installed
                 Key: ARROW-2131
                 URL: https://issues.apache.org/jira/browse/ARROW-2131
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
            Reporter: Wes McKinney
             Fix For: 0.9.0


I am not sure why this doesn't come up in Appveyor:

{code}
================================== FAILURES ===================================
________________ test_deserialize_buffer_in_different_process _________________

    def test_deserialize_buffer_in_different_process():
        import tempfile
        import subprocess

        f = tempfile.NamedTemporaryFile(delete=False)
        b = pa.serialize(pa.frombuffer(b'hello')).to_buffer()
        f.write(b.to_pybytes())
        f.close()

        dir_path = os.path.dirname(os.path.realpath(__file__))
        python_file = os.path.join(dir_path, 'deserialize_buffer.py')
>       subprocess.check_call([sys.executable, python_file, f.name])

pyarrow\tests\test_serialization.py:596:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

popenargs = (['C:\\Miniconda3\\envs\\pyarrow-dev\\python.exe', 'C:\\Users\\wesm\\code\\arrow\\python\\pyarrow\\tests\\deserialize_buffer.py', 'C:\\Users\\wesm\\AppData\\Local\\Temp\\tmp1gi__att'],)
kwargs = {}, retcode = 1
cmd = ['C:\\Miniconda3\\envs\\pyarrow-dev\\python.exe', 'C:\\Users\\wesm\\code\\arrow\\python\\pyarrow\\tests\\deserialize_buffer.py', 'C:\\Users\\wesm\\AppData\\Local\\Temp\\tmp1gi__att']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.

        The arguments are the same as for the call function.  Example:

        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['C:\\Miniconda3\\envs\\pyarrow-dev\\python.exe', 'C:\\Users\\wesm\\code\\arrow\\python\\pyarrow\\tests\\deserialize_buffer.py', 'C:\\Users\\wesm\\AppData\\Local\\Temp\\tmp1gi__att']' returned non-zero exit status 1.

C:\Miniconda3\envs\pyarrow-dev\lib\subprocess.py:291: CalledProcessError
---------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "C:\Users\wesm\code\arrow\python\pyarrow\tests\deserialize_buffer.py", line 22, in <module>
    import pyarrow as pa
ModuleNotFoundError: No module named 'pyarrow'
=============== 1 failed, 15 passed, 4 skipped in 0.40 seconds ================
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)