Open Iristyle opened 11 years ago
Hey ... I'll have to test more times this. there isnt a test unit for this.
could you verify this?
2012/10/21 Ethan J. Brown notifications@github.com
I think that this package works if Python is installed to c:\Python27
But if you have a chocolatey_bin_root set to /tools like I do, then Python ends up in c:\tools\Python27
Here is the output of cinst easy.install
You can see that it dies with ImportError: No module named site ... and easy_install is not available through the command line or installed to the Python bin directory.
C:\Users\Administrator\Documents\Source\ChocolateyPackages\SickBeard [(3b12189...) +1 ~1 -0 !]> cinst easy.install
Chocolatey (0.9.8.19) is installing easy.install to "C:\Chocolatey\lib". By installing you accept the license for the p
ackage you are installing (please run chocolatey /? for full license acceptance terms).
Chocolatey Runner (EASY.INSTALL v0.6.11.3)
PowerShell (chocolateyinstall.ps1)
PATH environment variable does not have C:\tools\Python27\Scripts in it. Adding... Setting PYTHONHOME environment variable to 'C:\tools\Python27' PS: PYTHONHOME variable is not required to Python works, but it is a good practice to have it. Using python home at 'C:\tools\Python27' Installing easy_install for Python(2.7.3)... Installing setuptools from http://pypi.python.org/pypi/setuptools ... Downloading easy.install (http://peak.telecommunity.com/dist/ez_setup.py) to C:\Users\ADMINI~1\AppData\Local\Temp\2\ez_s etup.py Running python file: 'C:\Users\ADMINI~1\AppData\Local\Temp\2\ez_setup.py' ImportError: No module named site
Executable Links (*.exe)
There are no executables (that are not ignored) in the package.
Chocolatey has finished installing 'easy.install' - check log for errors.
— Reply to this email directly or view it on GitHubhttps://github.com/adorepump/chocolatey-packages/issues/6.
Abraços Elliando Dias;
Sorry.. was in a bit of a rush earlier, so didn't have a lot of time to debug.
Running ez_setup.py
does succeed by itself, yes.
C:\Users\Administrator> python C:\Users\ADMINI~1\AppData\Local\Temp\2\ez_setup.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to c:\tools\python27\lib\site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install-script.py script to C:\tools\Python27\Scripts
Installing easy_install.exe script to C:\tools\Python27\Scripts
Installing easy_install.exe.manifest script to C:\tools\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\tools\Python27\Scripts
Installing easy_install-2.7.exe script to C:\tools\Python27\Scripts
Installing easy_install-2.7.exe.manifest script to C:\tools\Python27\Scripts
Installed c:\tools\python27\lib\site-packages\setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
Oddly enough.. I re-ran it again.. and it worked. (Note that I'm maintaining Python.Cheetah, and I have easy.install as a dependency). Not sure if this was some sort of intermittent hiccup or what.
It's possible it had something to do with environment variables. I did uninstall everything before retrying it all... but there may have been a few leftover environment variables that weren't there the first time.
If I get a chance to try this on a totally clean machine, I will... but I suspect there's a bug in here somewhere.
C:\Users\Administrator> cinst python.cheetah
=====================================================
Chocolatey (0.9.8.19) is installing python.cheetah to "C:\Chocolatey\lib". By installing you accept the license for the
package you are installing (please run chocolatey /? for full license acceptance terms).
=====================================================
-------------------------
Chocolatey Runner (EASY.INSTALL v0.6.11.3)
-------------------------
-------------------------
PowerShell (chocolateyinstall.ps1)
-------------------------
Setting PYTHONHOME environment variable to 'C:\tools\Python27'
PS: PYTHONHOME variable is not required to Python works, but it is a good practice to have it.
Using python home at 'C:\tools\Python27'
Installing easy_install for Python(2.7.3)...
Installing setuptools from http://pypi.python.org/pypi/setuptools ...
Downloading easy.install (http://peak.telecommunity.com/dist/ez_setup.py) to C:\Users\ADMINI~1\AppData\Local\Temp\2\ez_s
etup.py
Running python file: 'C:\Users\ADMINI~1\AppData\Local\Temp\2\ez_setup.py'
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Processing setuptools-0.6c11-py2.7.egg
Copying setuptools-0.6c11-py2.7.egg to c:\tools\python27\lib\site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install-script.py script to C:\tools\Python27\Scripts
Installing easy_install.exe script to C:\tools\Python27\Scripts
Installing easy_install.exe.manifest script to C:\tools\Python27\Scripts
Installing easy_install-2.7-script.py script to C:\tools\Python27\Scripts
Installing easy_install-2.7.exe script to C:\tools\Python27\Scripts
Installing easy_install-2.7.exe.manifest script to C:\tools\Python27\Scripts
Installed c:\tools\python27\lib\site-packages\setuptools-0.6c11-py2.7.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 10/22/2012 09:19 easy.install
easy.install has finished succesfully! The chocolatey gods have answered your request!
Ahh.. I think I know happened... your bug is here:
Adding environment variables this way is needed, but will not affect the current running session. I will do a quick pull.
I thought it was something with the PATH.
I dont think it is a bug error, maybe, a logic error.
I´m studying how to resolve this.
thanks for your comments and find this bug
2012/10/22 Ethan J. Brown notifications@github.com
adorepump/chocolatey-packages#7https://github.com/adorepump/chocolatey-packages/issues/7
— Reply to this email directly or view it on GitHubhttps://github.com/adorepump/chocolatey-packages/issues/6#issuecomment-9663754.
Abraços Elliando Dias;
Yeah, in case you saw the first comment re:PATH ... I think that was a red herring. Since you were using the Chocolatey calls to set PATH, it properly updates both the current session, and the user account.
It would appear that it was the PYTHONHOME issue, as my pull request takes care of.
I think that this package works if Python is installed to c
:\Python27
But if you have a
chocolatey_bin_root
set to/tools
like I do, then Python ends up inc:\tools\Python27
Here is the output of
cinst easy.install
You can see that it dies with
ImportError: No module named site
... andeasy_install
is not available through the command line or installed to the Python bin directory.