mirror of
				https://github.com/clearml/clearml
				synced 2025-06-26 18:16:07 +00:00 
			
		
		
		
	Fix detect installed packages when Trains is not imported directly.
This commit is contained in:
		
							parent
							
								
									6221c6c096
								
							
						
					
					
						commit
						2b75c933ee
					
				| @ -77,6 +77,8 @@ class GenerateReqs(object): | ||||
|             logger.info('Checking module: %s', name) | ||||
|             if name in self._installed_pkgs: | ||||
|                 pkg_name, version = self._installed_pkgs[name] | ||||
|                 if name not in modules: | ||||
|                     modules.add(name, name, 0) | ||||
|                 reqs.add(pkg_name, version, modules[name]) | ||||
|             elif name in modules: | ||||
|                 guess.add(name, 0, modules[name]) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 allegroai
						allegroai