depot_tools error

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

depot_tools error

Postby nXman » Wed Jul 13, 2016 6:08 am

I have exported depot_tools in PATH with
Code: Select all
export PATH=/home/myuser/code/depot_tools:$PATH

Then I run ./cef_create_projects.sh and I get
Code: Select all
Generating CEF version header file...

________ running '/usr/bin/python tools/make_version_header.py --header include/cef_version.h --cef_version VERSION --chrome_version ../chrome/VERSION --cpp_header_dir include' in '/home/nomachine/code/chromium_git/chromium/src/cef'
Failed to write file include/cef_version.h: Permission deniedTraceback (most recent call last):
  File "tools/make_version_header.py", line 168, in <module>
    written = write_version_header(options.header, options.chrome_version, options.cef_version, options.cpp_header_dir)
  File "tools/make_version_header.py", line 163, in write_version_header
    write_file(header, newcontents)
  File "/home/nomachine/code/chromium_git/chromium/src/cef/tools/file_util.py", line 30, in write_file
    f = open(name, 'w')
IOError: [Errno 13] Permission denied: 'include/cef_version.h'
Traceback (most recent call last):
  File "tools/gclient_hook.py", line 20, in <module>
    RunAction(cef_dir, gyper)
  File "/home/nomachine/code/chromium_git/chromium/src/cef/tools/gclient_util.py", line 39, in RunAction
    command, cwd=dir, always=True)
  File "/home/nomachine/code/depot_tools/gclient_utils.py", line 293, in CheckCallAndFilterAndHeader
    return CheckCallAndFilter(args, **kwargs)
  File "/home/nomachine/code/depot_tools/gclient_utils.py", line 538, in CheckCallAndFilter
    rv, args, kwargs.get('cwd', None), None, None)
subprocess2.CalledProcessError: Command '/usr/bin/python tools/make_version_header.py --header include/cef_version.h --cef_version VERSION --chrome_version ../chrome/VERSION --cpp_header_dir include' returned non-zero exit status 1 in /home/nomachine/code/chromium_git/chromium/src/cef


Then I tried sudo ./cef_create_projects.sh and I got this
Code: Select all
Error: could not find depot_tools in PATH.


What's the problem?
nXman
Techie
 
Posts: 27
Joined: Fri Mar 25, 2016 3:59 am

Re: depot_tools error

Postby Czarek » Wed Jul 13, 2016 8:09 am

Check permissions in /home/nomachine/code/ and fix them. Regarding sudo google "sudo export".
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 33 guests