pyinstaller

PyInstaller FrozenImporter has no attribute filename

不羁的心 提交于 2020-01-06 14:00:59
问题 I found this question having a quite similar issue, despite using a different library. When I try to run my .exe, build using PyInstaller 3.4 I am getting this error, which I'm unable to solve: Traceback (most recent call last): File "Clustering_Dash_0_7_igraphimplementation.py", line 622, in <module> File "site-packages\dash\dash.py", line 1385, in run_server File "site-packages\dash\dash.py", line 1279, in enable_dev_tools File "site-packages\dash\dash.py", line 1277, in <listcomp>

PyInstaller FrozenImporter has no attribute filename

╄→尐↘猪︶ㄣ 提交于 2020-01-06 13:58:58
问题 I found this question having a quite similar issue, despite using a different library. When I try to run my .exe, build using PyInstaller 3.4 I am getting this error, which I'm unable to solve: Traceback (most recent call last): File "Clustering_Dash_0_7_igraphimplementation.py", line 622, in <module> File "site-packages\dash\dash.py", line 1385, in run_server File "site-packages\dash\dash.py", line 1279, in enable_dev_tools File "site-packages\dash\dash.py", line 1277, in <listcomp>

Maximum recursion depth exceeded in kivy but only when packaging, not when developing the app in python

為{幸葍}努か 提交于 2020-01-06 05:18:18
问题 I am trying to pack an app that requires several imports, among those matplotlib.pyplot The kivy app (simplified, but still working) is: from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.lang import Builder import matplotlib.pyplot Builder.load_string(""" <MyWidget>: id: my_widget FileChooserIconView: id: filechooser on_selection: my_widget.selected(filechooser.selection) Image: id: image source: "" """) class MyWidget(BoxLayout): def selected(self,filename): self

Pyinstaller ImportError with scipy: DLL load failed

拟墨画扇 提交于 2020-01-05 07:20:30
问题 I have this Python script I want to turn into an EXE file with Pyinstaller. This is my spec file: # -*- mode: python ; coding: utf-8 -*- # work-around for https://github.com/pyinstaller/pyinstaller/issues/4064 import distutils if distutils.distutils_path.endswith('__init__.py'): distutils.distutils_path = os.path.dirname(distutils.distutils_path) block_cipher = None a = Analysis(['hello-world.py'], pathex=['C:\\Users\\Testuser\\workspace\\hello-world'], binaries=[], datas=[ ('lib/*', '.') ],

ModuleNotFoundError: No module named 'Crypto.Math'

烈酒焚心 提交于 2020-01-05 07:03:40
问题 On Windows, I wanna run pyinstaller myapp.py -w -f but I have some errors with crypto modules. In my code I use 4 imports, each one of these 4 imports (independently) gives me this same error from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request import browser_cookie3 I have tried few things I have found on Google and Stackoverflow : pip install pycryptodome pip install pycryptodomex pip install

python scrapy conversion to exe file using pyinstaller

半城伤御伤魂 提交于 2020-01-05 04:27:13
问题 I am trying to convert a scrapy script to a exe file. The main.py file looks like this: from scrapy.crawler import CrawlerProcess from amazon.spiders.amazon_scraper import Spider spider = Spider() process = CrawlerProcess({ 'FEED_FORMAT': 'csv', 'FEED_URI': 'data.csv', 'DOWNLOAD_DELAY': 3, 'RANDOMIZE_DOWNLOAD_DELAY': True, 'ROTATING_PROXY_LIST_PATH': 'proxies.txt', 'USER_AGENT_LIST': 'useragents.txt', 'DOWNLOADER_MIDDLEWARES' : { 'rotating_proxies.middlewares.RotatingProxyMiddleware': 610,

Pyinstaller ld-linux-x86-64.so.2 linking problem

喜你入骨 提交于 2020-01-05 04:04:36
问题 I'm trying to deploy my Python based application on another Linux host. Pyinstaller works flawlessly as long as I run the generated executable on my own system. On the target box I get this error message: /lib/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory As the output of ldd shows Pyinstaller links my application against /lib/ld-linux-x86-64.so.2 which is only available at /lib64/ld-linux-x86-64.so.2 on the target system (where I only have basic user privileges, so

Python pyinstaller loading files after exe creation

三世轮回 提交于 2020-01-05 03:52:09
问题 I am running 2.7 and i am using pyinstaller. My goal is to output a exe and also have it run my other class file. I am also using https://code.google.com/p/dragonfly/ as a framework for voice recognition. I have created another file in the examples direction under dragonfly->examples->text.py . If i run https://code.google.com/p/dragonfly/source/browse/trunk/dragonfly/examples/dragonfly-main.py?spec=svn79&r=79 with my IDE i can say voice commands and it will understand the below file i have

How do I create an executable file out of a PyCharm project using PyInstaller?

心已入冬 提交于 2020-01-03 05:34:49
问题 I have written a project in PyCharm consisting of a .py file, a .txt file, a .ico file and the regular .idea folder for PyCharm projects. All is saved in C:\Users\user\PycharmProjects\myproject . I would like to create a single-file .exe using PyInstaller. But when I run the command pyinstaller.exe --onefile --windowed myprogram.py , I get the following error: 'pyinstaller.exe' is not recognized as an internal or external command, operable program or batch file. To my understanding, this is

Converting PyGTK to exe

回眸只為那壹抹淺笑 提交于 2020-01-03 02:42:31
问题 I've been looking around for hours now. The only thing that makes sense to me is http://fnch.users.sourceforge.net/portablepygtkwindows.html But it takes up >40MB of space and it is too big for me. Other tutorials are either too complicated for me to go through them or the results I obtained didn't work. I've tried py2exe but the import gtk fails. I've tried pyinstaller. The GTK files were included but not the glade file. I would wish to have it all in a single standalone .exe. But now my