Repack modelu lost when runing cef_create_project.bat

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Repack modelu lost when runing cef_create_project.bat

Postby Pzjay » Tue Oct 18, 2011 3:01 am

As I can't upgrading chromium through svn directly, so I download the packed chromium manually from:
http://chromium-browser-source.commonda ... 102269.tgz
Then when I running chromium\src\cef\cef_create_projects.bat
I got errors like these below:

F:\cef\home\chrome-svn\tarball\chromium\src\cef>..\third_party\python_26\python.exe tools\gclient_hook.py

Patching build configuration and source files for CEF...
________ running 'F:\cef\home\chrome-svn\tarball\chromium\src\third_party\python_26\python.exe tools/patcher.py --patch-config patch/patch.cfg' in 'F:\cef\home\chrome-svn\tarball\chromium\src\cef'
Reading patch file F:/cef/home/chrome-svn/tarball/chromium/src/cef/patch/patches/tools_gyp.patch
WARNING:root:already patched ../tools/gyp/pylib/gyp/input.py
Reading patch file F:/cef/home/chrome-svn/tarball/chromium/src/cef/patch/patches/base.patch
WARNING:root:file is not patched - failed hunk: 1
WARNING:root:source file is different - ../base/message_loop.cc
WARNING:root:file is not patched - failed hunk: 1
WARNING:root:source file is different - ../base/message_loop.h
Reading patch file F:/cef/home/chrome-svn/tarball/chromium/src/cef/patch/patches/build.patch
WARNING:root:already patched ../build/common.gypi
WARNING:root:already patched ../build/mac/strip_save_dsym

Generating CEF project files...

________ running 'F:\cef\home\chrome-svn\tarball\chromium\src\third_party\python_26\python.exe tools/gyp_cef cef.gyp -I cef.gypi' in 'F:\cef\home\chrome-svn\tarball\chromium\src\cef'
Enabled Psyco JIT.
Updating projects from gyp files...
Traceback (most recent call last):
File "tools/gyp_cef", line 155, in <module>
sys.exit(gyp.main(args))
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\__init__.py", line 463, in main
options.circular_check)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\__init__.py", line 101, in Load
depth, generator_input_info, check, circular_check)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 2257, in Load
depth, check)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 389, in LoadTargetBuildFile
build_file_path)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 1013, in ProcessVariablesAndConditionsInDict
build_file)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 1028, in ProcessVariablesAndConditionsInList
ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 987, in ProcessVariablesAndConditionsInDict
ProcessConditionsInDict(the_dict, is_late, variables, build_file)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 864, in ProcessConditionsInDict
variables, build_file)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 1013, in ProcessVariablesAndConditionsInDict
build_file)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 1028, in ProcessVariablesAndConditionsInList
ProcessVariablesAndConditionsInDict(item, is_late, variables, build_file)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 1013, in ProcessVariablesAndConditionsInDict
build_file)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 1032, in ProcessVariablesAndConditionsInList
expanded = ExpandVariables(item, is_late, variables, build_file)
File "F:\cef\home\chrome-svn\tarball\chromium\src\tools\gyp\pylib\gyp\input.py", line 675, in ExpandVariables
py_module = __import__(parsed_contents[0])
File "F:\cef\home\chrome-svn\tarball\chromium\src\chrome\tools\build\repack_locales.py", line 19, in <module>
import repack
ImportError: No module named repack while trying to load cef.gyp
Error: F:\cef\home\chrome-svn\tarball\chromium\src\third_party\python_26\python.exe tools/gyp_cef cef.gyp -I cef.gypi in F:\cef\home\chrome-svn\tarball\chromium\src\cef returned 1


Does anyone know what happened? Has repack.py been deleted or merged into other modules ? Any reply is appreciate~:)
Pzjay
Techie
 
Posts: 10
Joined: Sun Aug 07, 2011 9:19 pm

Re: Repack modelu lost when runing cef_create_project.bat

Postby Pzjay » Tue Oct 18, 2011 6:55 am

I do the upgrading from the scratch, and that error not occur again, but when I run cef_create_projects.bat after I updated my cef project to r306, I got errors like these:

D:\CEF\chrome\src\cef>call cef_create_projects.bat


File libcef_dll\version.h is already up to date.

Patching build configuration and source files for CEF...

________ running 'D:\CEF\chrome\src\third_party\python_26\python.exe tools/patcher.py --patch-config patch/patch.cfg' in 'D:\CEF\chrome\src\cef'
Reading patch file D:/CEF/chrome/src/cef/patch/patches/tools_gyp.patch
WARNING:root:already patched ../tools/gyp/pylib/gyp/input.py
Reading patch file D:/CEF/chrome/src/cef/patch/patches/base.patch
WARNING:root:already patched ../base/message_loop.cc
WARNING:root:already patched ../base/message_loop.h
Reading patch file D:/CEF/chrome/src/cef/patch/patches/build.patch
WARNING:root:already patched ../build/common.gypi
WARNING:root:already patched ../build/mac/strip_save_dsym

Generating CEF project files...

________ running 'D:\CEF\chrome\src\third_party\python_26\python.exe tools/gyp_cef cef.gyp -I cef.gypi' in 'D:\CEF\chrome\src\cef'
Enabled Psyco JIT.
Updating projects from gyp files...
Traceback (most recent call last):
File "tools/gyp_cef", line 155, in <module>
sys.exit(gyp.main(args))
File "D:\CEF\chrome\src\tools\gyp\pylib\gyp\__init__.py", line 463, in main
options.circular_check)
File "D:\CEF\chrome\src\tools\gyp\pylib\gyp\__init__.py", line 101, in Load
depth, generator_input_info, check, circular_check)
File "D:\CEF\chrome\src\tools\gyp\pylib\gyp\input.py", line 2299, in Load
[dependency_nodes, flat_list] = BuildDependencyList(targets)
File "D:\CEF\chrome\src\tools\gyp\pylib\gyp\input.py", line 1407, in BuildDependencyList
dependency_node = dependency_nodes[dependency]
KeyError: '..\\cef\\cef.gyp:patcher#target while trying to load target ..\\build\\win\\system.gyp:cygwin#target'
Error: D:\CEF\chrome\src\third_party\python_26\python.exe tools/gyp_cef cef.gyp -I cef.gypi in D:\CEF\chrome\src\cef returned 1



I think that maybe there are some compatibility problems in the python files. But not sure, anyone can help?

Best regards
Pzjay
Techie
 
Posts: 10
Joined: Sun Aug 07, 2011 9:19 pm

Re: Repack modelu lost when runing cef_create_project.bat

Postby Pzjay » Wed Oct 19, 2011 7:22 am

Hi, everybody, I have solved the problem. I think it was caused by the mismatch between CEF version and the chromium version.
After I revert my CEF from r306 to r292 according to CHROMIUM_BUILD_COMPATIBILITY.txt, it does work. All of the problems were gone.
PS: My chromium version is 102269
Pzjay
Techie
 
Posts: 10
Joined: Sun Aug 07, 2011 9:19 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 143 guests