zerolugithub / pythonxy

Automatically exported from code.google.com/p/pythonxy
0 stars 0 forks source link

pip install cannot install openopt from pypi, pip fails with not being able to find a vcvarsall.bat file, no compilers listed as dependencies #749

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If relevant, please answer to the following questions:
1. What version of Python(x,y) have you installed? 2.7.6.1
2. Which components have you installed (Python(x,y) installer:
componentpage): Recommended

Whatplugins?
pip, EnthoughtToolSuite, OpenCV, PIL, PyWavelets, WinMerge, cvxopt, pandas, 
pip, scikits.learn, scikits.image, simplejson, swig, sympy, vtk, virtualenv, 
xlrd, xlwt
3. Have you selected the option "Customize installation directories"? No
4. If the answer to 3. is yes, what installation directories have you
chosen?

5. Where did you install Python(x,y) itself?  Default path

6. Have you installed Python(x,y): For all users

7. What is your operating system? Windows 7

8. Is the operating system 64 bit? Yes

9. When you installed Python(x,y), were you logged in as : regular user

10. If you are using Windows Vista/7, have you installed Python(x,y): simply by 
double clicking

11. Regarding installed software on your machine, how did you clean your
machine before installing Python(x,y)  (multiple answers are possible):
a. you didn't do anything, you installed Python(x,y) directly on your
machine without precaution
b. you uninstalled any previous Python distribution (including the
official .msi)
c. you cleaned the Windows registry by removing all Python-related keys
d. you cleaned the environment variables by removing all deprecated
entries

No python on system.  Installed pythonxy without precaution.

What steps will reproduce the problem?
1. pip install openopt
2.
3.

What is the expected output? What do you see instead?
openopt and setproctitle are installed.

error: Unable to find vcvarsall.bat

Please provide any additional information below.

Original issue reported on code.google.com by bdlab...@gmail.com on 18 Aug 2014 at 7:16

Attachments:

GoogleCodeExporter commented 9 years ago
Install VS2008 Express:
http://stackoverflow.com/a/15319069/39962

Next install patched version of setproctitle:
pip install 
git+https://github.com/patstew/py-setproctitle/commits/master#egg=setproctitle

Now you can try and install
pip install openopt --no-deps

Original comment by grizzly.nyo on 19 Aug 2014 at 2:41

GoogleCodeExporter commented 9 years ago
Pardon my windows inexperience.
Step 1. complete
Step 2. fails.
pip install 
git+https://github.com/patstew/py-setproctitle/commits/master#egg=setproctitle

Downloading/unpacking setproctitle from 
git+https://github.com/patstew/py-setproctitle/commits/master
  Cloning https://github.com/patstew/py-setproctitle/commits/master to c:\users\blabitt\appdata\local\temp\pip_build_blabitt\setproctitle
Cleaning up...
Cannot find command 'git'
Storing debug log for failure in C:\Users\blabitt\pip\pip.log

I don't have git.  Do I need it? (installed it after I tried the next step)

Then I tried:
C:\Python27\lib\site-packages\xy>pip install 
https://github.com/patstew/py-setproctitle/commits/master#egg=setproctitle
Downloading/unpacking setproctitle from 
https://github.com/patstew/py-setproctitle/commits/master
Cleaning up...
Exception:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 279, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python27\lib\site-packages\pip\req.py", line 1198, in prepare_files
    do_download,
  File "C:\Python27\lib\site-packages\pip\req.py", line 1376, in unpack_url
    self.session,
  File "C:\Python27\lib\site-packages\pip\download.py", line 583, in unpack_http_url
    unpack_file(temp_location, location, content_type, link)
  File "C:\Python27\lib\site-packages\pip\util.py", line 627, in unpack_file
    and is_svn_page(file_contents(filename))):
  File "C:\Python27\lib\site-packages\pip\util.py", line 210, in file_contents
    return fp.read().decode('utf-8')
  File "C:\Python27\lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8b in position 1: invalid 
start byte

Storing debug log for failure in C:\Users\blabitt\pip\pip.log

Installed git.  However, the command below cannot find it.

C:\Python27\lib\site-packages\xy>pip install 
git+https://github.com/patstew/py-setproctitle/commits/master#egg=setproctitle
Downloading/unpacking setproctitle from 
git+https://github.com/patstew/py-setproctitle/commits/master
  Cloning https://github.com/patstew/py-setproctitle/commits/master to c:\users\blabitt\appdata\local\temp\pip_build_blabitt\setproctitle
Cleaning up...
Cannot find command 'git'
Storing debug log for failure in C:\Users\blabitt\pip\pip.log

Seem to be stuck on step 2.  Thanks for your help so far.

Original comment by bdlab...@gmail.com on 19 Aug 2014 at 6:07

GoogleCodeExporter commented 9 years ago
you should add <path to git install>\cmd to your PATH and try again.

Original comment by grizzly.nyo on 20 Aug 2014 at 1:08

GoogleCodeExporter commented 9 years ago
Set path to C:\Program Files (x86)\Git\bin;path

