Advertisement
Guest User

Backtrace for compilation issue in PyQt

a guest
Aug 31st, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.98 KB | None | 0 0
  1. ImportError                               Traceback (most recent call last)
  2. <ipython-input-2-840d7fb94889> in <module>()
  3. ----> 1 import pyqt_fit1d
  4.  
  5. C:\Anaconda\Scripts\pyqt_fit1d.py in <module>()
  6.       2 import matplotlib
  7.       3 matplotlib.use('Qt4Agg')
  8. ----> 4 from pyqt_fit import pyqt_fit1d
  9.       5 from PyQt4 import QtGui
  10.       6 import matplotlib
  11.  
  12. C:\Anaconda\lib\site-packages\pyqt_fit\__init__.py in <module>()
  13.      13
  14.      14 from . import functions, residuals
  15. ---> 15 from . import bootstrap, plot_fit, curve_fitting, nonparam_regression
  16.      16 from .curve_fitting import CurveFitting
  17.      17 from path import path
  18.  
  19. C:\Anaconda\lib\site-packages\pyqt_fit\bootstrap.py in <module>()
  20.      10 from scipy import optimize
  21.      11 from collections import namedtuple
  22. ---> 12 from . import nonparam_regression
  23.      13 from . import sharedmem
  24.      14 import multiprocessing as mp
  25.  
  26. C:\Anaconda\lib\site-packages\pyqt_fit\nonparam_regression.py in <module>()
  27.       7 from __future__ import division, absolute_import, print_function
  28.       8 import numpy as np
  29. ----> 9 from . import npr_methods, kernels, kde_bandwidth
  30.      10 from scipy import linalg
  31.      11
  32.  
  33. C:\Anaconda\lib\site-packages\pyqt_fit\npr_methods.py in <module>()
  34.      11 from .compat import irange
  35.      12 from .cyth import HAS_CYTHON
  36. ---> 13 from . import kde
  37.      14 from . import py_local_linear
  38.      15 from . import kernels
  39.  
  40. C:\Anaconda\lib\site-packages\pyqt_fit\kde.py in <module>()
  41.      51 from __future__ import division, absolute_import, print_function
  42.      52 import numpy as np
  43. ---> 53 from .kernels import normal_kernel1d
  44.      54 from . import kde_methods
  45.      55 from .kde_bandwidth import variance_bandwidth, silverman_covariance, sco
  46. tts_covariance, botev_bandwidth
  47.  
  48. C:\Anaconda\lib\site-packages\pyqt_fit\kernels.py in <module>()
  49.      40
  50.      41 if HAS_CYTHON:
  51. ---> 42     useCython()
  52.      43 else:
  53.      44     usePython()
  54.  
  55. C:\Anaconda\lib\site-packages\pyqt_fit\kernels.py in useCython()
  56.      35     global kernels_imp
  57.      36     if HAS_CYTHON:
  58. ---> 37         from . import _kernels
  59.      38         kernels_imp = _kernels
  60.      39
  61.  
  62. C:\Anaconda\lib\site-packages\pyximport\pyximport.pyc in load_module(self, fulln
  63. ame)
  64.     429                                  self.pyxbuild_dir,
  65.     430                                  build_inplace=self.inplace,
  66. --> 431                                  language_level=self.language_level)
  67.     432         return module
  68.     433
  69.  
  70. C:\Anaconda\lib\site-packages\pyximport\pyximport.pyc in load_module(name, pyxfi
  71. lename, pyxbuild_dir, is_package, build_inplace, language_level, so_path)
  72.     207                 module_name = name
  73.     208             so_path = build_module(module_name, pyxfilename, pyxbuild_di
  74. r,
  75. --> 209                                    inplace=build_inplace, language_level
  76. =language_level)
  77.     210         mod = imp.load_dynamic(name, so_path)
  78.     211         if is_package and not hasattr(mod, '__path__'):
  79.  
  80. C:\Anaconda\lib\site-packages\pyximport\pyximport.pyc in build_module(name, pyxf
  81. ilename, pyxbuild_dir, inplace, language_level)
  82.     184                                   setup_args=sargs,
  83.     185                                   inplace=inplace,
  84. --> 186                                   reload_support=pyxargs.reload_support)
  85.  
  86.     187     assert os.path.exists(so_path), "Cannot find: %s" % so_path
  87.     188
  88.  
  89. C:\Anaconda\lib\site-packages\pyximport\pyxbuild.pyc in pyx_to_dll(filename, ext
  90. , force_rebuild, build_in_temp, pyxbuild_dir, setup_args, reload_support, inplac
  91. e)
  92.      98     try:
  93.      99         obj_build_ext = dist.get_command_obj("build_ext")
  94. --> 100         dist.run_commands()
  95.     101         so_path = obj_build_ext.get_outputs()[0]
  96.     102         if obj_build_ext.inplace:
  97.  
  98. C:\Anaconda\lib\distutils\dist.pyc in run_commands(self)
  99.     951         """
  100.    952         for cmd in self.commands:
  101. --> 953             self.run_command(cmd)
  102.    954
  103.    955     # -- Methods that operate on its Commands --------------------------
  104.  
  105. C:\Anaconda\lib\distutils\dist.pyc in run_command(self, command)
  106.    970         cmd_obj = self.get_command_obj(command)
  107.    971         cmd_obj.ensure_finalized()
  108. --> 972         cmd_obj.run()
  109.    973         self.have_run[command] = 1
  110.    974
  111.  
  112. C:\Anaconda\lib\site-packages\Cython\Distutils\build_ext.pyc in run(self)
  113.    161             optimization.disable_optimization()
  114.    162
  115. --> 163         _build_ext.build_ext.run(self)
  116.    164
  117.    165     def build_extensions(self):
  118.  
  119. C:\Anaconda\lib\distutils\command\build_ext.pyc in run(self)
  120.    335
  121.    336         # Now actually compile and link everything.
  122. --> 337         self.build_extensions()
  123.    338
  124.    339     def check_extensions_list(self, extensions):
  125.  
  126. C:\Anaconda\lib\site-packages\Cython\Distutils\build_ext.pyc in build_extensions
  127. (self)
  128.    169         for ext in self.extensions:
  129.    170             ext.sources = self.cython_sources(ext.sources, ext)
  130. --> 171             self.build_extension(ext)
  131.    172
  132.    173     def cython_sources(self, sources, extension):
  133.  
  134. C:\Anaconda\lib\distutils\command\build_ext.pyc in build_extension(self, ext)
  135.    494                                          debug=self.debug,
  136.    495                                          extra_postargs=extra_args,
  137. --> 496                                          depends=ext.depends)
  138.    497
  139.    498         # XXX -- this is a Vile HACK!
  140.  
  141. C:\Anaconda\lib\distutils\msvc9compiler.pyc in compile(self, sources, output_dir
  142. , macros, include_dirs, debug, extra_preargs, extra_postargs, depends)
  143.    552                            extra_postargs)
  144.    553             except DistutilsExecError, msg:
  145. --> 554                 raise CompileError(msg)
  146.    555
  147.    556         return objects
  148.  
  149. ImportError: Building module pyqt_fit._kernels failed: ["CompileError: command '
  150. C:\\\\Users\\\\<username>\\\\AppData\\\\Local\\\\Programs\\\\Common\\\\Microsoft\\\\
  151. Visual C++ for Python\\\\9.0\\\\VC\\\\Bin\\\\amd64\\\\cl.exe' failed with exit s
  152. tatus 2\n"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement