Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'xclim' has no attribute 'icclim' #149

Closed
matteodefelice opened this issue Jan 29, 2019 · 6 comments
Closed

module 'xclim' has no attribute 'icclim' #149

matteodefelice opened this issue Jan 29, 2019 · 6 comments

Comments

@matteodefelice
Copy link

  • xclim version: 0.1.0
  • Python version: 3.6.7
  • Operating System: macOS

Description

I have just installed xclim with pip and I have tried to run the four lines in the Github README:

import xclim     
import xarray as xr 
ds = xr.open_dataset('myfilename.nc') 
tg = xclim.icclim.TG(ds.tas, freq='YS')

and...

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-5-82f75f519f18> in <module>
----> 1 tg = xclim.icclim.TG(ds.tas, freq='YS')

AttributeError: module 'xclim' has no attribute 'icclim'
@huard
Copy link
Collaborator

huard commented Jan 29, 2019

Hi Matteo,

I'm suspecting the release on PyPi to be out of date, sorry about that. Please try to install from master and give it another spin.

@tlogan2000 @Zeitsperre I think this calls for a release and upload on PyPi.

@matteodefelice
Copy link
Author

You are right, unfortunately I couldn't install it from source because there is a kind of conflict with my anaconda environment during the installation of bottleneck:

AttributeError: 'dict' object has no attribute '__NUMPY_SETUP__'

then I think I will wait for the PyPI release!

@tlogan2000
Copy link
Collaborator

For your info : For an updated pypi release we are simply waiting for an xarray pull release, with some key functionality, that we have submitted to be integrated into their master. see pydata/xarray#2593.

We can then directly include xarray (and not our branch) in the xclim requirement for the PyPI release .
It should not be too long as it is in the final stages...

@Zeitsperre
Copy link
Collaborator

@matteodefelice

@tlogan2000 is correct, we are almost ready to deploy a working version on PyPI. Once we have stable dependencies and a few more basic indices coded, we'll tag a version that automatically deploys there. The current version on PyPI is simply a parked template to keep the name.

If you are interested in trying it out now. I would make a new environment in conda (conda create -n xclim && conda activate xclim) and follow the source installation directions from there.

@Zeitsperre
Copy link
Collaborator

Zeitsperre commented Feb 7, 2019

@matteodefelice The library now has a beta version available on PyPI. Can you try reinstalling via pip install xclim --upgrade and let us know if the problems persist?

@matteodefelice
Copy link
Author

now it works! Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants