Project

General

Profile

Cannot import cdo operators in Python (Windows)

Added by David Delft about 8 years ago

My cdo-1.7.1-cygwin64-static works on Windows using cygwin. However, when I try to import cdo in Python it doesn't import all operators:

from cdo import *

cdo = Cdo()

cdo.operators
Out: [u'abs']

Any idea what could be wrong? Thanks in advance.


Replies (1)

RE: Cannot import cdo operators in Python (Windows) - Added by Ralf Mueller about 8 years ago

I checked with

  • win7
  • updated cygwin64
  • cdo-1.6.9 and cdo-1.7.1
  • cdo.py version 1.3.0

it worked. I suspect, that you use an older version of cdo.py. 1.3.0 was released, because cdo-1.7.1 has some changes wrt to operator listing. for useing 1.7.1, you HAVE to update to cdo.py version 1.3.0

hth
ralf

    (1-1/1)