Closed rbavery closed 4 years ago
Hi Ryan Can you try
porder -h
and let me know if that works?
Hey Sam! In my python 3 env that works and so does porder version
and porder quota
But while porder idlist
works with python 2.7, it interprets args incorrectly with python 3
# rave at rave-thinkpad in ~/planet_tutorial on git:master ✖︎ [15:20:18]
→ porder quota idlist --input "/home/rave/planet_tutorial/san_pedro_section.geojson" --start "2019-06-01" --end "2019-06-08" --item "PSScene4Band" --asset "analytic_sr" --outfile "/home/rave/planet_tutorial/data/idlist.csv" --cmax ".05" --number "1" --overlap "100"
usage: porder [-h]
{version,quota,shp2geojson,base64,simplify,idlist,difflist,idsplit,idcheck,bundles,order,ordersize,ostate,stats,download,multipart,multiproc}
...
porder: error: unrecognized arguments: idlist --input /home/rave/planet_tutorial/san_pedro_section.geojson --start 2019-06-01 --end 2019-06-08 --item PSScene4Band --asset analytic_sr --outfile /home/rave/planet_tutorial/data/idlist.csv --cmax .05 --number 1 --overlap 100
Hi Ryan You tried to use two tools in the same line
porder quota idlist
porder quota is one tool and porder idlist is another
notice above
oh YIKES, my b! It looks like idlist
works on python 3 so that's good! I'm going to assume the only thing that doesn't behave is just running porder
which isn't a big deal.
Hi Ryan This has been fixed and the release 0.5.7 should work for porder without arguments. Closing this, for now, let me know if this reoccurs
Fresh installs of porder with python versions 3.6.7 or greater now bark when running porder
I tested this on a python 2.7 environment and the error does not occur. To reproduce the error:
I'm not sure why this fails, being unfamiliar with argparse, but maybe this SO post helps? https://stackoverflow.com/questions/16878315/what-is-the-right-way-to-treat-python-argparse-namespace-as-a-dictionary