-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'Namespace' object has no attribute 'func' for python 3.6 or greater #39
Comments
Hi Ryan
and let me know if that works? |
Hey Sam! In my python 3 env that works and so does But while # 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
notice above |
oh YIKES, my b! It looks like |
- Fixed arg readout if no argument is passed to CLI. [Issue 39](#39). - Updated requirements to include DateTimeRange - Fixed issue with GDAL~=3 requirement for fiona 1.8.11 release
- Fixed arg readout if no argument is passed to CLI. [Issue 39](#39). - Updated requirements to include DateTimeRange - Fixed issue with GDAL~=3 requirement for fiona 1.8.11 release
Hi Ryan |
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
The text was updated successfully, but these errors were encountered: