[ncl-install] vinth2p.py returs the error message "ModuleNotFoundError: No module named 'Ngl'"
Alexandra Laeng
sasha.mozgova at gmail.com
Mon Nov 16 14:16:35 MST 2020
Dear NCL Developper,
I'm trying to use the routine vinth2p.py
I work in Windows 10 WSL2 environment.
I installed Anakonda and followed the instructions from the website to
install the NCL, but obviously something went wrong, because when I try
to run
"python3 vinth2p.py" command, I obtain the error message :
====
Traceback (most recent call last):
File "/home/la/waccm_x/vinth2p.py", line 33, in <module>
import Ngl
ModuleNotFoundError: No module named 'Ngl'
=====
I actually have a problem already running:
(ncl_stable) la at DESKTOP-PFUUB59:~/waccm_x$ ncl
$NCARG_ROOT/lib/ncarg/nclex/gsun/gsun02n.ncl
Copyright (C) 1995-2019 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.6.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
GKS ERROR NUMBER -208 ISSUED FROM SUBROUTINE GOPWK :
--X driver error: DISPLAY environment variable not set
GKS ERROR NUMBER 25 ISSUED FROM SUBROUTINE GESC :
--SPECIFIED WORKSTATION IS NOT OPEN
fatal:Workstation with PID#8 is not open
fatal:Unable to open Workstation-Can't Create
fatal:Unable to access object with id:-4
fatal:_NhlCreate:Invalid Parent id #-4
fatal:PID #-4 can't be found in NhlSetValues
fatal:NhlDraw: Invalid Layer Id: -4
fatal:Unable to update Workstation with PID#-4
fatal:Unable to clear Workstation with PID#-4
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 2742 in
file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 10231
in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 20 in
file /home/la/anaconda3/envs/ncl_stable/lib/ncarg/nclex/gsun/gsun02n.ncl
(ncl_stable) la at DESKTOP-PFUUB59:~/waccm_x$
==================================================
Below are the diagnostics that are asekd on the site:
(ncl_stable) la at DESKTOP-PFUUB59:~$ conda update -n ncl_stable -c
conda-forge --all
Collecting package metadata (current_repodata.json): done
Solving environment: done
# All requested packages already installed.
(ncl_stable) la at DESKTOP-PFUUB59:~$ conda --version
conda 4.9.2
(ncl_stable) la at DESKTOP-PFUUB59:~$ which ncl
/home/la/anaconda3/envs/ncl_stable/bin/ncl
(ncl_stable) la at DESKTOP-PFUUB59:~$ ncl -V
6.6.2
(ncl_stable) la at DESKTOP-PFUUB59:~$ env | grep NCARG
NCARG_ROOT=/home/la/anaconda3/envs/ncl_stable
Thanks in advance for your help
Sincerely
Alex
More information about the ncl-install
mailing list