Installation of setuptools failed

Issue #3 resolved
Alessandro Piccione
created an issue

I try to install PyInstaller (2.1) but it failed with "ImportError: No module named setuptools". So, I try pip-Win (v 1.6).

This is the error from the DOS Window:

C:\Program Files (x86)\Maxthon\Bin>"C:\Python27\python.exe" "C:\Users\alex\AppDa ta\Local\Temp\" Downloading Exception calling "DownloadFile" with "2" argument(s): "An exception occurred d uring a WebClient request." At line:1 char:47 + (new-object System.Net.WebClient).DownloadFile <<<< (' /packages/source/s/setuptools/', 'C:\Program Files (x86)\ Maxthon\Bin\') + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException

Traceback (most recent call last): File "C:\Users\alex\AppData\Local\Temp\", line 332, in <module> sys.exit(main()) File "C:\Users\alex\AppData\Local\Temp\", line 327, in main downloader_factory=options.downloader_factory, File "C:\Users\alex\AppData\Local\Temp\", line 287, in download_set uptools downloader(url, saveto) File "C:\Users\alex\AppData\Local\Temp\", line 174, in download_fil e_powershell _clean_check(cmd, target)

it end with DOS "pause", after a button click the pip-Win start and the main window program was showed and it contain this string: "Error. installation of setuptools failed".

Thanks, Alessandro

Comments (8)

  1. Alessandro Piccione reporter

    I've python version 2.7.5, installation is ok, but I had not set "C:\python27\Scripts" in the PATH. Home ADSL, no proxy is present. I had downloaded the setuptools v3.5.1. I had extracted the zip and launch the in the extracted folder. Now I've noticed that it re-download the zip. Ok, it seems the fail is on the PowerShell download command (line 172 of ez_setup). As soon as possible I'll try to execute this part: cmd = [ 'powershell', '-Command', "(new-object System.Net.WebClient).DownloadFile(%(url)r, %(target)r)" % vars(), ] _clean_check(cmd, target)

    I've copied the error from the DOS window, but I noticed only now that there is an extra space in the error message (just before ""): Downloading ... but I think it is only a copy/paste issue.

    If I'll find a way to reproduce the problem or for add some details I post here. Thanks.

  2. Log in to comment