rogerlew / pyvttbl

Automatically exported from code.google.com/p/pyvttbl
10 stars 8 forks source link

my install experience to get it running - could need some notes in the install info #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Put bz2 python 2.7 in /opt/downloads
2. bunzip2 *bz2
3. cd Py*
4. ./configure --prefix=/opt/plonepython27
5. make install
6. download setuptools in the bin of python: wget 
http://peak.telecommunity.com/dist/ez_setup.py
7. ./python2.7 ez_setup.py
8. Now we can install with easy_install: ./easy_install pyvttbl 
9. apt-get install libxtst-dev (more might be needed - this is just my ubuntu 
system)
9. ./easy_install numpy
10. ./easy_install scipy
11. ./easy_install matplotlib    (this is the pylab error fix)
12. Now you can use csv files you can download together with the code: hg clone 
https://code.google.com/p/pyvttbl/ 
13. And do examples from here: http://code.google.com/p/pyvttbl/

Original issue reported on code.google.com by nielsste...@gmail.com on 12 Feb 2012 at 11:40

GoogleCodeExporter commented 9 years ago
Still seeing "No module named pylab" when doing "from pyvttbl import DataFrame" 
in the Quick Start Guide. Would be so nice to add steps to verify all the 
prerequisites are working properly.

While installing scipy on a Mac OS X 10.7.3 I'm getting:

(virtualenv-2.7.2)$ easy_install scipy

Searching for scipy
Reading http://pypi.python.org/simple/scipy/
Reading http://www.scipy.org
Reading 
http://sourceforge.net/project/showfiles.php?group_id=27747&package_id=19531
Reading http://new.scipy.org/Wiki/Download
Best match: scipy 0.10.1
Downloading 
http://pypi.python.org/packages/source/s/scipy/scipy-0.10.1.zip#md5=4156cc1b765e
b186de9518a94b6c3518
Processing scipy-0.10.1.zip
Running scipy-0.10.1/setup.py -q bdist_egg --dist-dir 
/var/folders/q8/nkdr6ff17c55nn2p82ygbjr40000gn/T/easy_install-kMWo32/scipy-0.10.
1/egg-dist-tmp-RwN42W
Running from scipy source directory.
non-existing path in 
'/private/var/folders/q8/nkdr6ff17c55nn2p82ygbjr40000gn/T/easy_install-kMWo32/sc
ipy-0.10.1/scipy/io': 'docs'
/Users/yuri/SnapLogic/virtualenv-2.7.2/lib/python2.7/site-packages/numpy-1.6.2-p
y2.7-macosx-10.6-intel.egg/numpy/distutils/system_info.py:470: UserWarning: 
    UMFPACK sparse solver (http://www.cise.ufl.edu/research/sparse/umfpack/)
    not found. Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [umfpack]) or by setting
    the UMFPACK environment variable.
  warnings.warn(self.notfounderror.__doc__)
error: None

=========
What is it: No errors, just warnings, or it doesn't know what the error is?

Then installing matplotlib getting "Permission denied", and with 'sudo 
easy_install matplotlib":
=========

