Page 1 of 1

Error Setting up Polymer on Windows Subsystem for Linux

Posted: Thu Mar 11, 2021 11:11 am
by dieuanh193
Hi, I'm having problems while setting up Polymer on WSL Linux system. I'm using Windows now and I've downloaded WSL for Linux using Ubuntu 18.04 LTS. I've set up Python 3.7.5 and some of the packages (except for Pyhdf, pyproj and pygrib) in this system. I put the command make all and even make rebuild but I got this error in the image. I'm new to Python as well as Linux so please help me to solve this issue. Thank you very much. Image

Re: Error Setting up Polymer on Windows Subsystem for Linux

Posted: Thu Mar 11, 2021 4:06 pm
by fsteinmetz
Hello,
You have to install the package called "numpy", which is required. See section "1.1 dependencies" in Polymer's readme file.
Kind regards,
François

Re: Error Setting up Polymer on Windows Subsystem for Linux

Posted: Fri Mar 12, 2021 4:10 pm
by dieuanh193
fsteinmetz wrote:
Thu Mar 11, 2021 4:06 pm
Hello,
You have to install the package called "numpy", which is required. See section "1.1 dependencies" in Polymer's readme file.
Kind regards,
François
Hi, thank you for your help. I already installed numpy package and it showed Successfully installed numpy-1.19.5. But it's still not working. Do you think it can be another reason? Thank you

Re: Error Setting up Polymer on Windows Subsystem for Linux

Posted: Mon Mar 22, 2021 4:39 pm
by fsteinmetz
I would suggest double-checking that you have installed numpy for your current python interpreter.
What command did you use for the installation of numpy ?
The use of anaconda is recommended, you may have difficulties otherwise installing pyhdf (which is required) and other packages.
Cheers,
François

Re: Error Setting up Polymer on Windows Subsystem for Linux

Posted: Tue Mar 23, 2021 11:54 am
by dieuanh193
Hi, thank you for your help. I could install numpy but I encountered another problem- installing pyhdf. I tried to add the syntax "from polymer.ancillary_era5 import Ancillary_ERA5" and ",ancillary=Ancillary_ERA5()" in the script but it's still not working. Could you please help me with this problem? Thank you so much!

Re: Error Setting up Polymer on Windows Subsystem for Linux

Posted: Fri Apr 02, 2021 8:54 am
by fsteinmetz
Hello,
Yes you have to install pyhdf, which is required. The use of the anaconda python distribution is recommended.
I have updated the installation script that you can run once anaconda is installed, please see this thread :
viewtopic.php?f=5&t=111
Kind regards,
François

Re: Error Setting up Polymer on Windows Subsystem for Linux

Posted: Tue Apr 13, 2021 10:01 am
by dieuanh193
Thank you very much, François. I solved the problem.