diff -Nur pkgship-2.2.0/packageship/application/core/pkginfo/pkg.py pkgship-2.2.0-new/packageship/application/core/pkginfo/pkg.py
--- pkgship-2.2.0/packageship/application/core/pkginfo/pkg.py	2021-08-14 22:23:58.000000000 +0800
+++ pkgship-2.2.0-new/packageship/application/core/pkginfo/pkg.py	2021-08-25 15:34:41.691761866 +0800
@@ -180,13 +180,15 @@
                 install_require_info = component_info.get("install_require")
                 required_by_bin = []
                 for req_info in install_require_info:
-                    required_by_bin.append(req_info.get("req_bin_name"))
+                    if req_info.get("req_bin_name"):
+                        required_by_bin.append(req_info.get("req_bin_name"))
 
                 # getting required_by_src
                 build_require_info = component_info.get("build_require")
                 required_by_src = []
                 for req_info in build_require_info:
-                    required_by_src.append(req_info.get("req_src_name"))
+                    if req_info.get("req_src_name"):
+                        required_by_src.append(req_info.get("req_src_name"))
 
                 component_dict = {"component": component_info.get("component"),
                                   "required_by_bin": required_by_bin,
