I'm trying to install wxPython 2.8 unicode version, to be able to use robotframework-ride.
So far the installer downloaded from the site failed with an error saying "There was no software to install"
And using Brew installs the 3.0 version, that is not compatible with ride.
I would appreciate some help on this issue, I'm a new Mac user (just got given one at the office, and have to use it for my project) , and this is the only thing so far that I haven't been able to solve at all.
The version I need to install is: wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7
The installer doesn't seem to work at all with this version of OSX.
Thank you in advace.
Actually wxPython 3.0 can work with RIDE. here are my pip list:
decorator (4.0.6)
docutils (0.12)
ecdsa (0.13)
Flask (0.10.1)
gunicorn (19.0.0)
itsdangerous (0.24)
Jinja2 (2.7.3)
MarkupSafe (0.23)
paramiko (1.16.0)
pip (7.1.2)
pycrypto (2.6.1)
robotframework (3.0)
robotframework-databaselibrary (0.6)
robotframework-rammbock (0.4.0.1)
robotframework-requests (0.4.0)
robotframework-ride (1.5.1)
robotframework-selenium2library (1.7.4)
robotframework-sshlibrary (2.1.2)
selenium (2.48.0)
setuptools (18.7.1)
vboxapi (1.0)
Werkzeug (0.9.6)
wheel (0.26.0)
wxPython (3.0.2.0)
wxPython-common (3.0.2.0)
Pip cannot find wxPython to install. use homebrew instead:
$homebrew install wxPython (will install 3.0.2.0)
$pip install robotframework (will install 3.0)
$pip install robotframework-ride (will install 1.5.1)
Allow 3.0 check to '~/homebrew/lib/python2.7/site-packages/robotide/__init__.py':
if sys.platform == 'darwin':
supported_versions.append("2.9")
supported_versions.append("3.0")
Remove ~/.robotframework before start ride.py to void RIDE crashing when loading last-opened folder. Make a short shell script ~/homebrew/bin/ride:
#!/bin/sh
rm -rf ~/.robotframework
~/homebrew/bin/ride.py
and chmod +x ~/homebrew/bin/ride.
From shell enter 'ride', all should work well -- just reopen your test suite each time.
I ran into the same error:
$ sudo installer -pkg /Volumes/wxPython2.9-osx-2.9.5.0-cocoa-py2.7/wxPython2.9-osx-cocoa-py2.7.pkg/ -target /
installer: Package name is wxPython2.9-osx-cocoa-py2.7
installer: Installing at base path /
2015-10-19 11:27:48.417 installer[875:22541] Package /Volumes/wxPython2.9-osx-2.9.5.0-cocoa-py2.7/wxPython2.9-osx-cocoa-py2.7.pkg uses a deprecated pre-10.2 format (or uses a newer format but is invalid).
installer: The install failed (The Installer could not install the software because there was no software found to install.)
As you may know, on OS X, RIDE supports both wxPython 2.8 and 2.9, and that's why I'm using v2.9 here:
try:
import wxversion
from wxversion import VersionError
if sys.platform == 'darwin': # CAN NOT IMPORT IS_MAC AS THERE IS A wx IMPORT
wxversion.select(['2.8', '2.9'])
else:
wxversion.select('2.8')
except ImportError:
print "wxPython not found."
Although wxmac formula can be used to install wxPython 2.9.5.0, but on OS X 10.11 El Capitan, you'll encounter the following error reported in #16329 while building wxWidgets.
So, we have to build it from (modified) source code:
Install Xcode, and download wxPython-src-2.9.5.0.tar.bz2.
Extract the tarball and replace #include <WebKit/WebKit.h> (in src/osx/webview_webkit.mm) with #include <WebKit/WebKitLegacy.h>.
Then follow the instructions described in wxmac formula to build and install wxPython:
$ cd wxPython-src-2.9.5.0
$ PREFIX=/usr/local
$ ./configure --prefix=$PREFIX --enable-shared --enable-monolithic --enable-unicode --enable-std_string --enable-display --with-opengl --with-osx_cocoa --with-libjpeg --with-libtiff --with-libpng --with-zlib --enable-dnd --enable-clipboard --enable-webkit --enable-svg --with-expat --with-macosx-version-min=10.11 --enable-universal_binary=i386,x86_64 --disable-precomp-headers
$ sudo make install
$ cd wxPython
$ sudo python setup.py build_ext WXPORT=osx_cocoa WX_CONFIG=$PREFIX/bin/wx-config UNICODE=1 INSTALL_MULTIVERSION=1 BUILD_GLCANVAS=1 BUILD_GIZMOS=1 BUILD_STC=1
$ sudo python setup.py install WXPORT=osx_cocoa WX_CONFIG=$PREFIX/bin/wx-config UNICODE=1 INSTALL_MULTIVERSION=1 BUILD_GLCANVAS=1 BUILD_GIZMOS=1 BUILD_STC=1
To verify the installation:
$ python
>>> import wx
>>>
Note that this is a 64-bit setup, you don't have to run RIDE in 32-bit mode.
Related
when I'm typing the command
brew install pygobject3 --with-python#2 gtk+3
I'm always getting the error message
invalid option --with-python#2
I'm getting the same error message when I want to run the gtk+3 under mac os 10.15
Namespace Gtk not available
Maybe the Version of 10.15 of MacOS the problem....
gtk+3 version 3.24.12 and pygobject3 Version 3.34.0 are installed.
Installation of homebrew for MacOS
gtk+3 version 3.24.12 and pygobject3 Version 3.34.0 are installed.
Python3.7 is installed
File "...anaconda3/envs/python37/lib/python3.7/site-packages/gi/__init__.py", line 129, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available
I would like to run the program DemonEditor on MacOS 10.15 (Catalina)
to make some settings of my engima2 satellite receiver, for this I need the requirements "GTK+ >= 3.16 with PyGObject bindings".
Maybe some of the experts can help me.
Thanks very much
Since I am the author of this program, I am forced to report that since the program is designed for Linux, it will not work on MacOS without minor changes to the program itself. But still it’s possible.
DemonEditor
Тo resolve dependencies, it is enough to install as follows:
brew install gtk+3 pygobject3 adwaita-icon-theme
pip3 install requests
Upd.
I created an experimental brunch and added small changes to the program for the possibility of testing the launch in the MacOS. Perhaps not all the functionality will work (I have not tested it), but the program should start.
Gud luck!
STRIKE. It works, I can start the DemonEditor-GUI under 10.15. I have remove all packages via the
brew remove --force $(brew list)
installed the three packages again, via
brew install python3 gtk+3 pygobject3 adwaita-icon-theme
BUT. The most important step was to add the "Installation folder" of the brew packages to my python path but execute the comand
export PYTHONPATH=/usr/local/lib/python3.7/site-packages.
My assumption is, that due to fact, that I have installed an own conda-environment for python37, the site-packages have to be added to the path.
Big thanks for the help.
On my test system, I did not set any paths or environment variables! Just installed python 3 with the command:
brew install python3
Then I installed the dependencies as described above.Then I downloaded the archive from here, and in the unpacked folder of the program I simply gave the command:
./start.py
Below is the output of the commands python3 --version and brew list
Compare with your list, perhaps this will somehow help identify the missing components.
python3 --version
Python 3.7.4
brew list
adwaita-icon-theme libepoxy
atk libffi
cairo libpng
fontconfig librsvg
freetype libtiff
fribidi lzo
gdbm openssl#1.1
gdk-pixbuf pango
gettext pcre
glib pixman
gobject-introspection pkg-config
graphite2 py2cairo
gsettings-desktop-schemas py3cairo
gtk+3 pygobject3
harfbuzz python
hicolor-icon-theme python#2
icu4c readline
jpeg sqlite
libcroco xz
Upd. For the experiment, I removed all my packages with the command:
brew remove --force $(brew list)
Then again installed by commands as described above
brew install python3 gtk+3 pygobject3 adwaita-icon-theme
Working!
I'm running OSX 10.11 and have python 2.7.10 installed on my computer. I want to install pygame1.9.2 for the said environment (don't want to install it for python3 which is installed on my computer as well).
When I try to install this one - http://www.pygame.org/ftp/pygame-1.9.2pre-py2.7-macosx10.7.mpkg.zip - it says, "This package is incompatible with this version of OS X and may fail to install." Even if I continue, installation fails somehow.
I tried "pip install pygame" then it says
"Collecting pygame Could not find a version that satisfies the
requirement pygame (from versions: ) No matching distribution found
for pygame. "
How do I install it?
(for future reference) After spending many hours I found the following command to be working!
sudo pip install --user git+https://github.com/pygame/pygame/
It's not 1.9.2 but can run what I wanted with python 2.7.10
>>> pygame.__version__
'2.0.0.dev0'
I tried to install autokeras on aws ec2 (p2.xlarge) with the environment python 3.6 & tensorflow. I get following error after "pip install autokeras":
tensorflow 1.10.0 has requirement numpy<=1.14.5,>=1.13.3, but you'll have numpy 1.15.4 which is incompatible.
Installing collected packages: imageio, autokeras
Found existing installation: imageio 2.3.0
Cannot uninstall 'imageio'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
I uninstalled numpy 1.15.4 and installed numpy 1.14.5. With "conda list", I can see the numpy has the correct version.
But after "pip install autokeras" I get the same error and numpy 1.15.4 is still there.
Has anyone successfully installed autokeras on aws ec2? What shall I do to install autokeras correctly?
(Maybe the 'imageio' is the next problem?)
Thank you!
I think you need tensorflow 1.14. Here my notes for AutoKeras installation:
Autokeras Installation Notes in the Deep Learning AMI:
We launched a new deep learning AMI with ubuntu.
The deep learning AMI didn't worked using the "tensorflow + keras + py3.6" environment (so no need for a DL AMI probably, you can save space on disk using a normal clean AMI), so we managed o install autokeras doing the following:
Create a new environment with Anaconda: $ conda create -n autokeras python=3.6.
1.1. Remember that only python 3.6 is working with autokeras
Activate virtual env: It didn't work $ conda activate autokeras, but it works using $ source activate autokeras.
installation of all the packages as required by pyimagesearch.
3.1. A new problem arised here, which, long story short, was solved using the next post (note that I chenged the order, since urllib3 needs jsonschema to be installed first):
$ pip uninstall urllib3```
$ pip uninstall jsonschema
$ pip install jsonschema==2.6.0
$ pip install urllib3==1.24.1
3.2. Finally I was able to install all 3 packages:
$ pip install tensorflow # or tensorflow-gpu
$ pip install keras
$ pip install autokeras
3.3. Autokeras worked fine at this point, but it raised a warning:
>>> import autokeras
Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex
So I just went to the webpage and followed the installation steps. Now it works without warnings (so far):
$ git clone https://github.com/NVIDIA/apex
$ cd apex
$ pip install -v --no-cache-dir --global-option="--pyprof" --global-option="--cpp_ext" --global-option="--cuda_ext" ./
I am trying to install pyenchant on Mac OS X Yosemite. It works fine on linux machines but not in mac, I am having the following error:
ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI.
This is how I installed the package:
pip install pyenchant
and next, I import it in this way:
import enchant
I am using Python 3.4.
Enchant is a C library, and pyenchant provides Python bindings to that library.
For your code to work, you need to install Enchant as well.
If you're using homebrew, you can use:
>>brew install enchant
After installing Enchant, you can then install Pyenchant:
>>pip install pyenchant
I hope this helps.
Also, make sure your Xcode is updated. If it is not updated, you will get an error when running the brew installer:
configure: error: cannot run C compiled programs.
I'm having serious difficulty installing Scipy with pip on Mountain Lion.
I've tried:
sudo pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev
As suggested in various places on the web.
This leads to errors like:
ld: library not found for -lgcc
lipo: can't figure out the architecture type of: /var/tmp//ccC2HLVs.out
and several warnings (I assume not serious) before the errors.
Does anybody have any suggestions?
Scipy is also available now via a homebrew tap. If you have homebrew installed:
brew tap samueljohn/python
brew install scipy
See more info here: homebrew-python
Pip has difficulties with scipy on OS X in general. It is not trivial to install from the sources, so I advise against it. In OS X you have a few better options:
Scipy superpack, a bunch of precompiled binaries
Enthought Canopy (free or another) has already everything you'll need (numpy, scipy, matplotlib, etc.)
Anaconda, a free scientific python distribution with probably all the packages you'll ever need.
MacPorts, a comprehensive and flexible package manager that allows you to install and maintain a python distribution
Homebrew, another popular package manager for OS X
Here is what worked for me for pip installing matplotlib and scipy inside a virtual environment (Mac OS X 10.9.2 Mavericks):
# See George's answer above
brew update
brew upgrade
brew install gfortran
# See http://www.scipy.org/scipylib/building/macosx.html (the link Nathan Gould posted above)
export CXX=g++-5.1
export CC=gcc-5.1
export FFLAGS=-ff2c
sudo ln -s /usr/bin/gcc /usr/bin/gcc-5.1
sudo ln -s /usr/bin/g++ /usr/bin/g++-5.1
pip install matplotlib
pip install scipy
matplot lib installed quickly, but scipy took a long time.
Just to add to what #Anton I. Sipos said. I had the Enthought package installed but had issues with upgrading it, so I decided to go with a clean install using Homebrew. Unfortunately just performing the tap and install didn't work well for me. So on searching a bit I found an issue on GitHub that samualjohn addressed and worked for me:
brew remove python
rm -rf /Library/Python/2.7/site-packages # it's save to delete this!
brew install python
pip install nose
brew install numpy
brew install scipy
The problem was clearly conflicts in the site-packages that the Enthought uninstall instructions did not cover.
NOTE: I had to install matplotlib with pip.
I had similar issues installing scipy on OSX 10.9 Mavericks as well. What solved it for me is the following:
sudo pip list
was showing numpy, thus I did:
sudo pip install --upgrade numpy
Afterwards
brew list
was showing gfortran. I made sure I had the latest version by
brew update
brew upgrade
but
sudo pip install scipy
was failing with a weird fortran error.
Thus I uninstalled it and reinstalled it
sudo brew install gfortran
sudo brew uninstall gfortran
and to my great surprise
sudo pip install scipy
worked after that.
I recently also had trouble getting scipy to install on a virtualenv. My problem was that gfortran was not seen properly. I used macports sudo port install gcc48 and created a symlink to just gfortran by:
sudo ln -s /opt/local/bin/gfortran-mp-4.8 /opt/local/bin/gfortran
After that, pip install scipy worked without any errors on my virtualenv.
Installing scipy on Mac OS X with pip is possible! You will need the right C and Fortran compilers on your system to set up scipy. This page should help you:
http://www.scipy.org/scipylib/building/macosx.html
Once you have done that, you should be able to install with pip install scipy.
As an additional troubleshooting note, you might need to create a symlink to your compiler so that the setup process can find it. A previous poster #biophetik gave an example of how to do this.
Also, I already had numpy installed in my virtual environment when I installed scipy. I'm not positive whether/how one depends on the other.
On Mavericks the following works (might also work on other versions):
If you haven't already, install pip
sudo easy_install pip
Then install/update scipy
sudo pip install scipy -U
For some reason pip installs scipy to
/Library/Python/2.7/site-packages/
and does not remove the older version in
/System/Library/Frameworks/Python.framework/Versions/2.7//Extras/lib/python/scipy/
So just remove the old version and it works. Print the version number:
python -c "import scipy; print scipy.__version__"
I tryed everything: pip, macports,easy_install,... with Mac OS El Captain. The only thing that worked for me was brew:
$ brew install scipy
After that, it will ask you to follow the instructions bellow:
$ brew link --overwrite numpy
$ mkdir -p /Users/adrieljr/Library/Python/2.7/lib/python/site-packages
$ echo 'import sys; sys.path.insert(1, "/usr/local/lib/python2.7/site-packages")' >> /Users/adrieljr/Library/Python/2.7/lib/python/site-packages/homebrew.pth