Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

psycopg2 installation error

By: a guest on Jul 26th, 2012  |  syntax: None  |  size: 5.53 KB  |  hits: 55  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. C:\Users\bdarryl\code\temp>pip install psycopg2
  3. Downloading/unpacking psycopg2
  4.   Running setup.py egg_info for package psycopg2
  5.  
  6.     no previously-included directories found matching 'doc\src\_build'
  7. Installing collected packages: psycopg2
  8.   Running setup.py install for psycopg2
  9.     building 'psycopg2._psycopg' extension
  10.     Traceback (most recent call last):
  11.       File "<string>", line 1, in <module>
  12.       File "C:\Users\bdarryl\code\temp\build\psycopg2\setup.py", line 557, in <m
  13. odule>
  14.         ext_modules=ext)
  15.       File "C:\Python27\lib\distutils\core.py", line 152, in setup
  16.         dist.run_commands()
  17.       File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
  18.         self.run_command(cmd)
  19.       File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
  20.         cmd_obj.run()
  21.       File "C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools
  22. \command\install.py", line 56, in run
  23.       File "C:\Python27\lib\distutils\command\install.py", line 563, in run
  24.         self.run_command('build')
  25.       File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
  26.         self.distribution.run_command(command)
  27.       File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
  28.         cmd_obj.run()
  29.       File "C:\Python27\lib\distutils\command\build.py", line 127, in run
  30.         self.run_command(cmd_name)
  31.       File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
  32.         self.distribution.run_command(command)
  33.       File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
  34.         cmd_obj.run()
  35.       File "C:\Python27\lib\distutils\command\build_ext.py", line 339, in run
  36.         self.build_extensions()
  37.       File "C:\Python27\lib\distutils\command\build_ext.py", line 448, in build_
  38. extensions
  39.         self.build_extension(ext)
  40.       File "C:\Users\bdarryl\code\temp\build\psycopg2\setup.py", line 275, in bu
  41. ild_extension
  42.         build_ext.build_extension(self, extension)
  43.       File "C:\Python27\lib\distutils\command\build_ext.py", line 498, in build_
  44. extension
  45.         depends=ext.depends)
  46.       File "C:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
  47.         self.initialize()
  48.       File "C:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
  49.  
  50.         vc_env = query_vcvarsall(VERSION, plat_spec)
  51.       File "C:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcva
  52. rsall
  53.         raise ValueError(str(list(result.keys())))
  54.     ValueError: [u'path']
  55.     Complete output from command C:\Python27\python.exe -c "import setuptools;__
  56. file__='C:\\Users\\bdarryl\\code\\temp\\build\\psycopg2\\setup.py';exec(compile(
  57. open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --singl
  58. e-version-externally-managed --record c:\users\bdarryl\appdata\local\temp\pip-ve
  59. zeyg-record\install-record.txt:
  60.     running install
  61.  
  62. running build
  63.  
  64. running build_py
  65.  
  66. running build_ext
  67.  
  68. building 'psycopg2._psycopg' extension
  69.  
  70. Traceback (most recent call last):
  71.  
  72.   File "<string>", line 1, in <module>
  73.  
  74.   File "C:\Users\bdarryl\code\temp\build\psycopg2\setup.py", line 557, in <modul
  75. e>
  76.  
  77.     ext_modules=ext)
  78.  
  79.   File "C:\Python27\lib\distutils\core.py", line 152, in setup
  80.  
  81.     dist.run_commands()
  82.  
  83.   File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
  84.  
  85.     self.run_command(cmd)
  86.  
  87.   File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
  88.  
  89.     cmd_obj.run()
  90.  
  91.   File "C:\Python27\lib\site-packages\setuptools-0.6c11-py2.7.egg\setuptools\com
  92. mand\install.py", line 56, in run
  93.  
  94.   File "C:\Python27\lib\distutils\command\install.py", line 563, in run
  95.  
  96.     self.run_command('build')
  97.  
  98.   File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
  99.  
  100.     self.distribution.run_command(command)
  101.  
  102.   File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
  103.  
  104.     cmd_obj.run()
  105.  
  106.   File "C:\Python27\lib\distutils\command\build.py", line 127, in run
  107.  
  108.     self.run_command(cmd_name)
  109.  
  110.   File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
  111.  
  112.     self.distribution.run_command(command)
  113.  
  114.   File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
  115.  
  116.     cmd_obj.run()
  117.  
  118.   File "C:\Python27\lib\distutils\command\build_ext.py", line 339, in run
  119.  
  120.     self.build_extensions()
  121.  
  122.   File "C:\Python27\lib\distutils\command\build_ext.py", line 448, in build_exte
  123. nsions
  124.  
  125.     self.build_extension(ext)
  126.  
  127.   File "C:\Users\bdarryl\code\temp\build\psycopg2\setup.py", line 275, in build_
  128. extension
  129.  
  130.     build_ext.build_extension(self, extension)
  131.  
  132.   File "C:\Python27\lib\distutils\command\build_ext.py", line 498, in build_exte
  133. nsion
  134.  
  135.     depends=ext.depends)
  136.  
  137.   File "C:\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
  138.  
  139.     self.initialize()
  140.  
  141.   File "C:\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
  142.  
  143.     vc_env = query_vcvarsall(VERSION, plat_spec)
  144.  
  145.   File "C:\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsal
  146. l
  147.  
  148.     raise ValueError(str(list(result.keys())))
  149.  
  150. ValueError: [u'path']
  151.  
  152. ----------------------------------------
  153. Command C:\Python27\python.exe -c "import setuptools;__file__='C:\\Users\\bdarry
  154. l\\code\\temp\\build\\psycopg2\\setup.py';exec(compile(open(__file__).read().rep
  155. lace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-mana
  156. ged --record c:\users\bdarryl\appdata\local\temp\pip-vezeyg-record\install-recor
  157. d.txt failed with error code 1 in C:\Users\bdarryl\code\temp\build\psycopg2
  158. Storing complete log in C:\Users\bdarryl\AppData\Roaming\pip\pip.log