Problem with easy install using conda-forge on WIN 8.1

66 views
Skip to first unread message

JoBi

unread,
May 14, 2016, 12:35:54 PM5/14/16
to wradlib-users
Hi all,

till now I have used wradlib with Phyton(xy).

To install Anaconda2 (first step of the instruction) I've had to uninstall Phyton(xy). Then I have clone the root (step 2) and tried to install wradlib, got an error:


I have uninstalled Annaconda and tried once more with "conda create --name wradlib python=2.7".


It went better with the folloing 2 errors (minor?):




But the main error is, that wradlib can't be found either by ipython notebook nor starting plain python script:

ImportError: No module named wradlib





What went wrong with the installation?

Thanks for some hints
Joachim
Auto Generated Inline Image 1
Auto Generated Inline Image 2
Auto Generated Inline Image 3
Auto Generated Inline Image 4
Auto Generated Inline Image 5

Kai Mühlbauer

unread,
May 14, 2016, 1:01:18 PM5/14/16
to wradli...@googlegroups.com
Hi Joachim,

to the first: It should read `xmltodict`.

I'll have a look into the ImportError stuff after pentecost. This looks
like some conda dependency resolve problem.

Anyway you might try to do the following (this is from memory, so there
might be something missing):

1. create and activate a fresh environment:
conda create -n fresh pip python=2.7
2. conda install matplotlib
3. conda install gdal
4. conda install hdf5=1.8.15*
5. conda install h5py=2.5.0
6. conda install netcdf4
7. conda install numpy
8. conda install scipy
9. pip install xmltodict
10. conda install wradlib

Please keep an eye that hdf5 needs to be at 1.8.15*. If scipy or
something wants to upgrade hdf5 do not allow this. Pin the versions like
above to the one which doesn't downgrade.

Then, try your code.

If that doesn't work, grab latest wradlib from the github repo and do:

`python setup.py install` within the wradlib folder. Try again.

If that also doesn't work, please come back here. I'll be available from
time to time the next days.

Cheers and Happy Pentecost,
Kai



Am 14.05.2016 um 18:35 schrieb JoBi:
> Hi all,
>
> till now I have used wradlib with Phyton(xy).
>
> To install Anaconda2 (first step of the instruction) I've had to
> uninstall Phyton(xy). Then I have clone the root (step 2) and tried to
> install wradlib, got an error:
>
>
> I have uninstalled Annaconda and tried once more with "conda create
> --name wradlib python=2.7".
>
>
> It went better with the folloing 2 errors (minor?):
>
>
>
>
> But the main error is, that wradlib can't be found either by ipython
> notebook nor starting plain python script:
>
> ImportError: No module named wradlib
>
>
>
>
>
> What went wrong with the installation?
>
> Thanks for some hints
> Joachim
>
> --
> You received this message because you are subscribed to the Google
> Groups "wradlib-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to wradlib-user...@googlegroups.com
> <mailto:wradlib-user...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Kai Mühlbauer

unread,
May 14, 2016, 1:35:39 PM5/14/16
to wradli...@googlegroups.com
Joachim,

I forgot, could you please try the whole thing with miniconda?

- Kai

Bialas, Joachim (IMK)

unread,
May 14, 2016, 1:41:36 PM5/14/16
to wradli...@googlegroups.com
Hi Kai,

thanks for the hints. Do I have first to uninstall Anaconda?

Joachim

-----Ursprüngliche Nachricht-----
Von: wradli...@googlegroups.com [mailto:wradli...@googlegroups.com] Im Auftrag von Kai Mühlbauer
Gesendet: Samstag, 14. Mai 2016 19:36
An: wradli...@googlegroups.com
Betreff: Re: Problem with easy install using conda-forge on WIN 8.1
You received this message because you are subscribed to a topic in the Google Groups "wradlib-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wradlib-users/cT_BcANgwUU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wradlib-user...@googlegroups.com.

Kai Mühlbauer

unread,
May 14, 2016, 1:48:42 PM5/14/16
to wradli...@googlegroups.com
Ho Joachim,

umh, on linux you don't need to uninstall anaconda. But I'm not the
windows guy, so your mileage may vary.

Normally, you just install miniconda to some folder. Then you prepend
this path to your PATH (not permanent) and you are ready to go.

If you run into problems I could test this with a Windows10 and try to
rule out problems.

- Kai

Bialas, Joachim (IMK)

unread,
May 14, 2016, 4:45:13 PM5/14/16
to wradli...@googlegroups.com

Hi Kai,

 

I have uninstalled Anaconda and installed Miniconda instead. I've installed all you have mentioned in points 1-10 below. But wradlib was still not found:

 

 

BTW: the content of the folder wradlib within C:\Users\bialas-j\AppData\Local\Continuum\Miniconda2\envs\fresh\Lib\site-packages\wradlib was ca. 1MB only.

 

Then I have download and unpacked wradlib from bitbucket into the above folder and started setup.py. It’s worked, but still wradlib wasn’t recognized:

 

 

I think I’ll try the old way with Python(xy).

 

Thanks and have some nice days

Joachim

 

 

-----Ursprüngliche Nachricht-----
Von: wradli...@googlegroups.com [mailto:wradli...@googlegroups.com] Im Auftrag von Kai Mühlbauer

Gesendet: Samstag, 14. Mai 2016 19:49

Kai Mühlbauer

unread,
May 15, 2016, 9:06:55 AM5/15/16
to wradli...@googlegroups.com
Hi Joachim,

after some investigation:

I can reproduce this on windows 10 with a fresh miniconda install.

It turns out that this is no wradlib-issue, but an issue with conda
scipy working with latest mkl
(https://github.com/ContinuumIO/anaconda-issues/issues/792). This was
introduced some time yesterday.

If you want to give it another try with wradlib 0.8.0, this is a
workaround. I have just tested this, I can import wradlib this way.

Using miniconda:

1. create fresh conda environment
2. conda install wradlib
3. conda install mkl=11.3.1 (this will downgrade numpy, scipy and mkl)

This will fix the scipy import issues.

If you want to use bleeding edge wradlib, do not use the old
bitbucket-versions. Use only the new repo on github:
https://github.com/wradlib/wradlib. You also find everything from
http://wradlib.org. Then you would also need to download the new
wradlib-data repository
(http://wradlib.org/2016/04/introducing-wradlib-jupyter-notebooks/).

If you want to use jupyter notebooks (we have some in the bleeding edge
version, see aalos above link) you would also need to install this
within conda (conda install notebook).

I'm sorry that you have been experiencing this problem while using
wradlib. Hopefully this mkl issue is sorted out soon. I'll have it
reported here.

Cheers,
Kai



Am 14.05.2016 um 22:45 schrieb Bialas, Joachim (IMK):
> Hi Kai,
>
> I have uninstalled Anaconda and installed Miniconda instead. I've
> installed all you have mentioned in points 1-10 below. But wradlib was
> still not found:
>
> BTW: the content of the folder wradlib within
> C:\Users\bialas-j\AppData\Local\Continuum\Miniconda2\envs\fresh\Lib\site-packages\wradlib
> was ca. 1MB only.
>
> Then I have download and unpacked wradlib from bitbucket into the above
> folder and started setup.py. It’s worked, but still wradlib wasn’t
> recognized:
>
> <mailto:wradli...@googlegroups.com>
>>>> send an email towradlib-use...@googlegroups.com
> <mailto:wradlib-user...@googlegroups.com>
>
>>>> <mailto:wradlib-user...@googlegroups.com>.
>
>>>> For more options, visithttps://groups.google.com/d/optout.
>
> >>
>
> >
>
> > --
>
> > You received this message because you are subscribed to a topic in
> the Google Groups "wradlib-users" group.
>
>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/wradlib-users/cT_BcANgwUU/unsubscribe.
>
>> To unsubscribe from this group and all its topics, send an email to wradlib-user...@googlegroups.com
> <mailto:wradlib-user...@googlegroups.com>.
>
>> For more options, visithttps://groups.google.com/d/optout.

Bialas, Joachim (IMK)

unread,
May 15, 2016, 2:02:49 PM5/15/16
to wradli...@googlegroups.com

Hi Kai,

 

thank you very much for your great help! I can now run my old python/wradlib scripts :-)

See the full installation instruction for WIN8.1 :

 

1.           Install the Miniconda ( Just me(recommended) ).

2.           Create new environment from scratch:

               $ conda create -n wradlib pip python=2.7

3.           Activate wradlib environment:

               > activate wradlib           

4.           Install wradlib:

               (wradlib) $ conda install wradlib

               (wradlib) $ conda install mkl=11.3.1         (this will downgrade numpy, scipy and mkl)

5.           Set GDAL_DATA environment variable (needed for georeferencing):

               [wradlib] > setx GDAL_DATA C:\path\to\........\Miniconda2\envs\wradlib\Library\share\gdal

6.           Optional dependencies can be installed OS independent with pip:

               (wradlib) $ pip install xmltodict

 

This worked fine and wradlib can be used. BTW: The trick with conda install mkl=11.3.1 does not help installing Anaconda (instead of Miniconda)!

 

I also tried to install the noteboo with: (wradlib) $ conda install notebook. The installation was completed:

 

But starting ipython notebook, I got an WindowsError: [Error 2]

 

Starting a notebook results in “Kernel error” L

 

Do you have an idea what went wrong?

 

Thanks once more

Joachim

 

-----Ursprüngliche Nachricht-----
Von: wradli...@googlegroups.com [mailto:wradli...@googlegroups.com] Im Auftrag von Kai Mühlbauer

Gesendet: Sonntag, 15. Mai 2016 15:07


An: wradli...@googlegroups.com
Betreff: Re: Problem with easy install using conda-forge on WIN 8.1

 

Hi Joachim,

To unsubscribe from this group and all its topics, send an email to wradlib-user...@googlegroups.com.

Kai Mühlbauer

unread,
May 15, 2016, 2:22:43 PM5/15/16
to wradli...@googlegroups.com
Hi Joachim,

good to hear it worked. Thanks for the writeup.

Regarding notebook, try from commandline in the notebook directory:

jupyter notebook --ip 127.0.0.1

This should start a browser with the jupyter notebook framework.

Cheers,
Kai

Am 15.05.2016 um 20:02 schrieb Bialas, Joachim (IMK):
> Hi Kai,
>
> thank you very much for your great help! I can now run my old
> python/wradlib scripts :-)
>
> See the full installation instruction for WIN8.1 :
>
> 1. Install the Miniconda ( Just me(recommended) ).
>
> 2. Create new environment from scratch:
>
> $ conda create -n wradlib pip python=2.7
>
> 3. Activate wradlib environment:
>
> > activate wradlib
>
> 4. Install wradlib:
>
> (wradlib) $ conda install wradlib
>
> (wradlib) $ conda install mkl=11.3.1 (this will
> downgrade numpy, scipy and mkl)
>
> 5. Set GDAL_DATA environment variable (needed for georeferencing):
>
> [wradlib] > setx GDAL_DATA
> C:\path\to\........\Miniconda2\envs\wradlib\Library\share\gdal
>
> 6. Optional dependencies can be installed OS independent with pip:
>
> (wradlib) $ pip install xmltodict
>
> This worked fine and wradlib can be used. BTW: The trick with conda
> install mkl=11.3.1 does not help installing Anaconda (instead of Miniconda)!
>
> I also tried to install the noteboo with: (wradlib) $ conda install
> notebook. The installation was completed:
>
> But starting ipython notebook, I got an WindowsError: [Error 2]
>
> <mailto:wradli...@googlegroups.com>
>
> > Betreff: Re: Problem with easy install using conda-forge on WIN 8.1
>
> >
>
>>>>> send an emailtowradlib-u...@googlegroups.com
> <mailto:towradlib-use...@googlegroups.com>
>
>> <mailto:wradlib-user...@googlegroups.com>
>
> >
>
> >>>> <mailto:wradlib-user...@googlegroups.com>.
>
> >
>
> >>>> For more options, visithttps://groups.google.com/d/optout.
>
> >
>
> > >>
>
> >
>
> > >
>
> >
>
> > > --
>
> >
>
> > > You received this message because you are subscribed to a topic in
>
> > the Google Groups "wradlib-users" group.
>
> >
>
>>> To unsubscribe from this topic, visithttps://groups.google.com/d/topic/wradlib-users/cT_BcANgwUU/unsubscribe.
>
> >
>
> >> To unsubscribe from this group and all its topics, send an email to
>
> >> wradlib-user...@googlegroups.com
> <mailto:wradlib-user...@googlegroups.com>
>
> > <mailto:wradlib-user...@googlegroups.com>.
>
> >
>
> >> For more options, visithttps://groups.google.com/d/optout.
>
> >
>
> > >
>
> >
>
> > --
>
> >
>
> > You received this message because you are subscribed to a topic in the
>
> > Google Groups "wradlib-users" group.
>
> >
>
> > To unsubscribe from this topic, visit
>
> > https://groups.google.com/d/topic/wradlib-users/cT_BcANgwUU/unsubscribe.
>
> >
>
> > To unsubscribe from this group and all its topics, send an email to
>
> > wradlib-user...@googlegroups.com
> <mailto:wradlib-user...@googlegroups.com>
>
> > <mailto:wradlib-user...@googlegroups.com>.
>
> >
>
>> For more options, visithttps://groups.google.com/d/optout.
>
> >
>
> > --
>
> > You received this message because you are subscribed to the Google
>
> > Groups "wradlib-users" group.
>
> > To unsubscribe from this group and stop receiving emails from it, send
>
>> an email towradlib-use...@googlegroups.com
> <mailto:wradlib-user...@googlegroups.com>
>
>> <mailto:wradlib-user...@googlegroups.com>.
>
>> For more options, visithttps://groups.google.com/d/optout.
>
> --
>
> You received this message because you are subscribed to a topic in the
> Google Groups "wradlib-users" group.
>
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/wradlib-users/cT_BcANgwUU/unsubscribe.
>
> To unsubscribe from this group and all its topics, send an email to
> wradlib-user...@googlegroups.com
> <mailto:wradlib-user...@googlegroups.com>.
>

Kai Mühlbauer

unread,
May 15, 2016, 2:32:51 PM5/15/16
to wradli...@googlegroups.com
It should read:

> jupyter notebook --ip=127.0.0.1

- Kai

Bialas, Joachim (IMK)

unread,
May 15, 2016, 7:25:21 PM5/15/16
to wradli...@googlegroups.com

Hi Kai,

 

unfortunately it doesn't work. In addition I did conda update ipython , conda install jupyter and python -m jupyter kernelspec install-self, but no success :-(

 

Something else I can try?

 

Cheers,

Joachim

 

 

-----Ursprüngliche Nachricht-----
Von: wradli...@googlegroups.com [mailto:wradli...@googlegroups.com] Im Auftrag von Kai Mühlbauer

Gesendet: Sonntag, 15. Mai 2016 20:33

To unsubscribe from this group and all its topics, send an email to wradlib-user...@googlegroups.com.

Kai Mühlbauer

unread,
May 16, 2016, 5:18:10 AM5/16/16
to wradli...@googlegroups.com
Hi Joachim,

did you start

> jupyter notebook --ip=127.0.0.1

from the activated environment? In this environment wradlib and jupyter
notebook need to be installed.

I'll have a closer look later on.

Cheers,
Kai

Am 16.05.2016 um 01:25 schrieb Bialas, Joachim (IMK):
> Hi Kai,
>
> unfortunately it doesn't work. In addition I did conda update ipython ,
> conda install jupyter and python -m jupyter kernelspec install-self, but
> no success :-(
>
> Something else I can try?
>
> Cheers,
>
> Joachim
>
> <mailto:wradli...@googlegroups.com>
>
> >> Betreff: Re: Problem with easy install using conda-forge on WIN 8.1
>
> >>
>
> <mailto:emailtowradlib-u...@googlegroups.com>
> <mailto:towradlib-use...@googlegroups.com>

Kai Mühlbauer

unread,
May 16, 2016, 6:26:36 AM5/16/16
to wradli...@googlegroups.com
Yes, can confirm. The Kernel dies immediately after starting the
notebook server. If I find something, I come back.

Cheers,
Kai

Kai Mühlbauer

unread,
May 16, 2016, 8:34:06 AM5/16/16
to wradli...@googlegroups.com
Hi Joachim,

OK, I've found some workaround. The root cause is probably a wrong path
to the python interpreter within the jupyter json config file. We have
to investigate further, where this wrong path is set.

So for the time being please do as follows:

In your conda environment commandline run:

> jupyter kernelspec list

This will show you the available kernels. I suppose you are working with
python2. Then use 'Explorer' and navigate to the given python 2 directory.

Delete 'kernel.json' file.

After that run again in the conda environment:

> jupyter notebook --ip=127.0.0.1

This will fix the wrong settings and leave you with a working notebook
installation. At least here on windows 10 it worked fine.

I'm not really sure, but this looks like 'conda install' isn't setting
path's right, but that's just a feeling.

Cheers,
Kai

Kai Mühlbauer

unread,
May 16, 2016, 8:56:42 AM5/16/16
to wradli...@googlegroups.com
Seems a problem with the conda-forge `ipykernel` package. I opened an
issue here:

https://github.com/conda-forge/ipykernel-feedstock/issues/6

Cheers,
Kai

Bialas, Joachim (IMK)

unread,
May 16, 2016, 12:21:17 PM5/16/16
to wradli...@googlegroups.com

Hi Kai,

 

you are great! Uff, finally it's working this way :-)

 

Thanks very much for your help and time spend!

 

Now I have one minor problem: how can I install safely “ipywidgets” and “pandas”? I don’t like to destroy the now working installation ;-)

 