Result of trying again:

C:\Python27\lib\site-packages\xy>pip install 
git+https://github.com/patstew/py-setproctitle/commits/master#egg=setproctitle
Downloading/unpacking setproctitle from 
git+https://github.com/patstew/py-setproctitle/commits/master
  Cloning https://github.com/patstew/py-setproctitle/commits/master to c:\users\blabitt\appdata\local\temp\pip_build_blabitt\setproctitle
fatal: repository 'https://github.com/patstew/py-setproctitle/commits/master/' 
not found
  Complete output from command "c:\Program Files (x86)\git\bin\git.exe" clone -q https://github.com/patstew/py-setproctitle/commits/master c:\users\blabitt\appdata\local\temp\pip_build_blabitt\setproctitle:

----------------------------------------
Cleaning up...
Command "c:\Program Files (x86)\git\bin\git.exe" clone -q 
https://github.com/patstew/py-setproctitle/commits/master 
c:\users\blabitt\appdata\local\temp\pip_build_blabitt\setproctitle failed with 
error code 128 in None
Storing debug log for failure in C:\Users\blabitt\pip\pip.log

Seems repository not found? typo?

Did you mean https://github.com/patstew/py-setproctitle.git?

That yielded:

C:\Python27\lib\site-packages\xy>pip install 
git+https://github.com/patstew/py-setproctitle.git
Downloading/unpacking git+https://github.com/patstew/py-setproctitle.git
  Cloning https://github.com/patstew/py-setproctitle.git to c:\users\blabitt\appdata\local\temp\pip-9wazxr-build
  Running setup.py (path:c:\users\blabitt\appdata\local\temp\pip-9wazxr-build\setup.py) egg_info for package from git+https://github.com/patstew/py-setproctitle.git

    warning: no files found matching 'MANIFEST'
Installing collected packages: setproctitle
  Running setup.py install for setproctitle
    building 'setproctitle' extension
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSPT_VERSION=1.1.8 -IC:\Python27\include -IC:\Python27\PC /Tcsrc/setproctitle.c /Fobuild\temp.win32-2.7\Release\src/setproctitle.obj
    setproctitle.c
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSPT_VERSION=1.1.8 -IC:\Python27\include -IC:\Python27\PC /Tcsrc/spt_debug.c /Fobuild\temp.win32-2.7\Release\src/spt_debug.obj
    spt_debug.c
    src/spt_debug.c(28) : warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdlib.h(447) : see declaration of 'getenv'
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSPT_VERSION=1.1.8 -IC:\Python27\include -IC:\Python27\PC /Tcsrc/spt_setup.c /Fobuild\temp.win32-2.7\Release\src/spt_setup.obj
    spt_setup.c
    src/spt_setup.c(21) : warning C4273: '_environ' : inconsistent dll linkage
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdlib.h(317) : see previous definition of '_environ'
    src/spt_setup.c(474) : warning C4102: 'exit' : unreferenced label
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSPT_VERSION=1.1.8 -IC:\Python27\include -IC:\Python27\PC /Tcsrc/spt_status.c /Fobuild\temp.win32-2.7\Release\src/spt_status.obj
    spt_status.c
    src/spt_status.c(71) : warning C4273: '_environ' : inconsistent dll linkage
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdlib.h(317) : see previous definition of '_environ'
    src/spt_status.c(394) : warning C4013: '_getpid' undefined; assuming extern returning int
    src/spt_status.c(394) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
            C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(366) : see declaration of 'sprintf'
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSPT_VERSION=1.1.8 -IC:\Python27\include -IC:\Python27\PC /Tcsrc/spt_strlcpy.c /Fobuild\temp.win32-2.7\Release\src/spt_strlcpy.obj
    spt_strlcpy.c
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:C:\Python27\libs /LIBPATH:C:\Python27\PCbuild /EXPORT:initsetproctitle build\temp.win32-2.7\Release\src/setproctitle.obj build\temp.win32-2.7\Release\src/spt_debug.obj build\temp.win32-2.7\Release\src/spt_setup.obj build\temp.win32-2.7\Release\src/spt_status.obj build\temp.win32-2.7\Release\src/spt_strlcpy.obj /OUT:build\lib.win32-2.7\setproctitle.pyd /IMPLIB:build\temp.win32-2.7\Release\src\setproctitle.lib /MANIFESTFILE:build\temp.win32-2.7\Release\src\setproctitle.pyd.manifest
       Creating library build\temp.win32-2.7\Release\src\setproctitle.lib and object build\temp.win32-2.7\Release\src\setproctitle.exp

    warning: no files found matching 'MANIFEST'
Successfully installed setproctitle
Cleaning up...

Original comment by bdlab...@gmail.com on 20 Aug 2014 at 9:33

Attachments:

GoogleCodeExporter commented 9 years ago
"Successfully installed setproctitle" 

looks like a good outcome.

Try:
"pip show setproctitle" to verify.

Original comment by grizzly.nyo on 21 Aug 2014 at 4:14