--- a/src/eric7/PipInterface/Pip.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/PipInterface/Pip.py Mon Nov 07 17:19:58 2022 +0100 @@ -20,6 +20,7 @@ from eric7.EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired from eric7.EricWidgets import EricMessageBox from eric7.EricWidgets.EricApplication import ericApp +from eric7.UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog try: from eric7.EricNetwork.EricSslErrorHandler import EricSslErrorHandler @@ -505,10 +506,6 @@ """ res = False if packages and venvName: - from eric7.UI.DeleteFilesConfirmationDialog import ( - DeleteFilesConfirmationDialog, - ) - dlg = DeleteFilesConfirmationDialog( self.parent(), self.tr("Uninstall Packages"), @@ -533,9 +530,9 @@ @param venvName name of the virtual environment to be used @type str """ + from .PipFileSelectionDialog import PipFileSelectionDialog + if venvName: - from .PipFileSelectionDialog import PipFileSelectionDialog - dlg = PipFileSelectionDialog(self, "requirements", install=False) if dlg.exec() == QDialog.DialogCode.Accepted: requirements, _user = dlg.getData() @@ -546,10 +543,6 @@ except OSError: return - from eric7.UI.DeleteFilesConfirmationDialog import ( - DeleteFilesConfirmationDialog, - ) - dlg = DeleteFilesConfirmationDialog( self.parent(), self.tr("Uninstall Packages"),