Changes between Version 13 and Version 14 of VirtualEnv


Ignore:
Timestamp:
Aug 24, 2010, 5:09:26 PM (16 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VirtualEnv

    v13 v14  
    199199
    200200
    201 Now for something adventurous, installing the [http://packages.python.org/spyder/ spyder] python-IDE.  (In the example below, sip and PyQt are installed with sudo privileges only because Chimera was installed with those privileges.  If you install Chimera without sudo privileges, try to run {{{make install}}} commands instead of {{{sudo make install}}}.)
     201Now for something adventurous, installing the [http://packages.python.org/spyder/ spyder] python-IDE.  First, we need to install some dependencies, sip and [http://www.riverbankcomputing.co.uk/software/pyqt/intro !PyQt].  (In the example below, sip and !PyQt are installed with sudo privileges only because Chimera was installed with those privileges.  If you install Chimera without sudo privileges, try to run {{{make install}}} commands instead of {{{sudo make install}}}.)
     202
     203First, this example is based on an Ubuntu linux system that had the following packages installed:
     204{{{
     205$ dpkg -l | grep libqt4
     206ii  libqt4-assistant                     4:4.6.2-0ubuntu5                                Qt 4 assistant module
     207ii  libqt4-dbus                          4:4.6.2-0ubuntu5                                Qt 4 D-Bus module
     208ii  libqt4-designer                      4:4.6.2-0ubuntu5                                Qt 4 designer module
     209ii  libqt4-dev                           4:4.6.2-0ubuntu5                                Qt 4 development files
     210ii  libqt4-help                          4:4.6.2-0ubuntu5                                Qt 4 help module
     211ii  libqt4-multimedia                    4:4.6.2-0ubuntu5                                Qt 4 Multimedia module
     212ii  libqt4-network                       4:4.6.2-0ubuntu5                                Qt 4 network module
     213ii  libqt4-opengl                        4:4.6.2-0ubuntu5                                Qt 4 OpenGL module
     214ii  libqt4-opengl-dev                    4:4.6.2-0ubuntu5                                Qt 4 OpenGL library development files
     215ii  libqt4-qt3support                    4:4.6.2-0ubuntu5                                Qt 3 compatibility library for Qt 4
     216ii  libqt4-script                        4:4.6.2-0ubuntu5                                Qt 4 script module
     217ii  libqt4-scripttools                   4:4.6.2-0ubuntu5                                Qt 4 script tools module
     218ii  libqt4-sql                           4:4.6.2-0ubuntu5                                Qt 4 SQL module
     219ii  libqt4-sql-mysql                     4:4.6.2-0ubuntu5                                Qt 4 MySQL database driver
     220ii  libqt4-sql-sqlite                    4:4.6.2-0ubuntu5                                Qt 4 SQLite 3 database driver
     221ii  libqt4-svg                           4:4.6.2-0ubuntu5                                Qt 4 SVG module
     222ii  libqt4-test                          4:4.6.2-0ubuntu5                                Qt 4 test module
     223ii  libqt4-webkit                        4:4.6.2-0ubuntu5                                Qt 4 WebKit module
     224ii  libqt4-xml                           4:4.6.2-0ubuntu5                                Qt 4 XML module
     225ii  libqt4-xmlpatterns                   4:4.6.2-0ubuntu5                                Qt 4 XML patterns module
     226$ dpkg -l | grep python-qt
     227ii  python-qt4                           4.7.2-0ubuntu1                                  Python bindings for Qt4
     228ii  python-qt4-dev                       4.7.2-0ubuntu1                                  Development files for PyQt4
     229ii  python-qt4-phonon                    4.7.2-0ubuntu1                                  Python bindings for Phonon
     230$ dpkg -l | grep qscintilla
     231ii  libqscintilla2-5                     2.4.3-0ubuntu1                                  The Qt4 port of the Scintilla source code editing widget
     232ii  libqscintilla2-designer              2.4.3-0ubuntu1                                  Qt4 Designer plugin for QScintilla 2
     233ii  libqscintilla2-dev                   2.4.3-0ubuntu1                                  The Scintilla source code editing widget for Qt4, development fi
     234ii  libqscintilla2-doc                   2.4.3-0ubuntu1                                  API documentation for QScintilla 2
     235ii  python-qscintilla2                   2.4.3-0ubuntu1                                  Python bindings for QScintilla 2
     236}}}
     237
     238OK, those packages were installed on the system, but some of them were not directly accessible to the Chimera python build.  In this case, a solution was to download and build PyQt4 within the virtual environment, to satisfy dependencies for spyder.  (I found it difficult to get the right download version for QScintilla2 to match the libraries installed on my Ubuntu system, but google searches eventually came up with an option.)
    202239
    203240{{{
     
    217254(chimera-virtualenv)$ make
    218255(chimera-virtualenv)$ sudo make install
    219 }}}
    220 
    221 That should satisfy the dependencies for [http://packages.python.org/spyder/ spyder].  So, try to install spyder, like so:
    222 {{{
    223 $ source ~/src/chimera-virtualenv/bin/activate
     256(chimera-virtualenv)$ wget http://212.219.56.133/sites/www.ibiblio.org/gentoo/distfiles/QScintilla-gpl-2.4.3.tar.gz
     257(chimera-virtualenv)$ tar zxvf QScintilla-gpl-2.4.3.tar.gz
     258(chimera-virtualenv)$ cd QScintilla-gpl-2.4.3
     259(chimera-virtualenv)$ cd Python
     260(chimera-virtualenv)$ python configure.py
     261(chimera-virtualenv)$ make
     262(chimera-virtualenv)$ sudo make install
     263}}}
     264
     265That should satisfy the [http://packages.python.org/spyder/installation.html#dependencies dependencies for spyder].  Now try to install spyder using pip.
     266{{{
    224267(chimera-virtualenv)$ pip install spyder
    225268}}}
     
    239282(chimera-virtualenv)$ spyder
    240283}}}
     284
     285If that fails, try the following with sudo privileges:
     286
     287{{{
     288sudo -i
     289source ~/src/chimera-virtualenv/bin/activate
     290export CHIMERA=/opt/UCSF/Chimera64-2010-08-05
     291export PATH=$PATH:$CHIMERA/bin/
     292export LD_LIBRARY_PATH=$CHIMERA/lib
     293export LD_PRELOAD=libotf.so
     294export TCL_LIBRARY="$CHIMERA/lib/tcl8.6"
     295export TCLLIBPATH="{$CHIMERA/lib}"
     296unset TK_LIBRARY
     297unset TIX_LIBRARY
     298unset PYTHONHOME
     299unset PYTHONPATH
     300spyder
     301}}}