pyinstaller

Python files to an MSI Windows installer

风流意气都作罢 提交于 2020-05-29 04:07:29
问题 So I can use PyInstaller to make a one-file executable and to make a standard executable among other files in a folder. But how do I turn Python files into an MSI installer so that it's fool-proof where it makes a shortcut on the desktop? (For distribution so that it isn't required for the user to have Python installed) (When I say Python files to an MSI installer I mean the regular PyInstaller to folder output but with a way of getting a shortcut to the executable onto the desktop very

On Ubuntu an executable created with Pyinstaller doesn't run

一笑奈何 提交于 2020-05-28 07:26:06
问题 I am on ubuntu 16.04. I am trying to make an executable from my python script ( fez.py ) using pyinstaller using pyinstaller --onefile fez.py . The executable gets built without any error. I get the two folders dist and build with the .exe file in dist. I get the fez.spec file too. But when I try to run the executable nothing seems to happen. My question is: Is there a problem with the pyinstaller process to create the executable that doesn't get displayed as an error OR is there a problem

On Ubuntu an executable created with Pyinstaller doesn't run

╄→尐↘猪︶ㄣ 提交于 2020-05-28 07:25:46
问题 I am on ubuntu 16.04. I am trying to make an executable from my python script ( fez.py ) using pyinstaller using pyinstaller --onefile fez.py . The executable gets built without any error. I get the two folders dist and build with the .exe file in dist. I get the fez.spec file too. But when I try to run the executable nothing seems to happen. My question is: Is there a problem with the pyinstaller process to create the executable that doesn't get displayed as an error OR is there a problem

Build Multiple .py files into a single executable file using pyinstaller

回眸只為那壹抹淺笑 提交于 2020-05-25 04:35:06
问题 I have made a small pyqt application of 5 and 6 .py files.Now I want to build them and compiled them in a single main file.Mean I have to operate them from one main window exe. My .py files are connected with each other successfully.I have used pyinstaller to make the executable file, the problem is I have build each .py file into its own exe file.But I want to make a single exe file through which whole.py files operate.How to build all .py files into a single exe file.I have searched a lot

How to add static(html, css, js) files in pyinstaller to create standalone exe file?

ⅰ亾dé卋堺 提交于 2020-05-23 06:55:10
问题 I'm using QtWebEngineWidgets , QtWebChannel to create PyQt5 application, which uses HTML, CSS, JavaScript. It's working fine, when we run in general way i.e., python main.py Importing HTML as below, current_dir = os.path.dirname(os.path.realpath(__file__)) filename = os.path.join(current_dir, "index.html") url = QtCore.QUrl.fromLocalFile(filename) Importing CSS, JavaScript files as below, # in index.html <link rel="stylesheet" href="styles.css"> <script type="text/javascript" src="jquery.js">

PyInstaller and FastAPI (maximum recursion depth exceeded)

最后都变了- 提交于 2020-05-17 08:45:54
问题 I have a python service that uses fastapi as a web interface. I need to make an executable file and hence I am using PyInstaller . I keep getting the following error: File "..../miniconda3/lib/python3.7/site-packages/PyInstaller/lib/modulegraph/modulegraph.py", line 2912, in _load_package self._load_module(fqname, fp, buf, stuff) File "..../miniconda3/lib/python3.7/site-packages/PyInstaller/lib/modulegraph/modulegraph.py", line 2093, in _load_module m = self._load_package(fqname, pathname,

Not able to run Pyinstaller executable on Linux

两盒软妹~` 提交于 2020-05-15 05:09:13
问题 I am trying out pyinstaller for the first time. I created a file named hello.py with just one line of code: print "hello" I used the following command to make a binary: pyinstaller hello.py The process completed successfully and a binary was created at dist/hello . I am not able to run this binary file. When I tried to run it from the terminal, I got, bash: .: hello: cannot execute binary file I tried to double click it from nautilus but nothing is happening. How can I run this binary file? I

Not able to run Pyinstaller executable on Linux

倾然丶 夕夏残阳落幕 提交于 2020-05-15 05:03:19
问题 I am trying out pyinstaller for the first time. I created a file named hello.py with just one line of code: print "hello" I used the following command to make a binary: pyinstaller hello.py The process completed successfully and a binary was created at dist/hello . I am not able to run this binary file. When I tried to run it from the terminal, I got, bash: .: hello: cannot execute binary file I tried to double click it from nautilus but nothing is happening. How can I run this binary file? I

Branca Python module is unable to find 2 essential json files when running an executable that uses folium

强颜欢笑 提交于 2020-05-14 07:14:01
问题 There is a chance this is still a problem and the Pyinstaller and/or Folium people have no interest in fixing it, but I'll post it again here in case someone out there has discovered a workaround. I have a program that creates maps, geocodes etc and recently added the folium package to create some interactive maps in html format. I always compile my code using pyinstaller so that others at my company can just use the executable rather than running the python code. If I run my code in an IDE,

Branca Python module is unable to find 2 essential json files when running an executable that uses folium

六月ゝ 毕业季﹏ 提交于 2020-05-14 07:09:10
问题 There is a chance this is still a problem and the Pyinstaller and/or Folium people have no interest in fixing it, but I'll post it again here in case someone out there has discovered a workaround. I have a program that creates maps, geocodes etc and recently added the folium package to create some interactive maps in html format. I always compile my code using pyinstaller so that others at my company can just use the executable rather than running the python code. If I run my code in an IDE,