chocolatey-packages icon indicating copy to clipboard operation
chocolatey-packages copied to clipboard

(easy.install) easy.install is broken

Open kousu opened this issue 9 years ago • 3 comments

C:\Windows\system32>choco install --force easy.install
Chocolatey v0.9.9.5
Installing the following packages:
easy.install
By installing you accept licenses for the packages.

easy.install v0.6.11.4 (forced)
The package easy.install wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Do you want to run the script?
 1) yes
 2) no
 3) print
yes
 Setting PYTHONHOME environment variable to 'C:\tools\python3'
 PS: PYTHONHOME variable is not required to Python works, but it is a good practice to have it.
 Using python home at 'C:\tools\python3'
 Installing easy_install for Python(3.4.3)...
 Installing distribute, Distribute is a fork of the Setuptools project. works with python versions >= 3.0
 distribute homepage: http://pypi.python.org/pypi/distribute
 Running python file: 'C:\Users\john\AppData\Local\Temp\distribute_setup.py'
   File "C:\Users\john\AppData\Local\Temp\distribute_setup.py", line 1
     <!DOCTYPE html>
     ^
 WARNING: Write-ChocolateySuccess is deprecated. If you are the maintainer,
 SyntaxError: invalid syntax
 please remove it from your package file.
The install of easy.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\easy.install\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 package(s). 1 package(s) failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures:
 - easy.install

C:\Windows\system32>

And because easy.install fails, so does pip.

Python3.4 ships pip and easy_install. Would you update the python install script to add C:\tools\python3\Scripts to %PATH% and delete pip and easy.install from chocolatey? If I install the python3 msi manually and choose "Add Python to PATH" I get pip, so you can probably accomplish this just by giving it a flag.

Thanks for your efforts. We all rely on them!

(I tried to submit this via https://chocolatey.org/packages/easy.install/ContactOwners, but that's broken too ;))

kousu avatar May 06 '15 22:05 kousu

An addendum!

Somehow (via the .msi?) my user account has ended up with C:\tools\python3\Scripts in its %PATH%, but the System %PATH% does not have it, which is why. I am not sure who is responsible here. My user account is perfectly capable of writing to c:\tools\python3\lib\site-packages (oh dear). It seems like pip should be available in both places, though, and in either case pip and easy.install should defer to python. Maybe they can just be empty packages which simply depend on python?

kousu avatar May 06 '15 22:05 kousu

Somewhat related - https://github.com/ferventcoder/nugetpackages/issues/117

ferventcoder avatar Jul 16 '15 12:07 ferventcoder

See https://pythonhosted.org/setuptools/easy_install.html / and the actual instructions should be https://pypi.python.org/pypi/setuptools

ferventcoder avatar Aug 14 '15 19:08 ferventcoder