From 505ee3b9398d2f853f561cdde499da149a31a00c Mon Sep 17 00:00:00 2001 From: "Colton J. Provias" Date: Thu, 7 May 2015 18:30:16 -0400 Subject: [PATCH] Fix for TypeError for implicit conversion `package_import` is a list, and on Python 3.4 it must be implicitly converted to a string before concatenation. --- pipreqs/pipreqs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index 6c7c86d..db8627a 100755 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -107,7 +107,7 @@ def get_locally_installed_packages(): break if package_import_name == "": logging.debug( - 'Could not determine import name for package ' + package_import) + 'Could not determine import name for package ' + str(package_import)) else: packages[package_import_name] = { 'version': package[1].replace(".dist", ""),