pyinstaller

scipy import error with pyinstaller

旧巷老猫 提交于 2021-01-29 08:42:54
问题 I am trying to build a "One File" executable for my project with pyinstaller and a .spec file. The content of the spec file is as follows: # -*- mode: python -*- block_cipher = None a = Analysis(['__main__.py'], pathex=['D:\\opt_frame'], binaries=[], datas=[], hiddenimports=['scipy.special', 'scipy.special.comb'], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

Pyinstaller: Failed to execute script cyto

筅森魡賤 提交于 2021-01-29 07:09:06
问题 I am trying to create a Chatbot and convert it to an executable with Pyinstaller. Here is my code: from chatterbot.trainers import ChatterBotCorpusTrainer import tkinter as tk import os.path import webbrowser import tkinter.ttk as ttk import tkinter.scrolledtext as ScrolledText import time def helping_button(): webbrowser.open("https://www.internetking.ga/2020/06/sociality-gets-update-sociality-30.html") class TkinterGUIExample(tk.Tk): def __init__(self, *args, **kwargs): """ Create & set

Build a .dmg file from .py using pyinstaller on windows?

依然范特西╮ 提交于 2021-01-29 05:53:16
问题 I have to build a python app for a MacOS user and I'm using Windows. I saw that using pyinstaller you can build .app files, but how do I do that on Windows? 回答1: As Pyinstaller's docs states: PyInstaller is tested against Windows, Mac OS X, and GNU/Linux. However, it is not a cross-compiler: to make a Windows app you run PyInstaller in Windows; to make a GNU/Linux app you run it in GNU/Linux, etc. PyInstaller has been used successfully with AIX, Solaris, and FreeBSD, but is not tested against

Create a python 3 exe with pyinstaller with Pmw module

我的梦境 提交于 2021-01-29 02:29:49
问题 Based on this Previos Post I'm trying to figure out how to make an exe out of my python files. The main issue seems to be that Pmw and its modules do not seem to import correctly though pyinstaller. The main error says: FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\User\Name\AppData\Local\Temp\_MEI61522\Pmw Looking at the Pmw init it seems what it's doing is looking for files in the directory which have Pmw_# # # and looking in there which has lib and then

How to use patool in a pyinstaller .exe

本小妞迷上赌 提交于 2021-01-28 20:04:52
问题 I have a simple python script that unpack a file.rar It works fine until I compile it into an exe with pyinstaller and it stops working. Python 3.7 Windows 7 PyInstaller 3.4 My file.py from pyunpack import Archive import os import os.path as path import subprocess path=os.getcwd() Archive('MyFile.rar').extractall(path) I tried to place myself in: Python37-32\Lib\site-packages\PyInstaller\hooks and add hook called "hook-patoolib.py" with the following content hook-patoolib #-------------------

NAPALM library not been imported when using PyInstaller

点点圈 提交于 2021-01-28 10:56:37
问题 I have successfully used Pyinstaller for a while and never faced issue with a library which was installed using pip. However recently i created a program using NAPALM library which is running perfectly fine from the IDE but when exported using Pyinstaller it is giving an error. ERROR: Cannot import "ios". Is the library installed? Python version: Python 3.7.1rc2 PIP package list: C:\Users\yasir.zamir>pip list Package Version --------------- ---------- napalm 2.5.0 PyInstaller 3.5 cffi 1.13.2

accessing python interpreter from a pyinstaller bundle #2

我与影子孤独终老i 提交于 2021-01-28 09:41:07
问题 I'm trying to execute a python script which is included in datas, and bundled into a pyinstaller executable (on a mac). I need to pass parameters to this script, so I can't just exec(open(read()). Outside of pyinstaller, sys.executable is the python interpreter, so calling the python script works fine. In pyinstaller, sys.executable is the 'main' py script, so it just opens up my app again instead of calling the new script. How can I call my additional python script inside my app? This is

pyinstaller with namespace packages

依然范特西╮ 提交于 2021-01-28 03:40:46
问题 I have a module/package structure where I am using namespace packages, I have multiple user made libraries which I keep in separate repositories, and they have fairly generic names like db, io, utils and so on. To avoid conflict with other packages I have a top level/namespace package named acme, i.e. my packages are acme.io, acme.db, acme.utils and so on. To make this work, the __init__.py in all the acme folders has the following lines from pkgutil import extend_path __path__ = extend_path(

How to run QT platform plugin on windows

百般思念 提交于 2021-01-28 02:49:01
问题 I use Anaconda3 5.2.0 and jupyter notebook(python3)(Window10) I made a file through 'pyinstaller'. But when I play file that I made, It has some Error.\ there are qwindows, qoffscreen, qminimal, qdirect2d .dall in platforms folder ============================================================================= qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized.

getting module import error while running PyInstaller generated binary

耗尽温柔 提交于 2021-01-28 02:20:33
问题 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', '