What is the best way to automatically install wxPython on Linux?
I have created a “pip” install for my application, but pip fails for wxPython.
This causes frustration from users (especially new ones) trying to install and run the app.
I can add the following to the install instructions: “sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n”, but that is hardly automatic, and is more “science project” for new users.
Should the pip install have a post-process to check for and run the “apt-get” command?
What is the best way to automatically install wxPython on Linux?
I have created a “pip” install for my application, but pip fails for wxPython.
This causes frustration from users (especially new ones) trying to install and run the app.
I can add the following to the install instructions: “sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n”, but that is hardly automatic, and is more “science project” for new users.
Should the pip install have a post-process to check for and run the “apt-get” command?
What would that code look like? Recommendations?
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
Does pyinstaller require the install to be run on the platform, or can it make a binary for all cpu/os’s from one computer? If not, I do not have access to all the cpus I would need.
Pip is the standard Python install method. It was specifically designed to facilitate a python installation on any cpu/os .
Why doesn’t wxPython just work with pip?
···
On Sunday, September 8, 2013 11:09:50 PM UTC-4, Igor Korot wrote:
Hi,
Why not make a binary with pyInstaller and distribute them?
What is the best way to automatically install wxPython on Linux?
I have created a “pip” install for my application, but pip fails for wxPython.
This causes frustration from users (especially new ones) trying to install and run the app.
I can add the following to the install instructions: “sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n”, but that is hardly automatic, and is more “science project” for new users.
Should the pip install have a post-process to check for and run the “apt-get” command?
What would that code look like? Recommendations?
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
Does pyinstaller require the install to be run on the platform, or can
it make a binary for all cpu/os's from one computer? If not, I do
not have access to all the cpus I would need.
It cannot do that. There is no such thing as a "universal executable".
Pip is the standard Python install method.
It is ONE of the standard Python install methods. It works very well
for packages that are to be used by other Python applications. It was
not necessarily designed to distribute whole applications.
It was specifically designed to facilitate a python installation on
any cpu/os .
Why doesn't wxPython just work with pip?
Because wxPython needs binaries. Specifically, the binaries for
wxWidgets. Each binary only works on one CPU and system.
···
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
What is the best way to automatically install wxPython on Linux?
I have created a "pip" install for my application
<https://sites.google.com/site/crossmgrsoftware/>, but pip fails for
wxPython.
This causes frustration from users (especially new ones) trying to
install and run the app.
I can add the following to the install instructions: "sudo apt-get
install python-wxgtk2.8 python-wxtools wx2.8-i18n", but that is hardly
automatic, and is more "science project" for new users.
But it really is the best way to do it as the packages in the distro's repository will have been optimized for that specific linux, and they may also have patched it slightly to conform to the distro's standards, etc. Also, to use pip your users would need to have all the C++ development tools, dependent libraries, the libraries' development packages and so on installed and they would have to use apt-get or whatever tool that the distro uses to get those other packages installed. (Pip always builds extension modules, it does not install prebuilt binaries.) Using the distro's package tool to install prebuilt wxPython packages is *much* easier.
BTW, Phoenix is buildable using pip as long as all the prerequisites and build tools are installed. I have no plans nor desire for doing the same with Classic.
Does pyinstaller require the install to be run on the platform, or can it make a binary for all cpu/os’s from one computer?
Not all, but a defined subset, which may be OK for you.
Pip is the standard Python install method.
Well, pip is designed to install python packages, but not any of their non-python dependencies.
apt-get, on the other hand, is designed to install essentially anything. If you support Linux, there is nothing wrong with expecting your users to be able to use their system package manager.
You could build a call to apt-get into your setup.py, or, if you want to control the build more, maybe try a gattai recipe–it can call apr-get for some parts:
What is the best way to automatically install wxPython on Linux?
I have created a “pip” install for my application, but pip fails for wxPython.
This causes frustration from users (especially new ones) trying to install and run the app.
I can add the following to the install instructions: “sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n”, but that is hardly automatic, and is more “science project” for new users.
Should the pip install have a post-process to check for and run the “apt-get” command?
What would that code look like? Recommendations?
–
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
Thanks for the suggestions. I tried pyinstaller, and it was easier to use than I expected. It works fine. However, the compressed tar file is 20meg, vs 3meg for the pip.
I don’t want to give up on the pip as it much more portable.
I removed wxPython as a dependency from the pip, and that solved the install error.
The user enters the following, and it completes successfully:
He then ran the CrossMgr pip and it completed without error. However, the application does not run - he gets a:
File “/usr/local/bin/CrossMgr”, line 61, in
from CrossMgr import MainWin
File “/usr/local/lib/python2.7/dist-packages/CrossMgr/MainWin.py”, line 21, in
from wx.lib.wordwrap import wordwrap
ImportError: No module named wordwrap
I know this should work, but it doesn’t. Is there some sort of path problem or a known issue?
Sorry to be a pest - I really want to get this to work.
···
On Sunday, September 8, 2013 9:47:27 PM UTC-4, Edward Sitarski wrote:
What is the best way to automatically install wxPython on Linux?
I have created a “pip” install for my application, but pip fails for wxPython.
This causes frustration from users (especially new ones) trying to install and run the app.
I can add the following to the install instructions: “sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n”, but that is hardly automatic, and is more “science project” for new users.
Should the pip install have a post-process to check for and run the “apt-get” command?
The wxPython dependency in pip fails if wxPython is not installed.
This scares away new users from at the start (not everyone is a programmer or Linux expert).
With regards to there being more than one python on that machine, that may be correct, but unfortunately, I can’t debug the configuration for every potential customer that wants to run the software.
I have been going back-and-forth with one poor user for 2 weeks - who knows how many other people tried and gave up?
It is a reasonable expectation that the installation should be straight foward, and the software should work afterwards.
It looks like the binary installer is the only reliable option - much as I wish there was a more platform independent approach.
The next step will be to establish a network of Mac and 64-bit Linux users to help as I don’t have those machines.
···
On Wednesday, September 11, 2013 12:54:20 AM UTC-4, Chris Barker - NOAA Federal wrote: