Giter Club home page Giter Club logo

Comments (7)

ajdawson avatar ajdawson commented on July 28, 2024

That will be something inside pyspharm. Can you provide details on how you installed windspharm and pyspharm please, and which versions of each you are using.

from windspharm.

ajdawson avatar ajdawson commented on July 28, 2024

Also the full traceback would be helpful.

from windspharm.

jdb2303 avatar jdb2303 commented on July 28, 2024

I pip installed them. I'm using windspharm version 1.5.1 and pyspharm version 1.0.8. Here is the full traceback:

AttributeError Traceback (most recent call last)
in ()
----> 1 w = windspharm.standard.VectorWind(uwnd, vwnd)

/home/qy003299/canopy-env/lib/python2.7/site-packages/windspharm-1.5.1-py2.7.egg/windspharm/standard.pyc in init(self, u, v, gridtype, rsphere)
103 self.gridtype = gridtype.lower()
104 self.s = Spharmt(nlon, nlat, gridtype=self.gridtype,
--> 105 rsphere=rsphere)
106 except ValueError:
107 if self.gridtype not in ('regular', 'gaussian'):

/home/qy003299/canopy-env/lib/python2.7/site-packages/spharm/spharm.pyc in init(self, nlon, nlat, rsphere, gridtype, legfunc)
244 lshaes = (n1n2(nlat + nlat - n1 + 1))/2 + nlon + 15
245 lwork = 5nlatn2 + 3*((n1 - 2)*(nlat + nlat - n1 -1))/2
--> 246 wshaes, ierror = _spherepack.shaesi(nlat, nlon, lshaes, lwork, nlat+1)
247 if ierror != 0:
248 msg = 'In return from call to shaesi in Spharmt.init ierror = %d' % ierror

AttributeError: 'module' object has no attribute 'shaesi'

from windspharm.

ajdawson avatar ajdawson commented on July 28, 2024

Are you sure the pip install of pyspharm was successful? shaesi is a fortran subroutine wrapped by f2py, and should always be present in a successful build.

from windspharm.

jdb2303 avatar jdb2303 commented on July 28, 2024

I just tried pip uninstalling pyspharm, and then pip installing it again and it says it installed successfully. It's still not working though, so presumably something's going wrong somewhere during installation.

from windspharm.

ajdawson avatar ajdawson commented on July 28, 2024

I can't even pip install it, looks like the download link on PyPI isn't there... I don't know what's going on there. Anyway, I suggest downloading from github and installing from source.

I usually recommend conda + conda-forge for installing these packages as it takes the pain out of it.

from windspharm.

jdb2303 avatar jdb2303 commented on July 28, 2024

I tried downloading it from github and it still didn't work - not sure why but I've now installed both pyspharm and windspharm using Anaconda and it's all working - thanks for your help!

from windspharm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.