NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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

  • To: "python-users@xxxxxxxxxxxxxxxx" <python-users@xxxxxxxxxxxxxxxx>
  • Subject: [python-users] Trying sample GINI code: ImportError: No module named enum34
  • From: Arlene Laing <Arlene.Laing@xxxxxxxxxxxx>
  • Date: Thu, 21 Apr 2016 17:08:55 +0000
  • Authentication-results: unidata.ucar.edu; dkim=none (message not signed) header.d=none;unidata.ucar.edu; dmarc=none action=none header.from=Colorado.EDU;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23
Good day fellow MetPy users,

I am seeking help in fixing the following error that appears to be related to 
MetPy.

----------------------------------
# Example code from MetPy document

import numpy as np
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
from metpy.cbook import get<em>test</em>data
#
# the line below generates errors
#
from metpy.io.gini import GiniFile

# -------Start error message block--------

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)

bash-4.1$ anaconda search -t conda metpy
Using Anaconda Cloud api site https://api.anaconda.org
Run 'anaconda show <USER/PACKAGE>' to get more details:
Packages:
     Name                      |  Version | Package Types   | Platforms      
     ------------------------- |   ------ | --------------- | ---------------
     Unidata/MetPy             |    0.3.0 | conda           | linux-64, win-32, 
win-64, linux-32, osx-64
                                          : MetPy is a collection of tools in 
Python for reading, visualizing and performing calculations with weather data.
     conda-forge/metpy         |    0.3.0 | conda           | linux-64, win-32, 
win-64, osx-64
                                          : MetPy is a collection of tools in 
Python for reading, visualizing and performing calculations with weather data.
     dopplershift/metpy        |          | conda           |                
                                          : MetPy is a collection of tools in 
Python for reading, visualizing and performing calculations with weather data.
Found 3 packages

Thank you very much for your help.

Arlene Laing


  • 2016 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the python-users archives: