Re: Install problem of PyNGL in Cygwin.

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 17 Dec 2008 19:42:26 +0100

Huang,

The problem is that it's not letting you import the internal
"_hlu.so" module, which is needed in order to import Ngl. I don't
know if the installation output that you sent below is complete, but
if this is all you saw, then it looks like maybe the software did not
install completely.

When you type this directly:

import _hlu

Do you get this:

ImportError: Permission denied

If so, check that you have read permissions on the file, and that the
file is actually there:

/usr/lib/python2.5/site-packages/PyNGL/_hlu.so

You should have other files in the same directory, like Ngl.py,
__init__.py, etc. Do you see these files?

[Note: I am on vacation, and am only able to check email
sporadically. Somebody else may have to help you if the above doesn't.]

--Mary

On Dec 17, 2008, at 8:49 AM, 黄平 wrote:

> Hi all,
>
> I tried install PyNGL (PyNGL-1.2.0.Cygwin-2.4.tar.gz) in Cygwin
> with Python 2.5.
>
> And I got these following install information:
> $ python setup.py install
> running install
> running build
> running build_py
> running install_lib
> running install_data
> running install_egg_info
> Removing /usr/lib/python2.5/site-packages/PyNGL/PyNGL-1.2.0-
> py2.5.egg-info
> Writing /usr/lib/python2.5/site-packages/PyNGL/PyNGL-1.2.0-
> py2.5.egg-info
> creating /usr/lib/python2.5/site-packages/PyNGL.pth
>
> I don't konw if these informations show the installation is
> successful.
>
> But when I follow the "README.txt" try the example script
> ng101p.py, get this Error message:
> $ pynglex ngl01p.py
>
> Warning: You don't appear to have the NumPy version of PyNGL
> installed. I will try the Numeric version instead.
>
> Error: You don't appear to have the Numeric version of PyNGL either.
>
> I'm sure I have installed the NumPy package (version 1.0.4) and it
> works well.
>
> And when I import Ngl in Python2.5 enviromnment, get following
> Error message:
> $ python
> Python 2.5.1 (r251:54863, May 18 2007, 16:56:43)
> [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import Ngl
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.5/site-packages/PyNGL/Ngl.py", line 58, in
> <module>
> from hlu import *
> File "/usr/lib/python2.5/site-packages/PyNGL/hlu.py", line 7, in
> <module>
> import _hlu
> ImportError: Permission denied
>>>>
>
> So what's the problem?
>
> Thanks.
>
> Huang Ping
>
>
>
>
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

_______________________________________________
pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Wed Dec 17 2008 - 11:42:26 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 01 2009 - 08:39:20 MST