code: def tryImportModule(self, name):
          
          self._name = name
          try:
              import importlib
              self._module = importlib.import_module(name)
          except ImportError:
              self._module = None
              self._version = ''
              self._packagePath = ''
          else:
              if self._versionAttribute:
                  self._version = getattr(self._module, self._versionAttribute, '???')
              if self._pathAttribute:
                  self._packagePath = getattr(self._module, self._pathAttribute, '???')
docs: Imports the module and sets version information
              If the module cannot be imported, the version is set to empty values.