Error Setting up Polymer on Windows Subsystem for Linux

Post Reply
dieuanh193
Posts: 5
Joined: Tue Jan 12, 2021 9:04 am
company / institution: Alfred Wegener Institute for Polar and Marine Research
Location: Helgoland

Error Setting up Polymer on Windows Subsystem for Linux

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Error Setting up Polymer on Windows Subsystem for Linux

Post 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
dieuanh193
Posts: 5
Joined: Tue Jan 12, 2021 9:04 am
company / institution: Alfred Wegener Institute for Polar and Marine Research
Location: Helgoland

Re: Error Setting up Polymer on Windows Subsystem for Linux

Post 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
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Error Setting up Polymer on Windows Subsystem for Linux

Post 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
dieuanh193
Posts: 5
Joined: Tue Jan 12, 2021 9:04 am
company / institution: Alfred Wegener Institute for Polar and Marine Research
Location: Helgoland

Re: Error Setting up Polymer on Windows Subsystem for Linux

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Error Setting up Polymer on Windows Subsystem for Linux

Post 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
dieuanh193
Posts: 5
Joined: Tue Jan 12, 2021 9:04 am
company / institution: Alfred Wegener Institute for Polar and Marine Research
Location: Helgoland

Re: Error Setting up Polymer on Windows Subsystem for Linux

Post by dieuanh193 »

Thank you very much, François. I solved the problem.
Post Reply