Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: [python-users] Trying sample GINI code: ImportError: No module named enum34

  • To: Arlene Laing <Arlene.Laing@xxxxxxxxxxxx>
  • Subject: Re: [python-users] Trying sample GINI code: ImportError: No module named enum34
  • From: Ryan May <rmay@xxxxxxxx>
  • Date: Thu, 21 Apr 2016 13:31:26 -0600
On Thu, Apr 21, 2016 at 11:08 AM, Arlene Laing <Arlene.Laing@xxxxxxxxxxxx>
wrote:

> ImportError Traceback (most recent call last)
> <ipython-input-17-293570243ae6> in <module>()
> 3 import cartopy.crs as ccrs
> 4 from metpy.cbook import get<em>test</em>data
> ----> 5 from metpy.io.gini import GiniFile
>
> /export/hpc-lw-hmtdev3/alaing/miniconda2/lib/python2.7/site-packages/metpy/io/<strong>init</strong>.py
> in <module>()
> 12 """
> 13
> ---> 14 from .gini import * # noqa
> 15 from .nexrad import * # noqa
> 16 <strong>all</strong> = []
>
> /export/hpc-lw-hmtdev3/alaing/miniconda2/lib/python2.7/site-packages/metpy/io/gini.py
> in <module>()
> 9 from enum import Enum
> 10 except ImportError:
> ---> 11 from enum34 import Enum
> 12 from itertools import repeat
> 13
>
> ImportError: No module named enum34
>
> # ------- End error message block-----------
>
> ------------------------
> I am running Python 2.7.11 with the latest MetPy, 0.3.0 (as shown below)
>

Arlene,

It's weird that installing didn't handle the dependency for you. What
happens if you do:

conda install metpy

You can also try just forcing it to install enum34 by doing:

conda install enum34

Let me know how either of those go.

Ryan

-- 
Ryan May, Ph.D.
Software Engineer
UCAR/Unidata
Boulder, CO
  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the python-users archives: