pyinstaller

pyinstaller: _libcouchbase module not found after building the executable

夙愿已清 提交于 2019-12-24 18:30:24
问题 I have a simple python script that imports couchbase module on Ubuntu 14.04: $ cat test.py from couchbase import Couchbase print 'module _libcouchbase found' Running from interpreter works fine: $ python test.py module _libcouchbase found Created an executable: $ pyinstaller test.py Running the executable throws an error of unable to import _libcouchbase module: $ ./dist/test/test Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/dist

How can i make ipythons RichIPythonWidget use pyside in a pyinstaller environment?

匆匆过客 提交于 2019-12-24 17:19:23
问题 I have an application that i build using pyinstaller, and it uses PySide for its Qt Gui. I included an interactive prompt by embedding an ipython qtconsole. This breaks the builds created by pyinstaller. Here is a minimal (non-)working example: from PySide.QtGui import * from IPython.qt.console.rich_ipython_widget import RichIPythonWidget from IPython.qt.inprocess import QtInProcessKernelManager from IPython.lib import guisupport class IPythonWidget(RichIPythonWidget): def __init__(self,

Bundled Python 3.5.1 app crashes when reading text files on Mac OS X

时光毁灭记忆、已成空白 提交于 2019-12-24 15:40:27
问题 I have built an app using Python 3.5.1 and PyQt 5.6 under Mac OS X 10.11.4. Everything runs fine unbundled. I have bundled it using Pyinstaller 3.2. Everything seems to work fine until the app reads text files from disk. File access is not the problem, since I can read all file properties using libmagic , which I do in order to filter out unwanted input formats, as these are user-selected files to be processed by my app. The bundled app crashes exactly when the content of a text file is read

Installing PyInstaller on Mac

老子叫甜甜 提交于 2019-12-24 14:14:53
问题 I have not seen this issue in my google searches. I am trying to install PyInstaller on my work Mac which I do not have administrative access. $ pip install --user pyinstaller Collecting pyinstaller Requirement already satisfied: dis3 in ./Library/Python/2.7/lib/python/site-packages (from pyinstaller) Requirement already satisfied: setuptools in ./Library/Python/2.7/lib/python/site-packages (from pyinstaller) Requirement already satisfied: macholib>=1.8 in ./Library/Python/2.7/lib/python/site

pyinstaller .exe cannot find 'dateutil.tz.__init__.tz'

杀马特。学长 韩版系。学妹 提交于 2019-12-24 12:54:04
问题 This is my very first time creating an .exe (or any package at all). Although I successfully created an exe-file of the kivy-touchtracer demo, according to the kivy-manual. I used the same approach to create an .exe from my kivy-app. It suppose to be running only on windows (first milestone). The non-exe version runs as I wanted. I could manage to create an .exe file, but somehow it is not running. Basically the programm should collect some data, "calculate a bit around" the given data,

PyInstaller in Mac os X Mavericks

三世轮回 提交于 2019-12-24 12:16:56
问题 I have a problem with PyInstaller on Mac OS X, my Python version is 2.7 and I installed PyInstaller with pip. When I type pyinstaller in the command line, this error is returned: $ pyinstaller -bash: pyinstaller: command not found I have PyInstaller installed in Windows from pip, and it works fine. 回答1: this might be a little late, but you should install the zip file, extract the zip. Open the terminal and go to that directory, move the py files that you want to use pyinstaller for, and use

Python: Compiling astropy with pyinstaller

拥有回忆 提交于 2019-12-24 11:44:26
问题 Currently I'm trying to compile a python application with pyinstaller for distribution. Unfortunately, the compiled version doesn't run, seemingly because of one of astropy's dependencies: six. Astropy encounters an import error on startup although I've even tried adding six to 'hidden imports' in the application's specs-file. Strangely however, during compilation pyinstaller notes that my hidden import 'six' has been found otherwise (this is also the only time six is mentioned) but still it

ImportError: No module named 'distutils' in pandas pyinstaller

家住魔仙堡 提交于 2019-12-24 10:49:02
问题 I have created an executable via pyinstaller. While running the exe found the error from pandas. Traceback (most recent call last): File "score_python.py", line 3, in <module> import pandas as pd, numpy as np File "d:\virtual\sc\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module exec(bytecode, module.__dict__) File "site-packages\pandas\__init__.py", line 23, in <module> File "d:\virtual\sc\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line

Pyinstaller Maximum Recursion Depth Exceded

自作多情 提交于 2019-12-24 10:15:06
问题 I am trying to create an executable from python 3.6.4 using pyinstaller 3.3.1. The packages I am using are Pandas and openpyxl. When I try to create the bundle I receive this error. $ RecursionError: maximum recursion depth exceeded in comparison I have tried increasing my recursion limit and most of the steps described in How to Report Bugs and the error is still the same. I also got the same error when I tried bundling import openpyxl print("Hello World") so I think the problem has to do

Pyinstaller 3.4 Not Working on Windows 10 with Python 2.7

喜夏-厌秋 提交于 2019-12-24 10:14:21
问题 I have recently reinstalled Windows 10. I am using Python 2.7 and trying to make a small executable using Pyinstaller 3.4. and I get the following error: C:\python_programs\py_live>pyinstaller g_uplink.py Traceback (most recent call last): File "C:\Python27\Lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\Python27\Lib\runpy.py", line 72, in _run_code exec code in run_globals File "C:\Python27\Scripts\pyinstaller.exe\__main__.py", line 5, in <module