I have built an App based on pyqt5 and Selenium Gecko driver and Created an exe file using pyinstaller. It works like a charm on my system. The same exe doesn't work on other systems who do not have anything installed like selenium, python or pyqt5. Pyinstaller docs says that I can distribute the exe file to anyone but that didn't work in my case. Am I missing anything here. Need more suggestions from experts on the ground who dealt with it. Please help. I didn't see any errors when I ran the app in Command Prompt too.
Related
can we deploy 'easygui' application?
If so, how?
I have done a simple easy GUI application using Python 3.6
Now I want to create a setup file for the same.
I got a nice explanation from zadacka, when I contacted him on Github. A standard way to deploy is setuptools. There are a lot of ways of doing the deployment. Within the python world, setuptools is the successor to distutils, and the wheel packaging system is the successor to the egg.
For converting a .py file to a .exe
You can use any of the below 3 tools.
They have their own website with nice documentation.
py2exe
cx_Freeze
pyinstaller
these are used to generate a .exe file.
We need tools like Windows Installation wizard / Microsoft Installation wizard.
The one which was most suggested is Inno setup it is also a free tool.
I need to deploy my python 3 app as .exe for Windows. I'm working on linux. I have tried PyInstaller, but it seems that I have to run it from the Windows to make valid .exe. I do have access to Windows, but I would like to use it to test that my .exe is working rather than to build it.
Also is it possible to create this exe using GitLab CI?
In general, you could try to use wine in order to use windows tooling on a Linux box.
But I think this is really the wrong approach: the natural deployment option for python ... are python modules. So, instead of wasting (?) your time building one-platform-exe files ... learn how to create proper Python modules, and deploy your app using your own module.
See here for some first reading on python modules on Windows.
I have installed Python 3.4 on my windows 7 64bit system and it runs OK with eclipse. But I am trying to install kivy or pyQT and I get a message that Python 3.4 is not installed on my system. I am totally new to python and all its modules. What can I do to correct this problem? I need a GUI but I think that first I need to make sure that Python is properly install. I hope this questionis not too basic and that I am asking on the right place.
I can't help with PyQT, and possibly this should have been two separate questions. But for Kivy the easiest way to get started is to download the portable package, which includes Python, Kivy, and all the dependencies compiled and ready to go. You can read the instructions for using the portable package here: http://kivy.org/docs/installation/installation-windows.html
If you really want to install Kivy yourself into an existing Python install, you can follow these instructions instead: https://github.com/kivy/kivy/wiki/Using-Kivy-with-an-existing-Python-installation-on-Windows-%2864-or-32-bit%29
Finally, to set up your IDE for use with the Kivy portable package (if necessary): https://github.com/kivy/kivy/wiki/Setting-Up-Kivy-with-various-popular-IDE%27s
Oh, one last caveat: we are working on Python 3 support, and Kivy will run perfectly in Python 3, but packaging is another matter. There are working packaging solutions for Windows apps using Python 3, but if you intend to deploy your app to Android or iOS you currently must use Python 2.
I do most of my work in python but we also have a node.js project that I work on so I was pleased to find that PyCharm supported the Node.js plugin.
After I installed it I was still having significant troubles getting a lot of the core node.js libraries and statements to be recognized by PyCharm. Most notably, PyCharm doesn't recognize the require or module statements.
Any ideas on what I could do to fix this?
Found the answer! In the Javascript tab of your project settings open the Library subtab. In there make sure you have the Node.js Core Modules and Node.js Globals checked as shown here.
Currently i'm working on a project where I need to use Python 3.3 and celery.
I've been following the first steps tutorial, but i keep getting errors due to problems with librarys like _subprocess. Does annyone have some more information on this.
I also tried replacing the _subprocess with _winapi, with more errors as result. I'm open for anny suggestions. anny help on the mather would be appriciated.
ps:
I'm working on a windows machine.
I'm using RabbitMq as broker
celery doesn't yet work perfectly with python3.3 on windows it seems.
I ran the exact same setup on linux fedora and got it to work.
This problem should be fixed in future development of the package so be patient.