sid5432 / pyOTDR

Simple OTDR SOR file parser written in Python
GNU General Public License v3.0
71 stars 28 forks source link

pyotdr command not found error in linux #10

Closed vivindeveloper closed 5 years ago

vivindeveloper commented 5 years ago

vivin@vivin-X540SAA:~/Downloads/pyOTDR-master/data$ ls demo_ab-dump.json M200_Sample_005_S13-dump.json sample1310_lowDR.sor demo_ab-dump.xml M200_Sample_005_S13.sor sample1310_lowDR-trace.dat demo_ab.sor M200_Sample_005_S13-trace.dat demo_ab-trace.dat sample1310_lowDR-dump.json vivin@vivin-X540SAA:~/Downloads/pyOTDR-master/data$ pyotdr.py demo_ab.sor pyotdr.py: command not found

I am not able to parse this demo file in linux. any suggestions tp what is the issue

sid5432 commented 5 years ago

It looks like you are in the "data" folder, while the pyotdr.py program is in the folder above; that is why it is reporting "command not found". Try this (in the "data" folder):

../pyotdr.py demo_ab.sor

or if you are in the Download/pyOTDR-master/ folder, do

./pyotdr.py data/demo_ab.sor

vivindeveloper commented 5 years ago

Thanks!!!