(virtualenv-2.7.2)$ sudo easy_install matplotlib 
Password: **********
Processing matplotlib
Running setup.py -q bdist_egg --dist-dir 
/Users/yuri/Downloads/matplotlib/egg-dist-tmp-y9TrXR
basedirlist is: []
============================================================================
BUILDING MATPLOTLIB
            matplotlib: 1.2.x
                python: 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
                        [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
              platform: darwin

REQUIRED DEPENDENCIES
                 numpy: 1.6.2
             freetype2: found, but unknown version (no pkg-config)
                        * WARNING: Could not find 'freetype2' headers in any
                        * of '.', './freetype2'.

OPTIONAL BACKEND DEPENDENCIES
                libpng: found, but unknown version (no pkg-config)
                        * Could not find 'libpng' headers in any of '.'
               Tkinter: Tkinter: version not identified, Tk: 8.5, Tcl: 8.5
                  Gtk+: no
                        * Building for Gtk+ requires pygtk; you must be able
                        * to "import gtk" in your build/install environment
       Mac OS X native: yes
                    Qt: no
                   Qt4: no
                PySide: no
                 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
              datetime: present, version unknown
              dateutil: matplotlib will provide
                  pytz: matplotlib will provide
adding pytz

OPTIONAL USETEX DEPENDENCIES
                dvipng: no
           ghostscript: /bin/sh: gs: command not found
                 latex: no

[Edit setup.cfg to suppress the above messages]
============================================================================
pymods ['pylab']
packages ['matplotlib', 'matplotlib.backends', 
'matplotlib.backends.qt4_editor', 'matplotlib.projections', 
'matplotlib.testing', 'matplotlib.testing.jpl_units', 'matplotlib.tests', 
'mpl_toolkits', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid', 
'mpl_toolkits.axes_grid1', 'mpl_toolkits.axisartist', 'matplotlib.sphinxext', 
'matplotlib.tri', 'matplotlib.delaunay', 'pytz', 'dateutil', 
'dateutil.zoneinfo']
warning: no files found matching 'KNOWN_BUGS'
warning: no files found matching 'INTERACTIVE'
warning: no files found matching 'MANIFEST'
warning: no files found matching '__init__.py'
warning: no files found matching 'examples/data/*'
warning: no files found matching 'lib/mpl_toolkits'
warning: no files found matching 'LICENSE*' under directory 'license'
In file included from src/ft2font.cpp:3:
src/ft2font.h:16:22: error: ft2build.h: No such file or directory
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME>
In file included from src/ft2font.cpp:3:
src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:86: error: ISO C++ forbids declaration of ‘FT_Face’ with no 
type
src/ft2font.h:132: error: ‘FT_Face’ does not name a type
src/ft2font.h:133: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:134: error: ‘FT_Vector’ does not name a type
src/ft2font.h:135: error: ‘FT_Error’ does not name a type
src/ft2font.h:136: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:136: error: template argument 1 is invalid
src/ft2font.h:136: error: template argument 2 is invalid
src/ft2font.h:137: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:137: error: template argument 1 is invalid
src/ft2font.h:137: error: template argument 2 is invalid
src/ft2font.h:143: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:41: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:106: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:106: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:106: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:107: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:108: error: ‘FT_Int’ was not declared in this scope
In file included from src/ft2font.cpp:3:
src/ft2font.h:16:22: error: ft2build.h: No such file or directory
src/ft2font.h:17:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:18:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:19:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:20:10: error: #include expects "FILENAME" or <FILENAME>
src/ft2font.h:21:10: error: #include expects "FILENAME" or <FILENAME>
In file included from src/ft2font.cpp:3:
src/ft2font.h:34: error: ‘FT_Bitmap’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:34: error: ‘FT_Int’ has not been declared
src/ft2font.h:86: error: expected ‘,’ or ‘...’ before ‘&’ token
src/ft2font.h:86: error: ISO C++ forbids declaration of ‘FT_Face’ with no 
type
src/ft2font.h:132: error: ‘FT_Face’ does not name a type
src/ft2font.h:133: error: ‘FT_Matrix’ does not name a type
src/ft2font.h:134: error: ‘FT_Vector’ does not name a type
src/ft2font.h:135: error: ‘FT_Error’ does not name a type
src/ft2font.h:136: error: ‘FT_Glyph’ was not declared in this scope
src/ft2font.h:136: error: template argument 1 is invalid
src/ft2font.h:136: error: template argument 2 is invalid
src/ft2font.h:137: error: ‘FT_Vector’ was not declared in this scope
src/ft2font.h:137: error: template argument 1 is invalid
src/ft2font.h:137: error: template argument 2 is invalid
src/ft2font.h:143: error: ‘FT_BBox’ does not name a type
src/ft2font.cpp:41: error: ‘FT_Library’ does not name a type
src/ft2font.cpp:106: error: variable or field ‘draw_bitmap’ declared void
src/ft2font.cpp:106: error: ‘FT_Bitmap’ was not declared in this scope
src/ft2font.cpp:106: error: ‘bitmap’ was not declared in this scope
src/ft2font.cpp:107: error: ‘FT_Int’ was not declared in this scope
src/ft2font.cpp:108: error: ‘FT_Int’ was not declared in this scope
lipo: can't figure out the architecture type of: /var/tmp//cciWL8Hg.out
error: Setup script exited with error: command 'gcc-4.2' failed with exit 
status 1

==============
After that when running the Quick Start Guide's code seeing "No module named 
pylab".

Original comment by earlyado...@gmail.com on 14 Jun 2012 at 7:11

GoogleCodeExporter commented 9 years ago
did you have the gcc installed - looks to me like a general error where the
compiler cannot find its way

Original comment by nielsste...@gmail.com on 15 Jun 2012 at 10:55

GoogleCodeExporter commented 9 years ago
I did:

$ gcc --version

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) 
(LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Original comment by earlyado...@gmail.com on 18 Jun 2012 at 8:55