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

[Archery][CI] Fix failure when trying to run archery docker with GPU enabled containers

    XMLWordPrintableJSON

Details

    Description

      Currently when trying to run archery docker run ubuntu-cuda-cpp we get the following error:

      Traceback (most recent call last):
        File "/home/jwj/.local/bin/archery", line 33, in <module>
          sys.exit(load_entry_point('archery', 'console_scripts', 'archery')())
        File "/home/jwj/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
          return self.main(*args, **kwargs)
        File "/home/jwj/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
          rv = self.invoke(ctx)
        File "/home/jwj/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
          return _process_result(sub_ctx.command.invoke(sub_ctx))
        File "/home/jwj/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
          return _process_result(sub_ctx.command.invoke(sub_ctx))
        File "/home/jwj/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
          return ctx.invoke(self.callback, **ctx.params)
        File "/home/jwj/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
          return __callback(*args, **kwargs)
        File "/home/jwj/.local/lib/python3.10/site-packages/click/decorators.py", line 38, in new_func
          return f(get_current_context().obj, *args, **kwargs)
        File "/home/jwj/code/centos-cxx17/dev/archery/archery/docker/cli.py", line 248, in docker_run
          compose.run(
        File "/home/jwj/code/centos-cxx17/dev/archery/archery/docker/core.py", line 381, in run
          args.extend(shlex.split(cmd))
        File "/usr/lib/python3.10/shlex.py", line 315, in split
          return list(lex)
        File "/usr/lib/python3.10/shlex.py", line 300, in __next__
          token = self.get_token()
        File "/usr/lib/python3.10/shlex.py", line 109, in get_token
          raw = self.read_token()
        File "/usr/lib/python3.10/shlex.py", line 140, in read_token
          nextchar = self.instream.read(1)
      AttributeError: 'CommentedSeq' object has no attribute 'read' 

      We should also update shlex.split as it has been deprecated.

      Attachments

        Issue Links

          Activity

            People

              raulcd Raúl Cumplido
              raulcd Raúl Cumplido
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h