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/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219890 --- 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 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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219890-21822-r7DXJri7Nu>
