[PyInstaller] Problem to install pyinstaller 4,1

2021-03-06 Thread Mélissa Ch .
Hi i have a lot of problem to install PyInstaller. 
when i pass by  pip install pyinstaller, it begin with 4,2 and error 
appears, after thy try other version to finish whit 3.3.1.   i need version 
4.1 minimal to install and use auto-py-to-exe.
i have try to uninstall pyinstaller and re-install nothing work. i try this 
one too pip install 
https://github.com/pyinstaller/pyinstaller/archive/develop.zip it don't 
work.  i try to donwloads the pyinstaller-4.2.tar.gz file on the pypi web 
site and chrome block it because it sait this will damage my system. 

This is one of the error message i receive when i try to install it.

C:\Windows\system32>pip install pyinstaller
Collecting pyinstaller
  Using cached pyinstaller-4.2.tar.gz (3.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
 command: 
'c:\users\mélissa\appdata\local\programs\python\python39\python.exe' 
'c:\users\mélissa\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\_in_process.py'
 
prepare_metadata_for_build_wheel 
'C:\Users\MLISSA~1\AppData\Local\Temp\tmp9aaisqls'
 cwd: 
C:\Users\Mélissa\AppData\Local\Temp\pip-install-sayhlnad\pyinstaller_e50c146fbabd40cd8cdf5277c294
Complete output (38 lines):
Error in sitecustomize; set PYTHONVERBOSE for traceback:
SyntaxError: (unicode error) 'utf-8' codec can't decode byte 0xe9 in 
position 0: unexpected end of data (sitecustomize.py, line 7)
running dist_info
creating 
C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info
writing 
C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\PKG-INFO
writing dependency_links to 
C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\dependency_links.txt
writing entry points to 
C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\entry_points.txt
writing requirements to 
C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\requires.txt
writing top-level names to 
C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\top_level.txt
writing manifest file 
'C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\SOURCES.txt'
reading manifest file 
'C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'pyinstaller-gui.py'
no previously-included directories found matching 'bootloader\build'
no previously-included directories found matching 'bootloader\.waf-*'
no previously-included directories found matching 'bootloader\.waf3-*'
no previously-included directories found matching 'bootloader\waf-*'
no previously-included directories found matching 'bootloader\waf3-*'
no previously-included directories found matching 'bootloader\_sdks'
no previously-included directories found matching 'bootloader\.vagrant'
warning: no previously-included files found matching 
'bootloader\.lock-waf*'
no previously-included directories found matching 'doc\source'
no previously-included directories found matching 'doc\_build'
warning: no previously-included files matching '*.tmp' found under 
directory 'doc'
warning: no files found matching 'news\_template.rst'
no previously-included directories found matching 'news'
no previously-included directories found matching 'old'
no previously-included directories found matching 'scripts'
no previously-included directories found matching 'tests\scripts'
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.*'
warning: no previously-included files found matching '*.yml'
warning: no previously-included files found matching '*~'
warning: no previously-included files found matching '.directory'
warning: no previously-included files matching '*.py[co]' found 
anywhere in distribution
writing manifest file 
'C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.egg-info\SOURCES.txt'
creating 
'C:\Users\Mélissa\AppData\Local\Temp\pip-modern-metadata-k6jvcsl7\pyinstaller.dist-info'
error: invalid command 'bdist_wheel'

WARNING: Discarding 
https://files.pythonhosted.org/packages/b4/83/9f6ff034650abe9778c9a4f86bcead63f89a62acf02b1b47fc2bfc6bf8dd/pyinstaller-4.2.tar.gz#sha256=f5c0eeb2aa663cce9a5404292c0195011fa500a6501c873a466b2e8cad3c950c
 
(from https://pypi.org/simple/pyinstaller/) (requires-python:>=3.5). 
Command errored out with exit status 1: 
'c:\users\mélissa\appdata\local\programs\python\python39\python.exe' 

[PyInstaller] Re: Making app package smaller

2021-03-06 Thread 'Pax Williams' via PyInstaller
Have you tried using UPX?

https://pyinstaller.readthedocs.io/en/stable/usage.html#using-upx

On Tuesday, December 29, 2020 at 12:56:09 AM UTC-8 elliott...@gmail.com 
wrote:

> Even for a very simple python code, PyInstaller adds a lot of extra files. 
>  Is there a recommended way to remove some of this to make the app smaller? 
>  For example, a Python code with just one line:
>
> print('Hello world.')
>
> The app package is 13.5 MB on macOS, or 5.9MB in one-file mode.  Some of 
> the largest files in the package are:
> libcrypto.1.1.dylib 2.8M
> unicodedata.cpython-37m-darwin.so 1.1M
> libssl.1.1.dylib 556K
> libncursesw.5.dylib 433K
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/ca8c5c36-9acb-40c8-b2e4-2afddb11538en%40googlegroups.com.


[PyInstaller] Error -3 from inflate: unknown compression method

2021-03-06 Thread 'Pax Williams' via PyInstaller
I'm trying to package a CLI app as a Linux standalone executable using 
PyInstaller. I don't have a Linux OS so I used Vagrant to package it; used 
the CentOS 7 box since the server where the executable will run is also 
CentOS 7. 

 I was able to create a standalone executable and it ran successfully with 
a fresh CentOS 7 Vagrant machine (no provisioning scripts / no python3 and 
its dependencies installed). 

But when I run the executable in the server, it gives me this error: 

[user@server ~]$ emails_automation/emails --help 
[22874] Error -3 from inflate: unknown compression method 
[22874] Error decompressing _asyncio.cpython-38-x86_64-linux-gnu.so 
Failed to write all bytes for _asyncio.cpython-38-x86_64-linux-gnu.so 
fwrite: Bad address 

Some Observations
✅   Both VM and the actual server has the same glibc version: 

VM: 

[root@localhost emails]# ldd --version 
ldd (GNU libc) 2.17 

Server: 

[user@server ~]$ ldd --version 
ldd (GNU libc) 2.17 


樂   Searching for "inflate: unknown compression method" in the pyinstaller 
repo and returned files related to `zlib`. So I checked whether zlib is 
installed in the server, and the fresh CentOS 7 VM (the one without any 
provisioning scripts) by running the python REPL and both doesn't give 
import errors which tells me zlib is installed.

VM:

[vagrant@localhost ~]$ python
Python 2.7.5 (default, Apr  2 2020, 13:16:51) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zlib
>>> zlib.crc32


Server:

[user@server ~]$ python
Python 2.7.5 (default, Nov 16 2020, 22:23:17) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import zlib
>>> zlib.crc32



Any pointers for me?

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyinstaller+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyinstaller/4c1c5b65-cc1f-4502-b157-5ce407a06b48n%40googlegroups.com.