Again, thanks a lot and cheers,

Joachim

 

-----Ursprüngliche Nachricht-----
Von: wradli...@googlegroups.com [mailto:wradli...@googlegroups.com] Im Auftrag von Kai Mühlbauer

Gesendet: Montag, 16. Mai 2016 14:34

To unsubscribe from this group and all its topics, send an email to wradlib-user...@googlegroups.com.

Kai Mühlbauer

unread,
May 16, 2016, 12:35:28 PM5/16/16
to wradli...@googlegroups.com
Hi Joachim,

you're welcome :-)

Now you'll get an impression WHY conda environments are a great thing.
You can just clone your 'working_env' environment to the 'new_env' like
this:

> conda create --name new_env --clone working_env

Just 'activate new_env' and you are ready to go. And if something goes
wrong, just clone another environment. Here you find everything about
managing environments (http://conda.pydata.org/docs/using/envs.html#)

'ipywidgets' and 'pandas' are also available within the conda-forge
channel, so you can try

> conda install ipywidgets

and

> conda install pandas

Be sure to keep an eye to the mkl before hitting[y]. It should stay at
11.3.1. If conda want's to update mkl, you would have to do something
like this:

> conda install ipywidgets mkl=11.3.1

And same with pandas. Hopefully you can work around those annoying
dependency issues.

Cheers,
Kai

Am 16.05.2016 um 18:21 schrieb Bialas, Joachim (IMK):
> Hi Kai,
>
> you are great! Uff, finally it's working this way :-)
>
> Thanks very much for your help and time spend!
>
> Now I have one minor problem: how can I install safely “ipywidgets” and
> “pandas”? I don’t like to destroy the now working installation ;-)
>
> Again, thanks a lot and cheers,
>
> Joachim
>
> <mailto:wradli...@googlegroups.com>
>
> >>> Betreff: Re: Problem with easy install using conda-forge on WIN 8.1
>
> >>>
>
>>>> >>> an emailtowradlib-u...@googlegroups.com
> <mailto:towradlib-use...@googlegroups.com>
>
>>>> <mailto:towradlib-use...@googlegroups.com>
>
> >>>
>
> >>> >> <mailto:wradlib-user...@googlegroups.com>
>
> >>>
>
> >>> >>
>
> >>>
>
> >>> >>> <mailto:wradlib-user...@googlegroups.com>.
>
> >>>
>
> >>> >>
>
> >>>
>
> >>> >>> For more options, visithttps://groups.google.com/d/optout.
>
> >>>
>
> >>> >>
>
> >>>
>
> >>> >> --
>
> >>>
>
> >>> >>
>
> >>>
>
> >>> >> You received this message because you are subscribed to a topic
>
> >>> in
>
> >>>
>
> >>> >> the Google Groups "wradlib-users" group.
>
> >>>
>
> >>> >>
>
> >>>
>
> >>> >> To unsubscribe from this topic, visit
>
> >>>
>
> >>> >>
>
> >>>
> https://groups.google.com/d/topic/wradlib-users/cT_BcANgwUU/unsubscribe.
>
> >>>
>
> >>> >>
>
> >>>
>
> >>> >> To unsubscribe from this group and all its topics, send an email
>
> >>> to
>
> >>>
>
> >>> >> wradlib-user...@googlegroups.com
> <mailto:wradlib-user...@googlegroups.com>
>
> >>> <mailto:wradlib-user...@googlegroups.com>
>
> >>>
>
> >>> >> <mailto:wradlib-user...@googlegroups.com>.
>
> >>>
>
> >>> >>
>
> >>>
>
>>>> >> For more options, visithttps://groups.google.com/d/optout.
>
> >>>
>
> >>> >>
>
> >>>
>
> >>> >> --
>
> >>>
>
> >>> >> You received this message because you are subscribed to the
>
> >>> Google
>
> >>>
>
> >>> >> Groups "wradlib-users" group.
>
> >>>
>
> >>> >> To unsubscribe from this group and stop receiving emails from
>
> >>> it,
>
> >>>
>
>>>> >> send an email towradlib-use...@googlegroups.com

Bialas, Joachim (IMK)

unread,
May 17, 2016, 3:43:07 AM5/17/16
to wradli...@googlegroups.com
Hi Kai,

this sounds really good to me - no more fair to change something :-)

Thanks and cheers
Joachim

-----Ursprüngliche Nachricht-----
Von: wradli...@googlegroups.com [mailto:wradli...@googlegroups.com] Im Auftrag von Kai Mühlbauer
Gesendet: Montag, 16. Mai 2016 18:35
To unsubscribe from this group and all its topics, send an email to wradlib-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages