Closed romeuqf closed 1 year ago
E ai blz? Valeu!
What version of cx_Freeze and python are you using? Have you tested using a cx_Freeze sample?
Can you test with the latest release?
Exact same problem here. It was working fine before upgrading. It does work on my computer, though. The problem occurs in other computers, that supposedly have the same configuration as mine.
Windows 10 Python 3.10.9 cx-Freeze 6.14.4
Freezing command: cxfreeze my_script.py --target-dir dist --include-msvcr --zip-include-packages * --zip-exclude-packages selenium,mypackage --include-files readme.txt,templates,my_folder,my_folder2
@ubalklen Are you using conda-forge or pip?
I'm using both. Usually I install everything using pip, but for some packages I use conda. For cx_Freeze I used pip.
I suppose that Python, cx_Freeze are conda... Can you put a conda list?
cx_Freeze came from pip, I've updated my comment. Sorry for missing that.
> conda list
# packages in environment at C:\Users\user\AppData\Local\miniconda3\envs\project:
#
# Name Version Build Channel
appdirs 1.4.4 pyhd3eb1b0_0
async-generator 1.10 pypi_0 pypi
attrs 22.2.0 pypi_0 pypi
babel 2.11.0 pypi_0 pypi
beautifulsoup4 4.11.2 pypi_0 pypi
black 19.3b0 py_0
bzip2 1.0.8 he774522_0
ca-certificates 2023.01.10 haa95532_0
certifi 2022.12.7 py39haa95532_0
cffi 1.15.1 pypi_0 pypi
charset-normalizer 3.0.1 pypi_0 pypi
click 8.1.3 pypi_0 pypi
cryptography 39.0.1 pypi_0 pypi
cssselect 1.2.0 pypi_0 pypi
cx-freeze 6.14.4 pypi_0 pypi
cx-logging 3.1.0 pypi_0 pypi
docopt 0.6.2 pypi_0 pypi
docx 0.2.4 pypi_0 pypi
docx2pdf 0.1.8 pypi_0 pypi
docxcompose 1.4.0 pypi_0 pypi
docxtpl 0.16.5 pypi_0 pypi
et-xmlfile 1.1.0 pypi_0 pypi
exceptiongroup 1.1.0 pypi_0 pypi
googlemaps 4.10.0 pypi_0 pypi
h11 0.14.0 pypi_0 pypi
idna 3.4 pypi_0 pypi
importlib-metadata 6.0.0 pypi_0 pypi
jinja2 3.1.2 pypi_0 pypi
libffi 3.4.2 hd77b12b_6
lief 0.12.3 pypi_0 pypi
lxml 4.9.2 pypi_0 pypi
markupsafe 2.1.2 pypi_0 pypi
natsort 8.2.0 pypi_0 pypi
numpy 1.24.2 pypi_0 pypi
openpyxl 3.1.1 pypi_0 pypi
openssl 1.1.1t h2bbff1b_0
outcome 1.2.0 pypi_0 pypi
packaging 23.0 pypi_0 pypi
pandas 1.5.3 pypi_0 pypi
parsel 1.7.0 pypi_0 pypi
pepe 2023.2.22 pypi_0 pypi
pillow 9.4.0 pypi_0 pypi
pip 22.3.1 py39haa95532_0
pip-system-certs 4.0 pypi_0 pypi
pipreqs 0.4.11 pypi_0 pypi
pycparser 2.21 pypi_0 pypi
pymupdf 1.21.1 pypi_0 pypi
pypdf2 3.0.1 pypi_0 pypi
pysimplegui 4.60.4 pypi_0 pypi
pysocks 1.7.1 pypi_0 pypi
pyspnego 0.8.0 pypi_0 pypi
python 3.9.0 h6244533_2
python-dateutil 2.8.2 pypi_0 pypi
python-docx 0.8.11 pypi_0 pypi
pytz 2022.7.1 pypi_0 pypi
pywin32 305 pypi_0 pypi
pyyaml 6.0 pypi_0 pypi
requests 2.28.2 pypi_0 pypi
requests-kerberos 0.14.0 pypi_0 pypi
requests-ntlm 1.2.0 pypi_0 pypi
selectorlib 0.16.0 pypi_0 pypi
selenium 4.8.2 pypi_0 pypi
setuptools 66.1.1 pypi_0 pypi
six 1.16.0 pypi_0 pypi
sniffio 1.3.0 pypi_0 pypi
sortedcontainers 2.4.0 pypi_0 pypi
soupsieve 2.4 pypi_0 pypi
sqlite 3.40.1 h2bbff1b_0
tk 8.6.12 h2bbff1b_0
toml 0.10.2 pyhd3eb1b0_0
tqdm 4.64.1 pypi_0 pypi
trio 0.22.0 pypi_0 pypi
trio-websocket 0.9.2 pypi_0 pypi
tzdata 2022g h04d1e81_0
unidecode 1.3.6 pypi_0 pypi
urllib3 1.26.14 pypi_0 pypi
vc 14.2 h21ff451_1
vs2015_runtime 14.27.29016 h5e58377_2
w3lib 2.1.1 pypi_0 pypi
wheel 0.38.4 py39haa95532_0
wincertstore 0.2 py39haa95532_2
wrapt 1.14.1 pypi_0 pypi
wsproto 1.2.0 pypi_0 pypi
xz 5.2.10 h8cc25b3_1
yarg 0.1.9 pypi_0 pypi
zipp 3.14.0 pypi_0 pypi
zlib 1.2.13 h8cc25b3_0
Not sure if related, but after trying other versions to see which one works, I'm now unable to freeze using the newer versions (ModuleNotFoundError: No module named 'lief'
). Maybe I broke my environment in the process.
Python now says 3.9 because I also downgraded it in the midst of my desperate attempt to make things work again.
Try to uninstall some packages (or create a new env) pip uninstall -y cx-freeze setuptools importlib-metadata packaging cx-logging lief and then install cx_Freeze conda install cx_freeze and build
Remove lief from pip too
I guess you meant conda install -c conda-forge cx_freeze
, right?
I created a new environment (Python 3.10), installed cx_Freeze from conda-forge and some other dependencies my project has from pip.
It's freezing fine now, and the exe runs on my computer. But on another computer it still complains about the missing zlib.dll.
I guess you meant
conda install -c conda-forge cx_freeze
, right?
Yes.
When using conda, try to not install from pip. If package exist in conda, use conda, because for some packages, this is checked to copy some DLLs... Later I'll test this behavior with a simple sample. Can you test with it?
I adapted the script to resemble mine:
cxfreeze hello.py --target-dir dist --include-msvcr --zip-include-packages * --zip-exclude-packages None --include-files setup.py
hello.exe works on my computer, fails on the other (same missing ziplib.dll error).
Put here:
Can you test with --zip-exclude-packages zlib
hello.exe works on my computer, fails on the other (same missing ziplib.dll error).
zlib.dll or ziplib.dll?
Sorry, i meant zlib.dll.
> conda list
# packages in environment at C:\Users\user\AppData\Local\miniconda3\envs\newenv:
#
# Name Version Build Channel
async-generator 1.10 pypi_0 pypi
attrs 22.2.0 pypi_0 pypi
babel 2.11.0 pypi_0 pypi
beautifulsoup4 4.11.2 pypi_0 pypi
bzip2 1.0.8 he774522_0
ca-certificates 2022.12.7 h5b45459_0 conda-forge
certifi 2022.12.7 pyhd8ed1ab_0 conda-forge
cffi 1.15.1 pypi_0 pypi
charset-normalizer 3.0.1 pypi_0 pypi
click 8.1.3 pypi_0 pypi
colorama 0.4.6 pypi_0 pypi
cryptography 39.0.1 pypi_0 pypi
cssselect 1.2.0 pypi_0 pypi
cx_freeze 6.14.4 py310h8d17308_0 conda-forge
cx_logging 3.1.0 py310h8d17308_0 conda-forge
docx 0.2.4 pypi_0 pypi
docx2pdf 0.1.8 pypi_0 pypi
docxcompose 1.4.0 pypi_0 pypi
docxtpl 0.16.5 pypi_0 pypi
et-xmlfile 1.1.0 pypi_0 pypi
exceptiongroup 1.1.0 pypi_0 pypi
googlemaps 4.10.0 pypi_0 pypi
h11 0.14.0 pypi_0 pypi
idna 3.4 pypi_0 pypi
jinja2 3.1.2 pypi_0 pypi
libffi 3.4.2 hd77b12b_6
liblief 0.12.3 h63175ca_0 conda-forge
lxml 4.9.2 pypi_0 pypi
markupsafe 2.1.2 pypi_0 pypi
natsort 8.2.0 pypi_0 pypi
openpyxl 3.1.1 pypi_0 pypi
openssl 1.1.1t hcfcfb64_0 conda-forge
outcome 1.2.0 pypi_0 pypi
packaging 23.0 pypi_0 pypi
parsel 1.7.0 pypi_0 pypi
pepe 2023.2.22 pypi_0 pypi
pillow 9.4.0 pypi_0 pypi
pip 22.3.1 py310haa95532_0
pip-system-certs 4.0 pypi_0 pypi
py-lief 0.12.3 py310h00ffb61_0 conda-forge
pycparser 2.21 pypi_0 pypi
pymupdf 1.21.1 pypi_0 pypi
pypdf 3.4.1 pypi_0 pypi
pysimplegui 4.60.4 pypi_0 pypi
pysocks 1.7.1 pypi_0 pypi
pyspnego 0.8.0 pypi_0 pypi
python 3.10.9 h966fe2a_0
python-docx 0.8.11 pypi_0 pypi
python_abi 3.10 2_cp310 conda-forge
pytz 2022.7.1 pypi_0 pypi
pywin32 305 pypi_0 pypi
pyyaml 6.0 pypi_0 pypi
requests 2.28.2 pypi_0 pypi
requests-kerberos 0.14.0 pypi_0 pypi
requests-ntlm 1.2.0 pypi_0 pypi
selectorlib 0.16.0 pypi_0 pypi
selenium 4.8.2 pypi_0 pypi
setuptools 65.6.3 py310haa95532_0
six 1.16.0 pypi_0 pypi
sniffio 1.3.0 pypi_0 pypi
sortedcontainers 2.4.0 pypi_0 pypi
soupsieve 2.4 pypi_0 pypi
sqlite 3.40.1 h2bbff1b_0
tk 8.6.12 h2bbff1b_0
tqdm 4.64.1 pypi_0 pypi
trio 0.22.0 pypi_0 pypi
trio-websocket 0.9.2 pypi_0 pypi
tzdata 2022g h04d1e81_0
ucrt 10.0.22621.0 h57928b3_0 conda-forge
unidecode 1.3.6 pypi_0 pypi
urllib3 1.26.14 pypi_0 pypi
vc 14.2 h21ff451_1
vs2015_runtime 14.34.31931 h4c5c07a_10 conda-forge
w3lib 2.1.1 pypi_0 pypi
wheel 0.38.4 py310haa95532_0
wincertstore 0.2 py310haa95532_2
wrapt 1.14.1 pypi_0 pypi
wsproto 1.2.0 pypi_0 pypi
xz 5.2.10 h8
cc25b3_1
zlib 1.2.13 h8cc25b3_0
Build dir: dist.zip
I tried cxfreeze hello.py --target-dir dist --include-msvcr --zip-include-packages * --zip-exclude-packages zlib --include-files setup.py
, same result.
If you move the zlib.dll from lib to dist, it works! Later I'll check the changes in conda to ensure that zlib.dll should be along python310.dll and I'll make a patch. Test with your project if this is true. Thanks!
I tested in wine, the messages are more explictly:
010c:err:module:import_dll Library zlib.dll (which is needed by L"D:\\testes\\1694\\dist\\python310.dll") not found
010c:err:module:import_dll Library python310.dll (which is needed by L"D:\\testes\\1694\\dist\\hello.exe") not found
010c:err:module:LdrInitializeThunk Importing dlls for L"D:\\testes\\1694\\dist\\hello.exe" failed, status c0000135
It works on both computers with your hack. Thank you for all the effort you put into this!
Out of curiosity, do you have any clue why would it work on some computers, but not in others?
Out of curiosity, do you have any clue why would it work on some computers, but not in others?
Because you are testing inside the conda environment or because zlib.dll is on the PATH, for instance c:\windows\system32\zlib.dll exist.
You can test the patch in the latest development build:
pip install --upgrade --pre --extra-index-url https://marcelotduarte.github.io/packages/ cx_Freeze
For conda-forge the command is:
conda install -y --no-channel-priority -S -c https://marcelotduarte.github.io/packages/conda cx_Freeze
@marcelotduarte is the conda install
command correct? After running that, I'm still seeing v6.14.4 there.
conda uninstall cx_freeze
conda install -y --no-channel-priority -S -c https://marcelotduarte.github.io/packages/conda cx_Freeze
Apparently, this new version is setup not to be compatible with Python 3.10, was that your intention?
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- cx_freeze -> python[version='>=3.7,<3.8.0a0']
Your python: python=3.10
There are no restrictions. I tested in linux w/ python 3.11 earlier before the previous answer to confirm the command. I cannot test in windows now, but you can download the conda egg directly. Go to page: https://marcelotduarte.github.io/packages/conda
Sorry, but I'm unable to test the patch. Even creating a new environment, installing from the bz2 file sends me straight to a dependency hell:
> conda create -n brand_new_env python
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: C:\Users\user\AppData\Local\miniconda3\envs\brand_new_env
added / updated specs:
- python
The following NEW packages will be INSTALLED:
bzip2 pkgs/main/win-64::bzip2-1.0.8-he774522_0
ca-certificates pkgs/main/win-64::ca-certificates-2023.01.10-haa95532_0
certifi pkgs/main/win-64::certifi-2022.12.7-py310haa95532_0
libffi pkgs/main/win-64::libffi-3.4.2-hd77b12b_6
openssl pkgs/main/win-64::openssl-1.1.1t-h2bbff1b_0
pip pkgs/main/win-64::pip-22.3.1-py310haa95532_0
python pkgs/main/win-64::python-3.10.9-h966fe2a_0
setuptools pkgs/main/win-64::setuptools-65.6.3-py310haa95532_0
sqlite pkgs/main/win-64::sqlite-3.40.1-h2bbff1b_0
tk pkgs/main/win-64::tk-8.6.12-h2bbff1b_0
tzdata pkgs/main/noarch::tzdata-2022g-h04d1e81_0
vc pkgs/main/win-64::vc-14.2-h21ff451_1
vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2
wheel pkgs/main/win-64::wheel-0.38.4-py310haa95532_0
wincertstore pkgs/main/win-64::wincertstore-0.2-py310haa95532_2
xz pkgs/main/win-64::xz-5.2.10-h8cc25b3_1
zlib pkgs/main/win-64::zlib-1.2.13-h8cc25b3_0
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#
# To deactivate an active environment, use
#
# $ conda deactivate
> conda activate brand_new_env
(brand_new_env) > conda install C:\Users\user\Downloads\cx_freeze-6.15.0.dev1-py310hf4a77e7_0.tar.bz2
Downloading and Extracting Packages
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(brand_new_env) > cxfreeze my_script.py --target-dir dist --include-msvcr --zip-include-packages * --zip-exclude-packages selenium,mypackage --include-files readme.txt,templates,my_folder,my_folder2
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\miniconda3\envs\brand_new_env\Scripts\cxfreeze-script.py", line 6, in <module>
from cx_Freeze.cli import main
File "C:\Users\user\AppData\Local\miniconda3\envs\brand_new_env\lib\site-packages\cx_Freeze\__init__.py", line 11, in <module>
from .command.build_exe import BuildEXE as build_exe
File "C:\Users\user\AppData\Local\miniconda3\envs\brand_new_env\lib\site-packages\cx_Freeze\command\build_exe.py", line 14, in <module>
from ..freezer import Freezer
File "C:\Users\user\AppData\Local\miniconda3\envs\brand_new_env\lib\site-packages\cx_Freeze\freezer.py", line 33, in <module>
from .parser import ELFParser, Parser, PEParser
File "C:\Users\user\AppData\Local\miniconda3\envs\brand_new_env\lib\site-packages\cx_Freeze\parser.py", line 25, in <module>
import lief
ModuleNotFoundError: No module named 'lief'
(brand_new_env) > conda install -c anaconda py-lief
Collecting package metadata (current_repodata.json): done
Solving environment: \
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- <unknown>/win-64::cx_freeze==6.15.0.dev1=py310hf4a77e7_0
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: /
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
- <unknown>/win-64::cx_freeze==6.15.0.dev1=py310hf4a77e7_0
failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:
Specifications:
- cx_freeze -> python[version='>=3.11,<3.12.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0']
- py-lief -> python[version='>=3.10,<3.11.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0|>=3.9,<3.10.0a0|>=3.6,<3.7.0a0|>=3.8,<3.9.0a0',build=*cpython]
- wheel -> python[version='>=3.11,<3.12.0a0']
Your python: python=3.10
If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.
The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
Package xz conflicts for:
setuptools -> python[version='>=3.10,<3.11.0a0'] -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0|>=5.2.8,<6.0a0']
wheel -> python -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0|>=5.2.8,<6.0a0']
pip -> python[version='>=3.10,<3.11.0a0'] -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0|>=5.2.8,<6.0a0']
python=3.10 -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0|>=5.2.8,<6.0a0']
cx_freeze -> python[version='>=3.10,<3.11.0a0'] -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0|>=5.2.8,<6.0a0']
py-lief -> python[version='>=3.10,<3.11.0a0'] -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0|>=5.2.8,<6.0a0']
wincertstore -> python[version='>=3.10,<3.11.0a0'] -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0|>=5.2.8,<6.0a0']
certifi -> python[version='>=3.10,<3.11.0a0'] -> xz[version='>=5.2.5,<6.0a0|>=5.2.6,<6.0a0|>=5.2.8,<6.0a0']
Package vs2015_runtime conflicts for:
libffi -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.15.26706|>=14.27.29016|>=14.16.27012']
libffi -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
tk -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
cx_freeze -> vs2015_runtime[version='>=14.16.27033']
zlib -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
xz -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
python=3.10 -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.15.26706|>=14.27.29016|>=14.16.27012']
openssl -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
tk -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.16.27012']
xz -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.16.27012']
py-lief -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
sqlite -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
zlib -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.16.27012']
bzip2 -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.16.27012']
py-lief -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.15.26706|>=14.27.29016|>=14.16.27012']
cx_freeze -> py-lief[version='>=0.12.0'] -> vs2015_runtime[version='>=14.15.26706|>=14.16.27012,<15.0a0|>=14.27.29016|>=14.16.27012']
python=3.10 -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
wheel -> python -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
certifi -> python[version='>=3.7,<3.8.0a0'] -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
setuptools -> python[version='>=3.7,<3.8.0a0'] -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
sqlite -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.16.27012']
pip -> python[version='>=3.7,<3.8.0a0'] -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
wincertstore -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.15.26706|>=14.27.29016|>=14.16.27012']
openssl -> vc[version='>=14.1,<15.0a0'] -> vs2015_runtime[version='>=14.0.25123,<15.0a0|>=14.0.25420|>=14.15.26706|>=14.27.29016|>=14.16.27012']
wincertstore -> vs2015_runtime[version='>=14.16.27012,<15.0a0']
Package vs2008_runtime conflicts for:
wheel -> python -> vs2008_runtime
xz -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
sqlite -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
setuptools -> python[version='>=2.7,<2.8.0a0'] -> vs2008_runtime
zlib -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
bzip2 -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
tk -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
pip -> python[version='>=2.7,<2.8.0a0'] -> vs2008_runtime
vc -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
openssl -> vc=9 -> vs2008_runtime[version='>=9.0.30729.1,<10.0a0']
wincertstore -> python[version='>=2.7,<2.8.0a0'] -> vs2008_runtime
certifi -> python -> vs2008_runtime
Package bzip2 conflicts for:
wincertstore -> python[version='>=3.10,<3.11.0a0'] -> bzip2[version='>=1.0.8,<2.0a0']
setuptools -> python[version='>=3.10,<3.11.0a0'] -> bzip2[version='>=1.0.8,<2.0a0']
certifi -> python[version='>=3.10,<3.11.0a0'] -> bzip2[version='>=1.0.8,<2.0a0']
pip -> python[version='>=3.10,<3.11.0a0'] -> bzip2[version='>=1.0.8,<2.0a0']
py-lief -> python[version='>=3.10,<3.11.0a0'] -> bzip2[version='>=1.0.8,<2.0a0']
python=3.10 -> bzip2[version='>=1.0.8,<2.0a0']
wheel -> python -> bzip2[version='>=1.0.8,<2.0a0']
cx_freeze -> python[version='>=3.10,<3.11.0a0'] -> bzip2[version='>=1.0.8,<2.0a0']
Package vc conflicts for:
wincertstore -> vc[version='>=14.1,<15.0a0']
setuptools -> python[version='>=3.7,<3.8.0a0'] -> vc[version='14.*|>=14.1,<15.0a0|9.*']
sqlite -> vc[version='14.*|9.*|>=14.1,<15.0a0']
py-lief -> python[version='>=3.7,<3.8.0a0'] -> vc=14
pip -> python[version='>=3.7,<3.8.0a0'] -> vc[version='14.*|>=14.1,<15.0a0|9.*']
python=3.10 -> vc[version='>=14.1,<15.0a0']
openssl -> vc[version='14.*|9.*|>=14.1,<15.0a0']
xz -> vc[version='14.*|9.*|>=14.1,<15.0a0']
wincertstore -> python[version='>=3.7,<3.8.0a0'] -> vc[version='14.*|9.*']
certifi -> python[version='>=3.7,<3.8.0a0'] -> vc[version='14.*|>=14.1,<15.0a0|9.*']
cx_freeze -> vc[version='>=14.1,<15']
libffi -> vc[version='>=14.1,<15.0a0']
zlib -> vc[version='14.*|9.*|>=14.1,<15.0a0']
wheel -> python -> vc[version='14.*|>=14.1,<15.0a0|9.*']
cx_freeze -> py-lief[version='>=0.12.0'] -> vc[version='>=14.1,<15.0a0']
bzip2 -> vc[version='14.*|9.*|>=14.1,<15.0a0']
python=3.10 -> bzip2[version='>=1.0.8,<2.0a0'] -> vc[version='14.*|9.*']
py-lief -> vc[version='>=14.1,<15.0a0']
tk -> vc[version='14.*|>=14.1,<15.0a0|9.*']
Package setuptools conflicts for:
pip -> setuptools
python=3.10 -> pip -> setuptools
wheel -> setuptools
cx_freeze -> setuptools[version='>=61.2']
Package tzdata conflicts for:
python=3.10 -> tzdata
wheel -> python -> tzdata
pip -> python[version='>=3.10,<3.11.0a0'] -> tzdata
py-lief -> python[version='>=3.9,<3.10.0a0'] -> tzdata
cx_freeze -> python[version='>=3.10,<3.11.0a0'] -> tzdata
wincertstore -> python[version='>=3.9,<3.10.0a0'] -> tzdata
certifi -> python[version='>=3.9,<3.10.0a0'] -> tzdata
setuptools -> python[version='>=3.9,<3.10.0a0'] -> tzdata
Package openssl conflicts for:
wheel -> python -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1h,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a']
setuptools -> python[version='>=3.7,<3.8.0a0'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1h,<1.1.2a']
pip -> python[version='>=3.7,<3.8.0a0'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1h,<1.1.2a']
py-lief -> python[version='>=3.8,<3.9.0a0'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1h,<1.1.2a']
python=3.10 -> openssl[version='>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a']
wincertstore -> python[version='>=3.7,<3.8.0a0'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1h,<1.1.2a']
certifi -> python[version='>=3.7,<3.8.0a0'] -> openssl[version='>=1.1.1a,<1.1.2a|>=1.1.1b,<1.1.2a|>=1.1.1c,<1.1.2a|>=1.1.1d,<1.1.2a|>=1.1.1e,<1.1.2a|>=1.1.1f,<1.1.2a|>=1.1.1g,<1.1.2a|>=1.1.1j,<1.1.2a|>=1.1.1k,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a|>=1.1.1l,<1.1.2a|>=1.1.1i,<1.1.2a|>=1.1.1h,<1.1.2a']
cx_freeze -> python[version='>=3.10,<3.11.0a0'] -> openssl[version='>=1.1.1l,<1.1.2a|>=1.1.1n,<1.1.2a|>=1.1.1q,<1.1.2a|>=1.1.1s,<1.1.2a']
Package sqlite conflicts for:
wheel -> python -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.32.3,<4.0a0|>=3.33.0,<4.0a0|>=3.35.4,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.1,<4.0a0']
python=3.10 -> sqlite[version='>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0']
cx_freeze -> python[version='>=3.10,<3.11.0a0'] -> sqlite[version='>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0']
certifi -> python[version='>=3.7,<3.8.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.33.0,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.4,<4.0a0|>=3.32.3,<4.0a0|>=3.30.0,<4.0a0|>=3.35.1,<4.0a0']
wincertstore -> python[version='>=3.7,<3.8.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.33.0,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.4,<4.0a0|>=3.32.3,<4.0a0|>=3.30.0,<4.0a0|>=3.35.1,<4.0a0']
py-lief -> python[version='>=3.8,<3.9.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.32.3,<4.0a0|>=3.33.0,<4.0a0|>=3.35.4,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.1,<4.0a0']
pip -> python[version='>=3.7,<3.8.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.33.0,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.35.4,<4.0a0|>=3.32.3,<4.0a0|>=3.30.0,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.1,<4.0a0']
setuptools -> python[version='>=3.7,<3.8.0a0'] -> sqlite[version='>=3.25.3,<4.0a0|>=3.26.0,<4.0a0|>=3.27.2,<4.0a0|>=3.28.0,<4.0a0|>=3.29.0,<4.0a0|>=3.30.1,<4.0a0|>=3.31.1,<4.0a0|>=3.33.0,<4.0a0|>=3.36.0,<4.0a0|>=3.38.0,<4.0a0|>=3.39.3,<4.0a0|>=3.40.0,<4.0a0|>=3.40.1,<4.0a0|>=3.39.2,<4.0a0|>=3.38.2,<4.0a0|>=3.35.4,<4.0a0|>=3.32.3,<4.0a0|>=3.30.0,<4.0a0|>=3.35.1,<4.0a0']
Package ca-certificates conflicts for:
wincertstore -> python[version='>=2.7,<2.8.0a0'] -> ca-certificates
pip -> python[version='>=2.7,<2.8.0a0'] -> ca-certificates
certifi -> python -> ca-certificates
openssl -> ca-certificates
wheel -> python -> ca-certificates
setuptools -> python[version='>=2.7,<2.8.0a0'] -> ca-certificates
python=3.10 -> openssl[version='>=1.1.1s,<1.1.2a'] -> ca-certificates
Package zlib conflicts for:
wincertstore -> python[version='>=3.10,<3.11.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
setuptools -> python[version='>=3.10,<3.11.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
certifi -> python[version='>=3.10,<3.11.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
wheel -> python -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
sqlite -> zlib[version='>=1.2.11,<1.3.0a0']
pip -> python[version='>=3.10,<3.11.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
python=3.10 -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
cx_freeze -> python[version='>=3.10,<3.11.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
py-lief -> python[version='>=3.10,<3.11.0a0'] -> zlib[version='>=1.2.11,<1.3.0a0|>=1.2.12,<1.3.0a0|>=1.2.13,<1.3.0a0']
Package wheel conflicts for:
python=3.10 -> pip -> wheel
pip -> wheel
Package tk conflicts for:
setuptools -> python[version='>=3.10,<3.11.0a0'] -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
certifi -> python[version='>=3.10,<3.11.0a0'] -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
pip -> python[version='>=3.10,<3.11.0a0'] -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
python=3.10 -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
wheel -> python -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
cx_freeze -> python[version='>=3.10,<3.11.0a0'] -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
py-lief -> python[version='>=3.10,<3.11.0a0'] -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
wincertstore -> python[version='>=3.10,<3.11.0a0'] -> tk[version='>=8.6.11,<8.7.0a0|>=8.6.12,<8.7.0a0']
Package libffi conflicts for:
py-lief -> python[version='>=3.8,<3.9.0a0'] -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0']
wincertstore -> python[version='>=3.10,<3.11.0a0'] -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0']
cx_freeze -> python[version='>=3.10,<3.11.0a0'] -> libffi[version='>=3.4,<3.5|>=3.4,<4.0a0']
pip -> python[version='>=3.8,<3.9.0a0'] -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0']
setuptools -> python[version='>=3.10,<3.11.0a0'] -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0']
certifi -> python[version='>=3.8,<3.9.0a0'] -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0']
python=3.10 -> libffi[version='>=3.4,<3.5|>=3.4,<4.0a0']
wheel -> python -> libffi[version='>=3.3,<4|>=3.4,<3.5|>=3.4,<4.0a0']
Package certifi conflicts for:
setuptools -> certifi[version='>=2016.09|>=2016.9.26']
cx_freeze -> setuptools[version='>=61.2'] -> certifi[version='>=2016.9.26']
pip -> setuptools -> certifi[version='>=2016.09|>=2016.9.26|>=2017.4.17']
wheel -> setuptools -> certifi[version='>=2016.09|>=2016.9.26']
Package wincertstore conflicts for:
cx_freeze -> setuptools[version='>=61.2'] -> wincertstore[version='>=0.2']
setuptools -> wincertstore[version='>=0.2']
wheel -> setuptools -> wincertstore[version='>=0.2']
pip -> setuptools -> wincertstore[version='>=0.2']
Package packaging conflicts for:
pip -> packaging
python=3.10 -> pip -> packaging
In my CI a new environement is created with a action, but the python is from conda-forge, then the dependencies, and finally cx_freeze.
conda create -n brand_new_env -c conda-forge python=3.10
and in the environment:
conda install -c conda-forge py-lief cx_logging setuptools
conda install -y --no-channel-priority -S -c https://marcelotduarte.github.io/packages/conda cx_Freeze
Install from conda-forge python and cx_freeze
Alright. I created a new env (again), but the way I like it: python from anaconda (not conda-forge) and all the rest using pip. It now works fine on all computers I've tested.
I'm still worried by all the times I broke my environments when uninstalling cx_freeze, but I'll leave that for another issue.
Also, I see there is no zlib.dll around anymore. I hope that was intentional.
Again, thank you for all your help.
I'm still worried by all the times I broke my environments when uninstalling cx_freeze, but I'll leave that for another issue.
This is because you mix up anaconda and conda-forge. If you use only packages from conda-forge, this does not occur. I already have this issue testing a time ago. It is not related do cx_freeze. Please check the documentation from anaconda and conda-forge to check if this is a issue or is documented as not desired.
Also, I see there is no zlib.dll around anymore. I hope that was intentional.
zlib.dll is along the executable and pythonxx.dll
zlib.dll is along the executable and pythonxx.dll
Do you mean there should still be a zlib.dll in the same dir as the .exe? I can't find it there. It's all working fine with this version though , even on computers where I got the "missing zlib.dll" error before.
Please check the documentation from anaconda and conda-forge to check if this is a issue or is documented as not desired.
Indeed, they warn against that.
In addition to the channel priority, we recommend always installing your packages inside a new environment instead of the base (formerly known as root) environment, and we also recommend the use of miniconda instead of the Anaconda Distribution. Using environments make it easier to debug problems with packages and ensure the stability of your base environment. Avoiding the Anaconda Distribution reduces chances of unsolvable/conflicting installations, it is also a smaller download.
zlib.dll is along the executable and pythonxx.dll
Do you mean there should still be a zlib.dll in the same dir as the .exe? I can't find it there. It's all working fine with this version though , even on computers where I got the "missing zlib.dll" error before.
In my tests separately using official python and pip, zlib.dll is not needed at startup. In conda-forge yes, that's why it goes together with python3x.dll. And the way I did it now, if they change the dependencies, don't need the zlib anymore or add some other dependency, it will be detected.
Regarding anaconda vs conda-forge, I recommend using everything from conda-forge, I see it's better maintained.
Marcelo, tudo bem? Primeiramente, parabéns pelo projeto! Curti muito!
Estou tendo um problema, eu uso Pycharm com um env do anaconda no Windows 10.
Tentei rodar o sample pandas e no build foi tudo certo, porém ao tentar executar o .exe o mesmo apresenta o erro da imagem (https://imgur.com/a/TG0V7Qr).
Estou fazendo algo errado? Já procurei em tudo que é lugar, até tem uma issues aberta com o nome de zlib.dll missing. Mas não é a mesma coisa.
Marcelo, how are you? First of all, congratulations! I like it a lot!
I am having a problem, I use Pycham with env from anaconda on Windows 10.
I tried to run the pandas sample and there was no problem in build's phase, however when I try to run the .exe the issues appers (https://imgur.com/a/TG0V7Qr).
What am I doing wrong? I google it, but didn't get lucky.