Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(easy.install) easy.install is broken #65

Open
kousu opened this issue May 6, 2015 · 3 comments
Open

(easy.install) easy.install is broken #65

kousu opened this issue May 6, 2015 · 3 comments

Comments

@kousu
Copy link

kousu commented May 6, 2015

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
Copy link
Author

kousu commented May 6, 2015

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?

@ferventcoder
Copy link
Owner

Somewhat related - ferventcoder/nugetpackages#117

@ferventcoder
Copy link
Owner

@ferventcoder ferventcoder changed the title easy.install is broken (easy.install) easy.install is broken Nov 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants