ktindiana / fetchsep

Identify SEP elevations above background in a time series (idsep) and analyze events individually (opsep)
MIT License
1 stars 2 forks source link

Check commands in the PATH #9

Open rickyegeland opened 1 year ago

rickyegeland commented 1 year ago

Some users have reported not being able to find the opsep etc commands after doing a pip install. Report from SPREADfAST developer:

I am trying to run this command in a Linux terminal window:

opsep --StartDate 2017-09-06 --EndDate 2017-09-06 --Experiment user --ModelName SPREAdFAST --UserFile model/fluxData_f32_170906_01 --FluxType integral --Threshold "30,1;50,1" --JSONType model --showplot --saveplot

But I get this error:

opsep: command not found

Check how pip commands make way to the PATH, and whether they are immediately available in the pip install terminal session.

rickyegeland commented 1 year ago

This question has the right answer, I think:

https://stackoverflow.com/questions/35898734/pip-installs-packages-successfully-but-executables-not-found-from-command-line

Users can find where their pip install directory is with python3 -m site --user-base. Append /bin to that and add that to the PATH in the shell rc. e.g. for bash:

echo "export PATH=\"`python3 -m site --user-base`/bin:\$PATH\"" >> ~/.bashrc
source ~/.bashrc
rickyegeland commented 1 year ago

We can resolve this issue by testing this solution and writing good instructions in the README.