Dart on CentOS : error in Python

69 views
Skip to first unread message

Nicolas Ocquidant

unread,
Nov 19, 2014, 8:30:13 AM11/19/14
to mi...@dartlang.org
Trying to follow instructions : Building Dart on CentOS (https://code.google.com/p/dart/wiki/BuildingOnCentOS)

See below.

Help appreciated as I don't know Python (yet?)

Thanks,

// ---

[root@sonardip-01 tmp]#  gclient sync


all.deps (ERROR)
----------------------------------------
[0:00:00] Started.
----------------------------------------
Traceback (most recent call last):
  File "/root/tmp/depot_tools/gclient.py", line 2264, in <module>
    sys.exit(Main(sys.argv[1:]))
  File "/root/tmp/depot_tools/gclient.py", line 2252, in Main
    return dispatcher.execute(OptionParser(), argv)
  File "/root/tmp/depot_tools/subcommand.py", line 245, in execute
    return command(parser, args[1:])
  File "/root/tmp/depot_tools/gclient.py", line 2009, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/root/tmp/depot_tools/gclient.py", line 1520, in RunOnDeps
    work_queue.flush(revision_overrides, command, args, options=self._options)
  File "/root/tmp/depot_tools/gclient_utils.py", line 1012, in run
    self.item.run(*self.args, **self.kwargs)
  File "/root/tmp/depot_tools/gclient.py", line 832, in run
    file_list)
  File "/root/tmp/depot_tools/gclient_scm.py", line 163, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "/root/tmp/depot_tools/gclient_scm.py", line 1235, in update
    if scm.GIT.IsGitSvn(self.checkout_path):
  File "/root/tmp/depot_tools/scm.py", line 193, in IsGitSvn
    cwd=cwd)
  File "/root/tmp/depot_tools/scm.py", line 121, in Capture
    cwd=cwd, stderr=subprocess2.PIPE, env=env, **kwargs)
  File "/root/tmp/depot_tools/subprocess2.py", line 515, in check_output
    return check_call_out(args, stdout=PIPE, **kwargs)[0]
  File "/root/tmp/depot_tools/subprocess2.py", line 478, in check_call_out
    returncode, args, kwargs.get('cwd'), out[0], out[1])
  File "/root/tmp/depot_tools/subprocess2.py", line 37, in __init__
    super(CalledProcessError, self).__init__(returncode, cmd, output=stdout)
TypeError: __init__() got an unexpected keyword argument 'output'

Peter Ahé

unread,
Nov 19, 2014, 8:37:18 AM11/19/14
to mi...@dartlang.org
I suspect you're using a different version of Python than we expect. The version I use is Python 2.7.5.

Cheers,
Peter

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Nicolas Ocquidant

unread,
Nov 19, 2014, 9:54:37 AM11/19/14
to mi...@dartlang.org
Absolutely! Thanks,
Reply all
Reply to author
Forward
0 new messages