Make install does not seem to move the shtns.py file

Issue #51 closed
ashwin .D created an issue

I still get this error when I run the shallow water example -

Traceback (most recent call last):
File "shallow_water1.py", line 182, in <module>
main()
File "shallow_water1.py", line 55, in main
x = Spharmt(nlons, nlats, ntrunc, rsphere, gridtype="gaussian")
File "/home/winash12/MetPyProject/opendap/7thApril/26thSeptember/spharm.py", line 22, in init
self._shtns.set_grid(nlats, nlons,
File "/usr/local/lib/python3.8/dist-packages/shtns.py", line 146, in set_grid
val = _shtns.sht_set_grid(self, nlat, nphi, flags, polar_opt, nl_order)
ValueError: arg #1 : nlat must be even

But when I look at the shtns.py under /usr/local/lib/python3.8/dist-packages I still see a file that has been installed 2 years ago. Make install does not appear the latest version of the shtns.py to that location. Here is my output of make install. Where am I going wrong ?

fatal: not a git repository (or any of the parent directories): .git
cp libshtns.a /usr/local/lib/libshtns.a
cp shtns.h /usr/local/include/
cp shtns_cuda.h /usr/local/include/
cp shtns.f shtns.f03 /usr/local/include/

Copyright (c) 2010-2018 Centre National de la Recherche Scientifique.
written by Nathanael Schaeffer (CNRS, ISTerre, Grenoble, France).

nathanael.schaeffer@univ-grenoble-alpes.fr

This software is governed by the CeCILL license under French law and
abiding by the rules of distribution of free software. You can use,
modify and/or redistribute the software under the terms of the CeCILL
license as circulated by CEA, CNRS and INRIA at the following URL
"http://www.cecill.info".

The fact that you are presently reading this means that you have had
knowledge of the CeCILL license and that you accept its terms.

**** link with : -L/usr/local/lib -lfftw3 -lm

Comments (2)

  1. Log in to comment