I´ve installed this package: https://github.com/retostauffer/PyGFSV2 , with pip. This package comes with two executables (GFSV2_get and GFSV2_bulk). But, i don´t know how to open executables in Python.
So, after instlation, the package author recomend try the installation by calling:
GFSV2_get --step 12 24 --level 700 850 --param tmp_pres --date 2005-01-01
So, i put in Anaconda Prompt the next:
(base) C:\Users\vrida>CD C:\Users\vrida\anaconda3\Scripts
(base) C:\Users\vrida\anaconda3\Scripts>python GFSV2_get --step 12 24 --level 700 850 --param tmp_pres --date 2005-01-01
But, it didn´t work. Appear this:
# DEBUG Loading default config file from package source.
# INFO Config file read, return.
# INFO Processing date 2005-01-01 00Z
# INFO Downloading inventory information data
# DEBUG Reading ftp://ftp.cdc.noaa.gov/Projects/Reforecast2/2005/200501/2005010100/mean/latlon\tmp_pres_2005010100_mean.grib2.inv
# ERROR Problems reading file, reason: "ftp error: URLError("ftp error: error_perm('550 Failed to change directory.')")".
# ERROR Could not download inventory file! Skip this.
# INFO Inventory empty, skip this file
# INFO Downloading inventory information data
# DEBUG Reading ftp://ftp.cdc.noaa.gov/Projects/Reforecast2/2005/200501/2005010100/sprd/latlon\tmp_pres_2005010100_sprd.grib2.inv
# ERROR Problems reading file, reason: "ftp error: URLError("ftp error: error_perm('550 Failed to change directory.')")".
# ERROR Could not download inventory file! Skip this.
# INFO Inventory empty, skip this file
I´m beginner in Python. So i have two questions:
1 - How to run these executables, for example with Anaconda Prompt?
2 - Could anyone make the download of the package, after try the instalation and, if sucessfull, tell me how can i make the same?
I think you should contact the maintainer of the package. apparently the library tries to download some file via ftp, using the system file separator, \ in your case (since you are using windows), instead of /: ftp://ftp.cdc.noaa.gov/Projects/Reforecast2/2005/200501/2005010100/mean/latlon \tmp_pres_2005010100_mean.grib2.inv
the file is accessible via anonymous ftp access using a standard ftp client. so it should be an issue with the python library.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.