You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My apology for bothering you guys, but I faced this problem, would you mind guiding me a direction?
When I ran python pyinstaller.py, the result in ./build/pyinstaller/warnpyinstaller.txt
missing module named 'org.python' - imported by pickle
missing module named _subprocess - imported by subprocess
missing module named msvcrt - imported by subprocess
missing module named riscosenviron - imported by os
missing module named riscospath - imported by os
missing module named riscos - imported by os
missing module named ce - imported by os
missing module named _emx_link - imported by os
missing module named os2 - imported by os
missing module named nt - imported by os, ntpath
missing module named org - imported by copy
missing module named _sha512 - imported by hashlib
missing module named _sha256 - imported by hashlib
missing module named _md5 - imported by hashlib
missing module named _sha - imported by hashlib
Just a bit of advice to anyone trying to do this, in your setup.py, add a cmdclass argument to setup() and call it whatever, I used "pack", and use the following code in it (research how to use cmdclass):
This removes the need for the entire pyinstaller.spec and hook-cefpython3.py files. Works like a charm for me, and is actually a smaller overall file then the one with the .spec (which never worked for me by the way)
Now all I need to do is, python setup.py pack and it will build it into /dist
Just a bit of advice to anyone trying to do this, in your setup.py, add a cmdclass argument to setup() and call it whatever, I used "pack", and use the following code in it (research how to use cmdclass):
rlaPHOENiX, did you ever get this working with macOS ? I'm about to give up on cefpython as I just can't get it to bundle into a single binary in macOS with any of the tools out there. I've wasted a week and have only got it working with Windows.
error: icudtl.dat not found in bundle
Setting the framework_dir_path doesn't help, nor does including --add-data=cef-framework-path:cef.framework ,etc I feel like I've tried every combination under the sun here, trying to get the file to be included and referenced appropriately. File sizes are also pretty large; over 300mb, yet no luck. The existing example in the cepython examples folder also fails, nor does it bundle into a file.
Tried other apps, like nuitka, and also ran endless issues that seem unresolvable.
Again, only on macOS. Getting this all to work on Windows I had working on the first night.
Just a bit of advice to anyone trying to do this, in your setup.py, add a cmdclass argument to setup() and call it whatever, I used "pack", and use the following code in it (research how to use cmdclass):
rlaPHOENiX, did you ever get this working with macOS ? I'm about to give up on cefpython as I just can't get it to bundle into a single binary in macOS with any of the tools out there. I've wasted a week and have only got it working with Windows.
error: icudtl.dat not found in bundle
Setting the framework_dir_path doesn't help, nor does including --add-data=cef-framework-path:cef.framework ,etc I feel like I've tried every combination under the sun here, trying to get the file to be included and referenced appropriately. File sizes are also pretty large; over 300mb, yet no luck. The existing example in the cepython examples folder also fails, nor does it bundle into a file.
Tried other apps, like nuitka, and also ran endless issues that seem unresolvable.
Again, only on macOS. Getting this all to work on Windows I had working on the first night.
I don't have any device that uses Mac so I havent gotten any chance of checking it out for that, but your --add-data seems wrong. If you look at my example just above you should see that what I aim to do, is find the site-packages location of cefpython3, and then bundle it a folder of the same exact same of the package (cefpython3). A good idea also would be to try and do all of this with Python 3.7.x or edit the __init__.py in the site-packages and change elif sys.version_info[:2] == (3, 7): to elif sys.version_info[:2] in [(3, 7), (3, 8)]:, doing this supports Python 3.8 perfectly fine for me on Windows and Linux.
Perhaps the version check causes some kind of problem? Who knows.
Thank you for the reply. It's a time suck for sure. I've tried different
versions and it all gets to be somewhat of a mess after a while. I've
managed to get it working if I include the frameworks folder alongside the
exe, and point to it in the main.py code cef.init settings, tho the file
size in total is pretty huge and slow loading. Not sure I'm going to get it
better than this, so I'll probably need to abandon Python.
On Wed, Jul 15, 2020 at 12:29 PM PHOENiX ***@***.***> wrote:
Just a bit of advice to anyone trying to do this, in your setup.py, add a
cmdclass argument to setup() and call it whatever, I used "pack", and use
the following code in it (research how to use cmdclass):
rlaPHOENiX, did you ever get this working with macOS ? I'm about to give
up on cefpython as I just can't get it to bundle into a single binary in
macOS with any of the tools out there. I've wasted a week and have only got
it working with Windows.
error: icudtl.dat not found in bundle
Setting the framework_dir_path doesn't help, nor does including
--add-data=cef-framework-path:cef.framework ,etc I feel like I've tried
every combination under the sun here, trying to get the file to be included
and referenced appropriately. File sizes are also pretty large; over 300mb,
yet no luck. The existing example in the cepython examples folder also
fails, nor does it bundle into a file.
Tried other apps, like nuitka, and also ran endless issues that seem
unresolvable.
Again, only on macOS. Getting this all to work on Windows I had working on
the first night.
I don't have any device that uses Mac so I havent gotten any chance of
checking it out for that, but your --add-data seems wrong. If you look at
my example just above you should see that what I aim to do, is find the
site-packages location of cefpython3, and then bundle it a folder of the
same exact same of the package (cefpython3). A good idea also would be to
try and do all of this with Python 3.7.x or edit the __init__.py in the
site-packages and change elif sys.version_info[:2] == (3, 7): to elif
sys.version_info[:2] in [(3, 7), (3, 8)]:, doing this supports Python 3.8
perfectly fine for me on Windows and Linux.
Perhaps the version check causes some kind of problem? Who knows.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATU2UTDYXQDR2KGWRRI6ULR3XKN7ANCNFSM4BYEN5IA>
.
Thank you for the reply. It's a time suck for sure. I've tried different versions and it all gets to be somewhat of a mess after a while. I've managed to get it working if I include the frameworks folder alongside the exe, and point to it in the main.py code cef.init settings, tho the file size in total is pretty huge and slow loading. Not sure I'm going to get it better than this, so I'll probably need to abandon Python.
Yeah that indicates to me then, that it cant find cefpython3. You are doing the --add-data like I showed?
On Wed, Jul 15, 2020 at 12:37 PM PHOENiX ***@***.***> wrote:
Thank you for the reply. It's a time suck for sure. I've tried different
versions and it all gets to be somewhat of a mess after a while. I've
managed to get it working if I include the frameworks folder alongside the
exe, and point to it in the main.py code cef.init settings, tho the file
size in total is pretty huge and slow loading. Not sure I'm going to get it
better than this, so I'll probably need to abandon Python.
… <#m_4789905739074797900_>
__________________________ Steve Seguin
On Wed, Jul 15, 2020 at 12:29 PM PHOENiX *@*.***> wrote: Just a bit of
advice to anyone trying to do this, in your setup.py, add a cmdclass
argument to setup() and call it whatever, I used "pack", and use the
following code in it (research how to use cmdclass): rlaPHOENiX, did you
ever get this working with macOS ? I'm about to give up on cefpython as I
just can't get it to bundle into a single binary in macOS with any of the
tools out there. I've wasted a week and have only got it working with
Windows. error: icudtl.dat not found in bundle Setting the
framework_dir_path doesn't help, nor does including
--add-data=cef-framework-path:cef.framework ,etc I feel like I've tried
every combination under the sun here, trying to get the file to be included
and referenced appropriately. File sizes are also pretty large; over 300mb,
yet no luck. The existing example in the cepython examples folder also
fails, nor does it bundle into a file. Tried other apps, like nuitka, and
also ran endless issues that seem unresolvable. Again, only on macOS.
Getting this all to work on Windows I had working on the first night. I
don't have any device that uses Mac so I havent gotten any chance of
checking it out for that, but your --add-data seems wrong. If you look at
my example just above you should see that what I aim to do, is find the
site-packages location of cefpython3, and then bundle it a folder of the
same exact same of the package (cefpython3). A good idea also would be to
try and do all of this with Python 3.7.x or edit the *init*.py in the
site-packages and change elif sys.version_info[:2] == (3, 7): to elif
sys.version_info[:2] in [(3, 7), (3, 8)]:, doing this supports Python 3.8
perfectly fine for me on Windows and Linux. Perhaps the version check
causes some kind of problem? Who knows. — You are receiving this because
you commented. Reply to this email directly, view it on GitHub <#135
(comment)
<#135 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AATU2UTDYXQDR2KGWRRI6ULR3XKN7ANCNFSM4BYEN5IA
.
Yeah that indicates to me then, that it cant find cefpython3. You are
doing the --add-data like I showed?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#135 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATU2UR3NDFFEI2SM6AYMOTR3XLMXANCNFSM4BYEN5IA>
.
I just realised with my above code example I actually used --add-data "bla bla:." not "bla bla:cefpython3", so the . makes it put it next to init.py flattening the files, which is probably why it works for me.
Activity
goldalworming commentedon Aug 25, 2016
got this problem today
FATAL : content_main_runner.cc(720)] Check failed: base::i18n::InitializeICU()
cztomczak commentedon Aug 26, 2016
@goldalworming Looks like some of the binary files are missing
nkiiiiid commentedon Mar 9, 2017
@goldalworming i got the same problem, did you solve it?help
cztomczak commentedon Mar 9, 2017
All binary data files need to be included by pyinstaller when creating executable. There are .exe .dll .dat .bin .pak and other binary data in the cefpython package that need to be included. Take a look at an example configuration using py2exe: http://stackoverflow.com/questions/18630034/compiling-exe-with-py2exe-and-including-cefpython
Please ask questions and report problems on the Forum.
4 remaining items
Update PyInstaller example (#135)
cztomczak commentedon Aug 19, 2019
Pyinstaller example supports all platforms now.
nick4ever commentedon Dec 25, 2019
My apology for bothering you guys, but I faced this problem, would you mind guiding me a direction?
When I ran python pyinstaller.py, the result in ./build/pyinstaller/warnpyinstaller.txt
missing module named 'org.python' - imported by pickle
missing module named _subprocess - imported by subprocess
missing module named msvcrt - imported by subprocess
missing module named riscosenviron - imported by os
missing module named riscospath - imported by os
missing module named riscos - imported by os
missing module named ce - imported by os
missing module named _emx_link - imported by os
missing module named os2 - imported by os
missing module named nt - imported by os, ntpath
missing module named org - imported by copy
missing module named _sha512 - imported by hashlib
missing module named _sha256 - imported by hashlib
missing module named _md5 - imported by hashlib
missing module named _sha - imported by hashlib
Please help!!!
cztomczak commentedon Dec 25, 2019
Install pyinstaller 3.2.1. See instructions: https://github.com/cztomczak/cefpython/blob/master/examples/pyinstaller/README-pyinstaller.md
rlaphoenix commentedon Jun 14, 2020
Just a bit of advice to anyone trying to do this, in your setup.py, add a
cmdclassargument tosetup()and call it whatever, I used "pack", and use the following code in it (research how to usecmdclass):This removes the need for the entire pyinstaller.spec and hook-cefpython3.py files. Works like a charm for me, and is actually a smaller overall file then the one with the .spec (which never worked for me by the way)
Now all I need to do is,
python setup.py packand it will build it into /diststeveseguin commentedon Jul 15, 2020
rlaPHOENiX, did you ever get this working with macOS ? I'm about to give up on cefpython as I just can't get it to bundle into a single binary in macOS with any of the tools out there. I've wasted a week and have only got it working with Windows.
error: icudtl.dat not found in bundleSetting the framework_dir_path doesn't help, nor does including --add-data=cef-framework-path:cef.framework ,etc I feel like I've tried every combination under the sun here, trying to get the file to be included and referenced appropriately. File sizes are also pretty large; over 300mb, yet no luck. The existing example in the cepython examples folder also fails, nor does it bundle into a file.
Tried other apps, like nuitka, and also ran endless issues that seem unresolvable.
Again, only on macOS. Getting this all to work on Windows I had working on the first night.
rlaphoenix commentedon Jul 15, 2020
I don't have any device that uses Mac so I havent gotten any chance of checking it out for that, but your --add-data seems wrong. If you look at my example just above you should see that what I aim to do, is find the site-packages location of cefpython3, and then bundle it a folder of the same exact same of the package (cefpython3). A good idea also would be to try and do all of this with Python 3.7.x or edit the
__init__.pyin the site-packages and changeelif sys.version_info[:2] == (3, 7):toelif sys.version_info[:2] in [(3, 7), (3, 8)]:, doing this supports Python 3.8 perfectly fine for me on Windows and Linux.Perhaps the version check causes some kind of problem? Who knows.
steveseguin commentedon Jul 15, 2020
rlaphoenix commentedon Jul 15, 2020
Yeah that indicates to me then, that it cant find
cefpython3. You are doing the --add-data like I showed?steveseguin commentedon Jul 15, 2020
rlaphoenix commentedon Jul 15, 2020
The following is my cmdclass Pack Command for setup.py, it can be used in setup() by putting the following inside it:
Now you can do
python setup.py packinit.py thats imported by many of my cmdclass's like pack.py
pack.py:
rlaphoenix commentedon Jul 15, 2020
I just realised with my above code example I actually used --add-data "bla bla:." not "bla bla:cefpython3", so the . makes it put it next to init.py flattening the files, which is probably why it works for me.