CI-WATER / gsshapy

An SQLAlchemy ORM for GSSHA model files and a toolkit to convert gridded input into GSSHA input.
BSD 3-Clause "New" or "Revised" License
7 stars 9 forks source link

Cannot find path error #16

Closed lahatte closed 7 years ago

lahatte commented 7 years ago

When I run "activate gssha" the result is...

Z:\Projects\FY16\Korea_North\AirForce\AOIs\NK_Hawaii\GSSHA\Stream_Attribs\20170316_Thiessen>activate gssha The system cannot find the path specified.

(gssha) C:\Program Files\Anaconda3\envs\gssha\etc\conda\activate.d>set "GDAL_DRIVER_PATH="

(gssha) Z:\Projects\FY16\Korea_North\AirForce\AOIs\NK_Hawaii\GSSHA\Stream_Attribs\20170316_Thiessen>

snowman2 commented 7 years ago

How did you create the conda environment?

lahatte commented 7 years ago

As far as I know, I just followed the instructions.

-----Original Message----- From: Alan D. Snow [mailto:notifications@github.com] Sent: Monday, April 24, 2017 3:20 PM To: CI-WATER/gsshapy Cc: Lahatte, Clay W ERDC-RDE-CHL-MS CIV; Author Subject: Re: [CI-WATER/gsshapy] Cannot find path error (#16)

How did you create the conda environment?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub Blockedhttps://github.com/CI-WATER/gsshapy/issues/16Blocked#issuecomment-296810391 , or mute the thread Blockedhttps://github.com/notifications/unsubscribe-auth/AGLIPwLHY-DKPKRmnKFUAPSaWgObx7bOks5rzQPmgaJpZM4NB_6lBlocked . Blockedhttps://github.com/notifications/beacon/AGLIPz9aIAMHJGYvd4Jp613QpPb7U2kwks5rzQPmgaJpZM4NB_6l.gifBlocked

snowman2 commented 7 years ago

Can you delete it and try again?

lahatte commented 7 years ago

It does it on 2 computers.

-----Original Message----- From: Alan D. Snow [mailto:notifications@github.com] Sent: Monday, April 24, 2017 4:35 PM To: CI-WATER/gsshapy Cc: Lahatte, Clay W ERDC-RDE-CHL-MS CIV; Author Subject: Re: [CI-WATER/gsshapy] Cannot find path error (#16)

Can you delete it and try again?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub Blockedhttps://github.com/CI-WATER/gsshapy/issues/16Blocked#issuecomment-296828949 , or mute the thread Blockedhttps://github.com/notifications/unsubscribe-auth/AGLIP01svF3Cx8KPqK5r9WkcOuox2dUiks5rzRVtgaJpZM4NB_6lBlocked . Blockedhttps://github.com/notifications/beacon/AGLIP6m0g94Ac29lkAdSDo4GMuT6tK6eks5rzRVtgaJpZM4NB_6l.gifBlocked

snowman2 commented 7 years ago

Try installing the stable release. On windows it only works with Python 2 for now. So, make sure your python environment is Python 2.

$ conda create -n gssha python=2
$ activate gssha
(gssha)$ conda install -c conda-forge gsshapy
lahatte commented 7 years ago

I assume that would be the master version?

Thanks.

-----Original Message----- From: Alan D. Snow [mailto:notifications@github.com] Sent: Wednesday, April 26, 2017 10:53 AM To: CI-WATER/gsshapy Cc: Lahatte, Clay W ERDC-RDE-CHL-MS CIV; Author Subject: Re: [CI-WATER/gsshapy] Cannot find path error (#16)

Try installing the stable release. On windows it only works with Python 2 for now. So, make sure your python environment is Python 2.

$ conda create -n gssha python=2 $ activate gssha (gssha)$ conda install -c conda-forge gsshapy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub Blockedhttps://github.com/CI-WATER/gsshapy/issues/16Blocked#issuecomment-297456057 , or mute the thread Blockedhttps://github.com/notifications/unsubscribe-auth/AGLIP7-OrKy0hlI3tsDL4iSdTF-bYTzNks5rz2higaJpZM4NB_6lBlocked . Blockedhttps://github.com/notifications/beacon/AGLIP62P-aCzq0w0c4E3K13uCcIopsfCks5rz2higaJpZM4NB_6l.gifBlocked

lahatte commented 7 years ago

I installed the current master gsshapy. It still gives the error. Of course, if you have to activate gssha (where the error is) before installing gsshapy, then it's no surprise the error is still there. :)

Thanks. Clay

Z:\Projects\FY16\Korea_North\AirForce\AOIs\NK_Texas\GSSHA\withLake\20170316_Thiessen>activate gssha The system cannot find the path specified.

(gssha) C:\Program Files\Anaconda3\envs\gssha\etc\conda\activate.d>set "GDAL_DRIVER_PATH="

(gssha) Z:\Projects\FY16\Korea_North\AirForce\AOIs\NK_Texas\GSSHA\withLake\20170316_Thiessen>

-----Original Message----- From: Alan D. Snow [mailto:notifications@github.com] Sent: Wednesday, April 26, 2017 10:53 AM To: CI-WATER/gsshapy Cc: Lahatte, Clay W ERDC-RDE-CHL-MS CIV; Author Subject: Re: [CI-WATER/gsshapy] Cannot find path error (#16)

Try installing the stable release. On windows it only works with Python 2 for now. So, make sure your python environment is Python 2.

$ conda create -n gssha python=2 $ activate gssha (gssha)$ conda install -c conda-forge gsshapy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub Blockedhttps://github.com/CI-WATER/gsshapy/issues/16Blocked#issuecomment-297456057 , or mute the thread Blockedhttps://github.com/notifications/unsubscribe-auth/AGLIP7-OrKy0hlI3tsDL4iSdTF-bYTzNks5rz2higaJpZM4NB_6lBlocked . Blockedhttps://github.com/notifications/beacon/AGLIP62P-aCzq0w0c4E3K13uCcIopsfCks5rz2higaJpZM4NB_6l.gifBlocked

snowman2 commented 7 years ago

OK. Try removing your old gssha environment:

$ conda env remove -n gssha

Then, create it again and install gsshapy:

$ conda create -n gssha python=2
$ activate gssha
(gssha)$ conda install -c conda-forge gsshapy
snowman2 commented 7 years ago

It is the most-recent release version. Don't worry about installing the master version as they are almost identical at this point.

lahatte commented 7 years ago

So do you mean it is the dev version? What is the url to that one?

Thanks.

-----Original Message----- From: Alan D. Snow [mailto:notifications@github.com] Sent: Wednesday, April 26, 2017 1:33 PM To: CI-WATER/gsshapy Cc: Lahatte, Clay W ERDC-RDE-CHL-MS CIV; Author Subject: Re: [CI-WATER/gsshapy] Cannot find path error (#16)

It is the most-recent release version. Don't worry about installing the master version as they are almost identical at this point.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub Blockedhttps://github.com/CI-WATER/gsshapy/issues/16Blocked#issuecomment-297501420 , or mute the thread Blockedhttps://github.com/notifications/unsubscribe-auth/AGLIP-Bp9zN_o_euwRCHH3eQdgA1msnlks5rz43UgaJpZM4NB_6lBlocked . Blockedhttps://github.com/notifications/beacon/AGLIPx83byGWDK6oMuTp-kpSpibKMhUvks5rz43UgaJpZM4NB_6l.gifBlocked

lahatte commented 7 years ago

Ok. Here's what happens. I do all but the last step. Activate gssha works fine. After the last step activate gssha returns the error.

-----Original Message----- From: Alan D. Snow [mailto:notifications@github.com] Sent: Wednesday, April 26, 2017 1:28 PM To: CI-WATER/gsshapy Cc: Lahatte, Clay W ERDC-RDE-CHL-MS CIV; Author Subject: Re: [CI-WATER/gsshapy] Cannot find path error (#16)

OK. Try removing your old gssha environment:

$ conda env remove -n gssha

Then, create it again and install gsshapy:

$ conda create -n gssha python=2 $ activate gssha (gssha)$ conda install -c conda-forge gsshapy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub Blockedhttps://github.com/CI-WATER/gsshapy/issues/16Blocked#issuecomment-297500101 , or mute the thread Blockedhttps://github.com/notifications/unsubscribe-auth/AGLIP6T8k31i7tfsTurNn_2VSV42LyuIks5rz4y2gaJpZM4NB_6lBlocked . Blockedhttps://github.com/notifications/beacon/AGLIP_nWgyJjBKUXb1P0gxLAsc8lhGxSks5rz4y2gaJpZM4NB_6l.gifBlocked

lahatte commented 7 years ago

Now I get this error trying to run the gssha script for the NK projects...

(gssha) Z:\Projects\FY16\Korea_North\AirForce\AOIs\NK_Texas\GSSHA\withLake\20170316_Thiessen>python Z:\Projects\FY16\Korea_North\Air Force\AOIs\NK_Texas\rapid_lsm_gssha_framework.py Traceback (most recent call last): File "Z:\Projects\FY16\Korea_North\AirForce\AOIs\NK_Texas\rapid_lsm_gssha_framework.py", line 2, in from gridtogssha.framework import GSSHA_WRF_Framework ImportError: No module named gridtogssha.framework

-----Original Message----- From: Alan D. Snow [mailto:notifications@github.com] Sent: Wednesday, April 26, 2017 1:28 PM To: CI-WATER/gsshapy Cc: Lahatte, Clay W ERDC-RDE-CHL-MS CIV; Author Subject: Re: [CI-WATER/gsshapy] Cannot find path error (#16)

OK. Try removing your old gssha environment:

$ conda env remove -n gssha

Then, create it again and install gsshapy:

$ conda create -n gssha python=2 $ activate gssha (gssha)$ conda install -c conda-forge gsshapy

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub Blockedhttps://github.com/CI-WATER/gsshapy/issues/16Blocked#issuecomment-297500101 , or mute the thread Blockedhttps://github.com/notifications/unsubscribe-auth/AGLIP6T8k31i7tfsTurNn_2VSV42LyuIks5rz4y2gaJpZM4NB_6lBlocked . Blockedhttps://github.com/notifications/beacon/AGLIP_nWgyJjBKUXb1P0gxLAsc8lhGxSks5rz4y2gaJpZM4NB_6l.gifBlocked

snowman2 commented 7 years ago

Woohoo! It worked.

You need to change it to:

from gsshapy.modeling import GSSHAWRFFramework

Also, go to: http://gsshapy.readthedocs.io/en/2.2.3/api/modeling/framework.html#gssha-wrf-framework

And scroll to: 'Example with Hotstart' to see some minor changes to input.

lahatte commented 7 years ago

Not working. Need better instruction.

Thanks. Clay

-----Original Message----- From: Alan D. Snow [mailto:notifications@github.com] Sent: Wednesday, April 26, 2017 2:01 PM To: CI-WATER/gsshapy Cc: Lahatte, Clay W ERDC-RDE-CHL-MS CIV; Author Subject: Re: [CI-WATER/gsshapy] Cannot find path error (#16)

Woohoo! It worked.

You need to change it to:

from gsshapy.grid import GSSHAWRFFramework

Also, got to: Blockedhttp://gsshapy.readthedocs.io/en/2.2.3/api/modeling/framework.htmlBlocked#gssha-wrf-framework

And scroll to: 'Example with Hotstart' to see some minor changes to input.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub Blockedhttps://github.com/CI-WATER/gsshapy/issues/16Blocked#issuecomment-297509216 , or mute the thread Blockedhttps://github.com/notifications/unsubscribe-auth/AGLIP7WdFuI03Bn6787VdOIOR_3MeAoHks5rz5RmgaJpZM4NB_6lBlocked . Blockedhttps://github.com/notifications/beacon/AGLIP-w0XLoTscsNroDI64j-HVz-OGF4ks5rz5RmgaJpZM4NB_6l.gifBlocked