which build tool(s) do you recommend for python? [closed]

(Edit: Avoid “premature” optimization advice. The recommendations for tooling in this answer are now outdated: PEP-0632.) If it is at all possible, I’d suggest avoiding extension modules(C/cython) in the beginning. Get your all code written in Python, use a simple distutils based configuration, run your tests using -m (python -m mypkg.test.testall, or whatever; import unittest). … Read more

Installer and Updater for a python desktop application

There is a suite of tools from the cloudmatrix guys that addresses that problem. esky is an auto-update framework for frozen apps that is compatible with the common python “packaging” frameworks. signedimp tries to ensure that apps are not modified after they are signed, and to minimize invasive Windows UAC dialogs. myppy aims to insulate … Read more

pyinstaller creating EXE RuntimeError: maximum recursion depth exceeded while calling a Python object

This worked for me Run pyinstaller and stop it to generate the spec file : pyinstaller filename.py A file with .spec as extension should be generated Now add the following lines to the beginning of the spec file : import sys sys.setrecursionlimit(5000) Now run the spec file using : pyinstaller filename.spec

Can I control the architecture (32bit vs 64bit) when building a pyinstaller executable?

Pyinstaller produces a binary depending from the python you used to build it. So if you use python 2.7 64 bit it is not possible, as far as I know, to produce a 32 bit executable. This is because Pyinstaller archives all modules and their dependencies (dlls, pyds etc..) which are 64 bit due to … Read more

Program made with PyInstaller now seen as a Trojan Horse by AVG

I was always getting some false positives with PyInstaller from VirusTotal. This is how I fixed it: PyInstaller comes with pre-compiled bootloader binaries for different OSs. I suggest compile them by yourself on your machine. Make sure everything is consistent on your machine. For Windows 64-bit, install Python 64-bit. Download PyInstaller 64-bit for Windows. Make … Read more

Pyinstaller adding data files

As others (@Anson Chan, @schlimmchen) have said: If you want to add some extra files, you should use Adding Data Files. Two ways to implement Command Line: add parameter to –add-data Spec file: add parameter to datas= Generated when running pyinstaller the first time. Then later you can edit your *.spec file. Then running pyinstaller … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)