Traceback (most recent call last):
File "<string>", line 1, in <module>
ValueError: could not convert string to float: C
4.
This is probably due to python-scientific being built with an older version of python-numpy (or python?).
After rebuilding python-scientific according to http://www.debian-administration.org/articles/20
and installing the resulting python-netcdf the above one-liner works.
1.
Description: Ubuntu 12.04.1 LTS
Release: 12.04
2. dk.archive. ubuntu. com/ubuntu/ precise/universe amd64 Packages dpkg/status
python-scientific:
Installed: 2.8-2build1
Candidate: 2.8-2build1
Version table:
*** 2.8-2build1 0
500 http://
100 /var/lib/
3. IO.NetCDF as nc; ncf = nc.NetCDFFile( 't.nc', 'w'); ncf.createDimen sion('dim2' , 2); ncf.createDimen sion('n' ,2); sym = ncf.createVaria ble('d' ,'c',(' n','dim2' )); sym[:] = [' C', ' O']; print sym[:]"
python -c "import numpy as np; import Scientific.
Traceback (most recent call last):
File "<string>", line 1, in <module>
ValueError: could not convert string to float: C
4. www.debian- administration. org/articles/ 20
This is probably due to python-scientific being built with an older version of python-numpy (or python?).
After rebuilding python-scientific according to http://
and installing the resulting python-netcdf the above one-liner works.