Date: Fri, 09 Jun 2017 21:28:36 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 219890] print/cloudprint: pkg_resources.DistributionNotFound: The 'argparse' Message-ID: <bug-219890-21822-r7DXJri7Nu@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-219890-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-219890-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219890 --- Comment #3 from nimrodl@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 t= hat were causing the errors, but then the calls to=20 parser =3D argparse.ArgumentParser() were failing.=20 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.=20=20 I'm sure there's someone with more python than I know that can fix it bette= r.=20 I can provide a simple patch to show what I did. --=20 You are receiving this mail because: You are on the CC list for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219890-21822-r7DXJri7Nu>