Installation of PySAR on UBUNTU 17.04

47 views
Skip to first unread message

desire muhire

unread,
Sep 29, 2017, 10:37:23 AM9/29/17
to PySAR
Dear,
I followed the installation of PySAR on UBUNTU 17.04 from :
https://yunjunz.github.io/PySAR/

But, I failed to run pysarApp.py -h
Here is my command line screen:

toshiba@ubuntu:~/Bureau/SARWORK$ pysarApp.py -h
Traceback (most recent call last):
  File "/home/toshiba/python/PySAR-1.2.0/pysar/pysarApp.py", line 43, in <module>
    import pysar
ImportError: No module named pysar



Where ~/Bureau/SARWORK is my working directory.

Thanks!

 

Yunjun Zhang

unread,
Sep 29, 2017, 10:18:01 PM9/29/17
to PySAR
Dear desire,

It looks like pysar is identified as executable program, but not as python module yet. It could be because $PYTHONPATH variable is referenced before definition, please try to add the following to the beginning of your .cshrc file:

if ( ! $?PYTHONPATH ) then
    setenv PYTHONPATH ""
endif

Or if you are using bash instead of csh/tcsh, add the following to the beginning of your .bashrc file:

if [ -z ${PYTHONPATH+x} ]; then export PYTHONPATH=""; fi

I have updated the README file in the website according to this also, for the reference.

After save the file, please re-source it and run the command again. Don't hesitate to let me know if it still does not please.

Yunjun
Reply all
Reply to author
Forward
0 new messages