pyinstaller

Pyinstaller with relative imports

喜夏-厌秋 提交于 2021-02-06 10:49:40
问题 I'm attempting to make a Pyinstaller build for Windows 7 using Pyinstaller 2.1. The module uses relative imports because the package is typically used in Linux as a 'regular' Python package. Is there a way to create a spec file to handle this type of setup? Ideally I would like to have a Python package that I can make a Pyinstaller exe with for Windows and have a 'regular' pip-installable Python package in Linux/OS X. I was thinking of maybe using hidden imports or something to achieve this.

Python Flask as Windows Service

≡放荡痞女 提交于 2021-02-05 18:57:59
问题 I am trying to get a Flask app to run as a Service in Windows. I have already tried to implement a solution as suggested here and here without success. I have a simple folder with just two files: Project | +-- myapp.py +-- win32_service.py Inside myapp.py is a simple Flask app: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' And the service skeleton win32_service.py : import win32serviceutil import win32service import win32event import

Python Flask as Windows Service

泪湿孤枕 提交于 2021-02-05 18:55:16
问题 I am trying to get a Flask app to run as a Service in Windows. I have already tried to implement a solution as suggested here and here without success. I have a simple folder with just two files: Project | +-- myapp.py +-- win32_service.py Inside myapp.py is a simple Flask app: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' And the service skeleton win32_service.py : import win32serviceutil import win32service import win32event import

Python Flask as Windows Service

限于喜欢 提交于 2021-02-05 18:54:25
问题 I am trying to get a Flask app to run as a Service in Windows. I have already tried to implement a solution as suggested here and here without success. I have a simple folder with just two files: Project | +-- myapp.py +-- win32_service.py Inside myapp.py is a simple Flask app: from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' And the service skeleton win32_service.py : import win32serviceutil import win32service import win32event import

Cannot redirect Pyinstaller single executable output while running it in subprocess

笑着哭i 提交于 2021-02-05 11:21:06
问题 I've been struggling with this for quite a while. I've managed to write a code that can capture STDOUT of .py files, however when I run the exact same code with executable generated from Pyinstaller (doesn't matter whether it's windowed or not) the readyReadStandardOutput signal doesn't ever come up. From my tests it occurs that any signal at all is emitted only when the app crashes, however I need a live communication between the GUI and the executable. Here's my code for reference: def

How to fix buttons not showing properly using Python, PyQt5, and Pyinstaller

别等时光非礼了梦想. 提交于 2021-02-05 11:12:29
问题 I created an interface using Qt Designer and integrated it into my python code using PyQt5. I then created an exe file using Pyinstaller and the interface shows up fine on my laptop using Windows 10 Home. However testing on a different windows machine using Windows 10 Pro shows the buttons and labels all cut out , with wrong font and all as shown below. For example, the top title should be GEODISTANCE CALCULATOR' but only shows 'GEODISTANCE CA'. What causes this incompatibility and how can I

PyGame NotImplementedError

爷,独闯天下 提交于 2021-02-05 11:12:01
问题 I made a pygame application using PyInstaller but for some reason when I open it it raises the NotImplementedError, if found out that this error is being raised in the _has function on line 1663 of init .py in pkg-resources but i'm not sure why its being called. I tried to trace it back as far as I can and so far i cant find and connection between pkg-resources and pygame. The exe worked with the previous version, which didn't include text so i tried importing pygame._view but that didn't

How to fix buttons not showing properly using Python, PyQt5, and Pyinstaller

∥☆過路亽.° 提交于 2021-02-05 11:10:29
问题 I created an interface using Qt Designer and integrated it into my python code using PyQt5. I then created an exe file using Pyinstaller and the interface shows up fine on my laptop using Windows 10 Home. However testing on a different windows machine using Windows 10 Pro shows the buttons and labels all cut out , with wrong font and all as shown below. For example, the top title should be GEODISTANCE CALCULATOR' but only shows 'GEODISTANCE CA'. What causes this incompatibility and how can I

PyGame NotImplementedError

允我心安 提交于 2021-02-05 11:05:48
问题 I made a pygame application using PyInstaller but for some reason when I open it it raises the NotImplementedError, if found out that this error is being raised in the _has function on line 1663 of init .py in pkg-resources but i'm not sure why its being called. I tried to trace it back as far as I can and so far i cant find and connection between pkg-resources and pygame. The exe worked with the previous version, which didn't include text so i tried importing pygame._view but that didn't

PyGame NotImplementedError

混江龙づ霸主 提交于 2021-02-05 11:05:45
问题 I made a pygame application using PyInstaller but for some reason when I open it it raises the NotImplementedError, if found out that this error is being raised in the _has function on line 1663 of init .py in pkg-resources but i'm not sure why its being called. I tried to trace it back as far as I can and so far i cant find and connection between pkg-resources and pygame. The exe worked with the previous version, which didn't include text so i tried importing pygame._view but that didn't