You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Valentyn Tymofieiev (JIRA)" <ji...@apache.org> on 2018/10/03 06:12:00 UTC

[jira] [Created] (BEAM-5627) Several IO tests fail in Python 3 with TypeError: a bytes-like object is required, not 'str'

Valentyn Tymofieiev created BEAM-5627:
-----------------------------------------

             Summary: Several IO tests fail in Python 3  with  TypeError: a bytes-like object is required, not 'str'
                 Key: BEAM-5627
                 URL: https://issues.apache.org/jira/browse/BEAM-5627
             Project: Beam
          Issue Type: Sub-task
          Components: sdk-py-core
            Reporter: Valentyn Tymofieiev


======================================================================
 ERROR: test_file_sink_writing (apache_beam.io.filebasedsink_test.TestFileBasedSink)
----------------------------------------------------------------------
Traceback (most recent call last):
   File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/          apache_beam/io/filebasedsink_test.py", line 121, in test_file_sink_writing
      init_token, writer_results = self._common_init(sink)
    File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/          apache_beam/io/filebasedsink_test.py", line 103, in _common_init
      writer1 = sink.open_writer(init_token, '1')
    File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/          apache_beam/options/value_provider.py", line 133, in _f
      return fnc(self, *args, **kwargs)
    File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/          apache_beam/io/filebasedsink.py", line 185, in open_writer
    return FileBasedSinkWriter(self, os.path.join(init_result, uid) + suffix)
    File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/          apache_beam/io/filebasedsink.py", line 385, in __init__
      self.temp_handle = self.sink.open(temp_shard_path)
    File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/          apache_beam/io/filebasedsink_test.py", line 82, in open
      file_handle.write('[start]')
  TypeError: a bytes-like object is required, not 'str'



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