CDAT / cdms

8 stars 10 forks source link

Unable to prepare environment #443

Open jaggi01 opened 2 years ago

jaggi01 commented 2 years ago

I am using ubantu on windows 10 with the help of virtualbox. I tried to install cdms using following command:

!conda create -n cdms -y -c cdat/label/nightly -c conda-forge cdms2 libnetcdf==4.6.2 !conda activate cdms

But conda couldn't activate cdms. I tried to prepare environment by following code:

from future import print_function import cdat_info import os, sys

data_path = cdat_info.get_sampledata_path()

version="python"+sys.version[0:3] cdat_info.download_sample_data_files(os.path.join(sys.prefix,"lib",version,"site-packages","share","cdms2","test_data_files.txt"),data_path)

But it is showing runtime error : Invalid file type for list of files: /home/jagjeet/anaconda3/lib/python3.9/site-packages/share/cdms2/test_data_files.txt. Where I am doing wrong. Need some help regarding this....!