Comments (5)
Hi,
I ran into the same error and I dug a little bit more to get a better understanding :
Previously in my image, the default cdo version was 1.9.6
, it was recently updated to 1.9.10
...
In 1.9.10
, with DEBUG=True
flag in your environment, the first value for operator is PRE_MAIN_DEBUG
, this was not the case for 1.9.6
.
Here is a little script explaining the issue :
import os
import subprocess
def print_first_operators():
proc = subprocess.Popen(["cdo", '--operators'],
stderr=subprocess.PIPE, stdout=subprocess.PIPE)
ret = proc.communicate()
ops = list(map(lambda x: x.split(' ')[0], ret[0].decode(
"utf-8")[0:-1].split(os.linesep)))
ios = list(map(lambda x: x.split(' ')[-1], ret[0].decode(
"utf-8")[0:-1].split(os.linesep)))
print(f'{ops[0]} {ios[0]}')
os.environ['DEBUG'] = "False"
print_first_operators()
# prints:
# cdo-1.9.10 : abs (1|1)
# cdo-1.9.6 : abs (1|1)
os.environ['DEBUG'] = "True"
print_first_operators()
# prints :
# cdo-1.9.10 : PRE-MAIN-DEBUG [0x7ff96caac9a0]
# cdo-1.9.6 : abs (1|1)
from cdo-bindings.
(NB: created merge request for that : #53 )
from cdo-bindings.
hi!
Thx for the report. But it's hard to provide workarounds for strange installations. There is no direct link from CDO to eckit. Someone published a very strange build of CDO. I doubt that this is coming from debian since they use a very strict building policy.
Can you tell mode about which image exactly is affected?
from cdo-bindings.
hi again!
I investigated a bit more in to this error. Unfortunately all operators which write to stdout (showname, showlevel, sinfov, etc.) have problems.
So I recommend to avoid the debian (or debian-based) binary. for linux conda (conda-force channel) is a valid options. Those releases are update-to-date. you can check at https://code.mpimet.mpg.de/projects/cdo/wiki/Linux_Platform for more info
from cdo-bindings.
Hi @Try2Code,
thanks for having a look into the issue. I followed your recommendation and solved the issue on my side by installing CDO from source following this gist: https://gist.github.com/jeffbyrnes/e56d294c216fbd30fd2fd32e576db81c
from cdo-bindings.
Related Issues (20)
- temp files aren't deleted HOT 21
- Error loading netCDF4 after installing CDO HOT 7
- Support converting .dat file to .nc file HOT 8
- Apply new syntax for calls with mutiple inputs HOT 24
- Segmentation fault when using bindings HOT 1
- Process using cdo cannot be ctrl-C'd HOT 7
- Feature request: PyCDO for/from Bash HOT 3
- New release on PyPI HOT 5
- cdo=Cdo() #####FileNotFoundError: [WinError 2] HOT 3
- Mention how the bindings are supported in python-cdo package from conda-forge HOT 2
- threaded cdo HOT 6
- help(cdo.<operator name>) does not work anymore
- cdo-bindings fail with cdo2.0.0 HOT 2
- `muldpm` was `muldpy` in conda cdo HOT 1
- Hi sir,I am trying to install python-cdo by using "conda create -n cdo_test python=3 cdo python-cdo" and it shows error. HOT 2
- Python binding captures "kill" and "KeyboardInterrupt" signals in all processes after initialization HOT 4
- Hard coded `-s` HOT 2
- clarify license of `cdo-bindings` HOT 3
- Cannot initialize with specified cdopath HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdo-bindings.