https://github.com/cztomczak/cefpython/issues/337
here is my setup.py and script (test.py):
https://gist.github.com/phxvyper/550b2f99046a7646c6daac21da1d9027
the test.py is a stock example taken Hello World example from the cefpython3 module `examples` folder.
I get the following errors:
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
Traceback (most recent call last):
File "test/dist/Hello World.app/Contents/Resources/__boot__.py", line 129, in <module>
_run()
File "test/dist/Hello World.app/Contents/Resources/__boot__.py", line 113, in _run
exec(compile(source, path, 'exec'), globals(), globals())
File "test/dist/Hello World.app/Contents/Resources/test.py", line 4, in <module>
from cefpython3 import cefpython as cef
File "test/dist/Hello World.app/Contents/Resources/lib/python3.7/cefpython3/__init__.py", line 62, in <module>
from . import cefpython_py37 as cefpython
File "cefpython_py37.pyx", line 161, in init cefpython_py37
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 668, in _load_unlocked
File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible
File "test/dist/Hello World.app/Contents/Resources/__boot__.py", line 37, in load_module
os.path.join(pkg_dir, fullname), ('', '', imp.PKG_DIRECTORY))
File "imp.pyc", line 245, in load_module
File "imp.pyc", line 217, in load_package
File "<frozen importlib._bootstrap>", line 695, in _load
AttributeError: 'NoneType' object has no attribute 'name'
this is with a stock installation of python 3.7 and cefpython3, I couldn't find anything after a couple hours of googling - but maybe I just bad at doing that. Any idea whats going on?
when running through 2.7 I get a single error:
Trace/BPT trap: 5
and then it quits.
I upgraded python 2.7's to 0.17 as well, only to be greeted by the same error.
[hello_world.py] CEF Python 66.0
[hello_world.py] Chromium 66.0.3359.181
[hello_world.py] CEF 3.3359.1774.gd49d25f
[hello_world.py] Python 3.7.0 64bit
[0927/121820.278764:ERROR:icu_util.cc(114)] icudtl.dat not found in bundle
[0927/121820.279882:ERROR:icu_util.cc(133)] Invalid file descriptor to ICU data received.
Trace/BPT trap: 5
Ronald, the py2app dev, also managed to get to this point and couldn't figure out how to move forward. I've ensured that the entirety of the CEF Python whl package is present in `Contents/Resources/lib/python3.7/cefpython3` - including `icudtl.dat`. Can you shed some light on this error?
Trace/BPT trap: 5
The framework bundle for CEF seems to have all the dylibs that are in the whl package, so there must be another thing throwing the error? I'm not really sure where to begin debugging this.
here's the latest setup.py and test.py:
https://gist.github.com/phxvyper/26f03d4f547a8082eccbe477d7514f1f
[1003/004346.817441:ERROR:browser_gpu_channel_host_factory.cc(119)] Failed to launch GPU process.
DevTools listening on ws://127.0.0.1:63302/devtools/browser/b5faad95-ee59-4c38-8101-f92664003168
[1003/004347.337785:ERROR:service_manager_context.cc(258)] Attempting to run unsupported native service: /Users/Administrator/Documents/Projects/pakk/pakkager/test/dist/Hello World.app/Contents/Resources/lib/python3.7/cefpython3/Chromium Embedded Framework.framework/content_renderer.service
The updated test.py and setup.py:
https://gist.github.com/phxvyper/26f03d4f547a8082eccbe477d7514f1f
Running the script independently works fine with no errors. Am I missing something in my setup.py?