From: Peter K. <pet...@wa...> - 2010-08-12 09:01:59
|
Erik Bryer wrote: > Hi, > > I followed the install directions for ccplot with success up to testing > the install of PyNIO. My only deviation from the instructions was to > (accidentally) use a slightly newer version of Python, 2.7, rather than > the 2.6.2 that matches my gcc version.My setup: > > Quad-core Intel Xeon CPU E5345 @ 2.33GHz (only standard > packages from standard repositories except "sshfs" from dag). > > Python 2.4, the standard CentOS 5 version is in /usr/bin. Python 2.7 is > in /usr/local/bin. By default, PATH=/usr/local/bin:/usr/bin > > RPM installed software includes gcc version 4.1.2, libpng and freetype > (including their devel files). > > Installed in /usr/local are: Python 2.7, numpy (--fcompiler=gnu95 to > match lapack/blas), matplotlib, basemap, and GEOS. I was able to test > numpy with this command: > /usr/local/bin/python -c 'import numpy; numpy.test()' > Running unit tests for numpy > NumPy version 1.5.0b1 > NumPy is installed in /usr/local/lib/python2.7/site-packages/numpy > Python version 2.7 (r27:82500, Aug 11 2010, 13:21:14) [GCC 4.1.2 > 20080704 (Red Hat 4.1.2-48)] > nose version 0.11.4 > .......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K................................................................................................................................................................................................................................K............................................................................................K......................K............................................................................................................................................................................... .. > > ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ . > > ..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Warning: > divide by zero encountered in log > ....................................................................................................................................................................................................................................... > > ---------------------------------------------------------------------- > Ran 2962 tests in 10.621s > > OK (KNOWNFAIL=4) > [But the exit status of the test was zero.] > > With those prerequisites installed, I untarred > PyNIO-1.3.0b5.linux-x86_64-redhat-py262-gcc412.tar.gz to /usr/local, > which made a /usr/local/lib/python2.6/site-packages directory, so I > copied the files over to the /usr/local/lib/python2.7/site-packages/. I > next ran the test listed in ccplot's "INSTALL" file. It failed: > > /usr/local/bin/python -c "import Nio; print Nio.__version__" > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/usr/local/lib/python2.7/site-packages/PyNIO/Nio.py", line 145, > in <module> > _is_new_ma = get_integer_version(np.__version__) > 10004 > File "/usr/local/lib/python2.7/site-packages/PyNIO/Nio.py", line 138, > in get_integer_version > v = int(d[0]) * 10000 + int(d[1]) * 100 + int(d[2]) > ValueError: invalid literal for int() with base 10: '0b1' > > I tried changing the name of > /usr/local/lib/python2.7/site-packages/PyNIO-1.3.0b5-py2.6.egg-info to > PyNIO-1.3.0b5-py2.7.egg-info. > > I haven't been able to get it to budge further. I wonder if I ought to > pull 2.6.2 Python from the CVS tree. Do you have a suggestion? > > Regards, > > Erik Bryer > Krishnamurti Numerical Weather Prediction Lab > EOAS/Meteorology > Florida State University > Tallahassee, FL 32306-4520 > 850-644-9277 > eb...@fs... Hi Erik, The PyNIO binary should match exactly with the version of Python installed. The easiest way would be to install Python 2.6.2. Precompiled version of PyNIO for Python 2.7 is not yet available, and compiling it with all the third-party libraries it needs would take a long time. Regards, Peter Kuma |