pyinstaller

PyInstaller maximum recursion error after pre-safe import module hook [six.moves]

倾然丶 夕夏残阳落幕 提交于 2021-01-27 23:06:44
问题 I am trying to use PyInstaller to convert my python3.5 project into an .exe file My main file is SegTool.py This is my .spec file: # -*- mode: python -*- block_cipher = None a = Analysis(['SegTool.py'], pathex=['consts.py', 'FetalMRI_about.py', 'FetalMRI_mainwindow.py', 'FetalMRI_workspace.py', 'image_label.py', 'main_window.py', 'scan_file.py', 'segment3d_itk.py', 'Shapes.py', 'workspace.py', 'C:\\Users\\Keren Meron\\Documents\\School Work\\Fetal MRI\\FetalSegBrainTool'], binaries=[], datas=

py to exe : failed to execute script pyi_rth_win32comgenpy

风流意气都作罢 提交于 2021-01-27 21:54:37
问题 I'm creating a simple calculation program using tkinter module and want to convert to exe as I want it to be executable at any pc. But somehow the error message show (failed to execute script pyi_rth_win32comgenpy). I've try used pyinstaller ( cmd and the one on GitHub at : https://github.com/brentvollebregt/auto-py-to-exe) but to no avail. I also try using both types of python file (.py and .pyw) from tkinter import * from tkinter.filedialog import askopenfilename import pandas as pd from

How to fix a pyinstaller 'no module named…' error when my script imports the modules pikepdf and pdfminer3?

半城伤御伤魂 提交于 2021-01-27 20:14:27
问题 I've built a working py script using PikePDF and PDFminer3 that will take a PDF off my desktop and create a txt file out of the words available. The purpose of this is to help my team at work amend legal documents that often cannot be copy-pasted for amendments (and must therefore be typed out by hand). As most of my colleagues are averse to setting up anaconda and using python, I wanted to use pyinstaller to turn my script into an .exe. When I run the application created by pyinstaller, I am

getting module import error while running PyInstaller generated binary

為{幸葍}努か 提交于 2021-01-27 19:42:40
问题 I'm getting an error while trying to a simple hello.py using PyInstaller on RHEL X64. Python 2.7.12 is alt installed in /opt/python Compilation Output: [root@myrig CommandManager]# pyinstaller Hello.py 21 INFO: PyInstaller: 3.2 21 INFO: Python: 2.7.12 22 INFO: Platform: Linux-3.10.0-327.22.2.el7.x86_64-x86_64-with-redhat-7.2-Maipo 62 INFO: wrote /home/myuser/CommandManager/Hello.spec 66 INFO: UPX is not available. 107 INFO: Extending PYTHONPATH with paths ['/home/myuser/CommandManager', '

PyInstaller/Py2exe - include os.system call with third party scripts in single file compilation

試著忘記壹切 提交于 2021-01-27 19:10:05
问题 I'm using tkinter and pyinstaller/py2exe (either one would be fine), to create an executable as a single file from my python script. I can create the executable, and it runs as desired when not using the bundle option with py2exe or -F option with pyinstaller. I'm running third party python scripts within my code with os.system(), and can simply place these scripts in the 'dist' dir after it is created in order for it to work. The command has several parameters: input file, output file,

PyInstaller - FileNotFoundError: No such file or directory: ''

让人想犯罪 __ 提交于 2021-01-27 18:47:11
问题 I've have seen many posts about this very same error code with many different answers and I still can't fix my problem. The difference of mine from all the other posts is that I get the following: 317 INFO: Building PKG because PKG-00.toc is non existent 318 INFO: Building PKG (CArchive) PKG-00.pkg Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.8_3.8.752.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 193, in _run_module_as_main return _run

How to fix: PyInstaller in MSYS2 MinGW 'Your platform is not yet supported'

↘锁芯ラ 提交于 2021-01-27 12:59:44
问题 I'm trying to package my GTK3+ Python 3 script using PyInstaller on Windows 10. GTK3+ and the Python bindings are installed and working, using MSYS2 MinGW as per the GTK+ instructions. In MSYS2 MinGW, when I type: pip3 install pyinstaller I get the error: Your platform is not yet supported. Please define constant PYDYLIB_NAMES for your platform. So I attempted to install PyInstaller manually from Windows PowerShell by downloading and extracting the tar.gz file for PyInstaller and then running

Runtime error when calling a .exe made with PyInstaller including PyQt4

这一生的挚爱 提交于 2021-01-27 11:46:44
问题 So, I have two .py files, one generated by QtDesigner and another which basically implements the functionality of the GUI. Using, pyinstaller, I generated a .exe file to use it on systems without python and the associated libraries. The command: pyinstaller my_script.py runs fine without any errors. The problem occurs when I run the .exe file. Error: Qt: Untested Windows version 10.0 detected! Traceback (most recent call last): File "site-packages\PyInstaller\loader\rthooks\pyi_rth_qt4plugins

使用 py2exe 打包 Python 程序

China☆狼群 提交于 2021-01-25 07:46:14
上回在《 使用 PyInstaller 打包 Python 程序 》中,我们介绍了使用 PyInstaller 对 Python 程序进行打包,今天带大家认识一个新的工具:py2exe。 接下来将从这几个方面进行介绍:基本使用方法、高级参数、注意点等。 简介 & 安装 py2exe 是一个将 python 脚本转换成 Windows 上的可独立执行的可执行程序(*.exe)的工具,这样,你就可以不用装 python 而在 Windows 系统上运行这个可执行程序。 安装 pip install py2exe # 或者 python -m pip install py2exe 基本用法 看一个简单的例子:先写一个简单的脚本,文件名:helloworld.py: #!/usr/bin/env python # -*- coding: utf-8 -*- def say_hello(name): print("Hello, " + name) if __name__ == "__main__": name = input("What's your name:") say_hello(name) 下面还需要个用于发布程序的设置脚本:mysetup.py,在其中的 setup 函数前插入语句 import py2exe 。 from distutils.core import setup

Avast blocks pip and Pyinstaller

偶尔善良 提交于 2021-01-24 11:57:09
问题 I'm making a Simple GUI Tkinter Program. I was going to compile my Program (with Pyinstaller) but Avast is blocking PIP. So I ignored it. When Compile was Finished. I run the compiled .exe program and the program are saying: failed to execute the script, Avast is blocking. How to fix this error and What am the issue? edit:now Avast is not blocking .exe(but blocking PIP) 回答1: I use avast as well. Avast sandboxes pipenv when installing a new package. Depending on what/if virtualenv your using.