pyinstaller

Pyinstaller 3.3.1 & 3.4.0-dev build with apscheduler

。_饼干妹妹 提交于 2020-03-21 11:42:36
问题 Greeting! I'm trying to make a build using PyInstaller. Config: Python 3.6.5 pip 10.0.1 , OS: Ubuntu 18.04 . Using virtualenv (also tried with python -m venv ). My app using an apscheduler , websocket , _thread and it seems like some related modules have import problems. Tried pyinstaller --onefile mymain.spec & pyinstaller --onedir mymain.spec . Problem persists in both cases. Program working without errors if not frozen. here is the error i'm getting if i try to run the generated executable

Adding a data file in Pyinstaller using the onefile option

若如初见. 提交于 2020-03-18 12:14:10
问题 I'm trying to add an image to the one file produced by Pyinstaller. I've read many questions/forums like this one and that one and still it's not working. I know that for one file operation, Pyinstller produce a temp folder that could be reached by sys.MEIPASS . However I don't know where exactly in my script I should add this sys.MEIPASS . Kindly show the following: 1- Where and how sys.MEIPASS should be added? In the python script, or in the spec file? 2- What is the exact command to use? I

Create executable tkinter

岁酱吖の 提交于 2020-03-18 10:31:21
问题 I am trying to create an executable of a code with libraries like Tkinter , Pandas and Pillow . I used the pyinstllaer , cx_freeze and scipy but I get an error or the .exe has a size not according to what you want (ex: 500 mb). What I want to get is an executable to be able to open it in Windows and / or MAC to be used by most users. The code can be something irrelevant for this question, so I need or maybe we need all are understandable tips or tutorials to be able to create an executable,

Create executable tkinter

感情迁移 提交于 2020-03-18 10:28:12
问题 I am trying to create an executable of a code with libraries like Tkinter , Pandas and Pillow . I used the pyinstllaer , cx_freeze and scipy but I get an error or the .exe has a size not according to what you want (ex: 500 mb). What I want to get is an executable to be able to open it in Windows and / or MAC to be used by most users. The code can be something irrelevant for this question, so I need or maybe we need all are understandable tips or tutorials to be able to create an executable,

Create executable tkinter

家住魔仙堡 提交于 2020-03-18 10:27:11
问题 I am trying to create an executable of a code with libraries like Tkinter , Pandas and Pillow . I used the pyinstllaer , cx_freeze and scipy but I get an error or the .exe has a size not according to what you want (ex: 500 mb). What I want to get is an executable to be able to open it in Windows and / or MAC to be used by most users. The code can be something irrelevant for this question, so I need or maybe we need all are understandable tips or tutorials to be able to create an executable,

Python 3.5 create .rpm with pyinstaller generated executable

泪湿孤枕 提交于 2020-03-18 04:55:29
问题 I've got a build generated with a pyinstaller. I need to create .rpm package which will put the executable into the /usr/bin/ and create a systemd service which will run that executable. I found this https://docs.python.org/3/distutils/builtdist.html and https://docs.python.org/2.0/dist/creating-rpms.html However it doesn't give me a full picture. Is it possible to make it? What toolset do i need to use? (Basically, how to make it). If possible - sample code 回答1: First of all, forget about

Use pyunpack inside an executable file made with pyinstaller in combination with try except

大兔子大兔子 提交于 2020-03-16 08:11:05
问题 The bounty expires in 6 days . Answers to this question are eligible for a +50 reputation bounty. Matt Dnv wants to draw more attention to this question: I really need to have pyunpack work inside an executable for all cases I have a strange behaviour for pyunpack, a package for unpacking, inside an executable. I want to do the following thing: I have a .7z type of file whose ending is not in .7z but in .sent. First I try to unzip it the direct way, which leads to an expected error that is

Use pyunpack inside an executable file made with pyinstaller in combination with try except

偶尔善良 提交于 2020-03-16 08:10:39
问题 The bounty expires in 6 days . Answers to this question are eligible for a +50 reputation bounty. Matt Dnv wants to draw more attention to this question: I really need to have pyunpack work inside an executable for all cases I have a strange behaviour for pyunpack, a package for unpacking, inside an executable. I want to do the following thing: I have a .7z type of file whose ending is not in .7z but in .sent. First I try to unzip it the direct way, which leads to an expected error that is

Distributing python application tutorials

安稳与你 提交于 2020-03-05 14:14:38
问题 Hi as a python newbie I have written a small python application that can convert an excel worksheet into a sqlite database table. Its not a terribly complex application but it does make use of external modules/package like xlrd (http://pypi.python.org/pypi/xlrd) which I had to download and install when writing my app. Now that is all done I would like to distribute it amongst my friends, all windows users, while they have python on their machines, they may or may not have the xlrd modules. I

Can't use PyInstaller

北城余情 提交于 2020-03-05 04:01:42
问题 I've installed PyInstaller through pip on Python 3.5.2 but I can't get it to work. After running the command prompt in the folder where the .py file is and typing in 'PyInstaller practicaGUI.py' I get this error. Is there a way to solve this? If not, what are the alternatives? EDIT: My pyinstaller-script.py looks like this 回答1: Try opening pyinstall-script.py from your error message in a text editor (like Notepad++) and convert it to UTF-8 explicitly. The message says the encoding is wrong.