Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-2131

[Python] Serialization test fails on Windows when library has been built in place / not installed

    XMLWordPrintableJSON

Details

    Description

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

      ================================== 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 ================
      

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: