[Bug 219890] print/cloudprint: pkg_resources.DistributionNotFound: The 'argparse'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 9 21:28:36 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219890

--- Comment #3 from nimrodl at gmail.com ---
I don't know much about python and using libraries in it, but here's what I was
able to hack up based on what I know.

I realize that the py-argparse port was removed since the functionality was
included in the standard library.  I tried removing the import statements that
were causing the errors, but then the calls to 

parser = argparse.ArgumentParser()

were failing. 

I found a package py-configargparse which claims to be a drop in replacement
for argparse.  I modified the sources to reflect configargparse in all
locations (3) where argparse was referenced.  I rebuilt the port and it's
working for me.  

I'm sure there's someone with more python than I know that can fix it better. 
I can provide a simple patch to show what I did.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-python mailing list