Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ImportError Traceback (most recent call last)
- <ipython-input-2-840d7fb94889> in <module>()
- ----> 1 import pyqt_fit1d
- C:\Anaconda\Scripts\pyqt_fit1d.py in <module>()
- 2 import matplotlib
- 3 matplotlib.use('Qt4Agg')
- ----> 4 from pyqt_fit import pyqt_fit1d
- 5 from PyQt4 import QtGui
- 6 import matplotlib
- C:\Anaconda\lib\site-packages\pyqt_fit\__init__.py in <module>()
- 13
- 14 from . import functions, residuals
- ---> 15 from . import bootstrap, plot_fit, curve_fitting, nonparam_regression
- 16 from .curve_fitting import CurveFitting
- 17 from path import path
- C:\Anaconda\lib\site-packages\pyqt_fit\bootstrap.py in <module>()
- 10 from scipy import optimize
- 11 from collections import namedtuple
- ---> 12 from . import nonparam_regression
- 13 from . import sharedmem
- 14 import multiprocessing as mp
- C:\Anaconda\lib\site-packages\pyqt_fit\nonparam_regression.py in <module>()
- 7 from __future__ import division, absolute_import, print_function
- 8 import numpy as np
- ----> 9 from . import npr_methods, kernels, kde_bandwidth
- 10 from scipy import linalg
- 11
- C:\Anaconda\lib\site-packages\pyqt_fit\npr_methods.py in <module>()
- 11 from .compat import irange
- 12 from .cyth import HAS_CYTHON
- ---> 13 from . import kde
- 14 from . import py_local_linear
- 15 from . import kernels
- C:\Anaconda\lib\site-packages\pyqt_fit\kde.py in <module>()
- 51 from __future__ import division, absolute_import, print_function
- 52 import numpy as np
- ---> 53 from .kernels import normal_kernel1d
- 54 from . import kde_methods
- 55 from .kde_bandwidth import variance_bandwidth, silverman_covariance, sco
- tts_covariance, botev_bandwidth
- C:\Anaconda\lib\site-packages\pyqt_fit\kernels.py in <module>()
- 40
- 41 if HAS_CYTHON:
- ---> 42 useCython()
- 43 else:
- 44 usePython()
- C:\Anaconda\lib\site-packages\pyqt_fit\kernels.py in useCython()
- 35 global kernels_imp
- 36 if HAS_CYTHON:
- ---> 37 from . import _kernels
- 38 kernels_imp = _kernels
- 39
- C:\Anaconda\lib\site-packages\pyximport\pyximport.pyc in load_module(self, fulln
- ame)
- 429 self.pyxbuild_dir,
- 430 build_inplace=self.inplace,
- --> 431 language_level=self.language_level)
- 432 return module
- 433
- C:\Anaconda\lib\site-packages\pyximport\pyximport.pyc in load_module(name, pyxfi
- lename, pyxbuild_dir, is_package, build_inplace, language_level, so_path)
- 207 module_name = name
- 208 so_path = build_module(module_name, pyxfilename, pyxbuild_di
- r,
- --> 209 inplace=build_inplace, language_level
- =language_level)
- 210 mod = imp.load_dynamic(name, so_path)
- 211 if is_package and not hasattr(mod, '__path__'):
- C:\Anaconda\lib\site-packages\pyximport\pyximport.pyc in build_module(name, pyxf
- ilename, pyxbuild_dir, inplace, language_level)
- 184 setup_args=sargs,
- 185 inplace=inplace,
- --> 186 reload_support=pyxargs.reload_support)
- 187 assert os.path.exists(so_path), "Cannot find: %s" % so_path
- 188
- C:\Anaconda\lib\site-packages\pyximport\pyxbuild.pyc in pyx_to_dll(filename, ext
- , force_rebuild, build_in_temp, pyxbuild_dir, setup_args, reload_support, inplac
- e)
- 98 try:
- 99 obj_build_ext = dist.get_command_obj("build_ext")
- --> 100 dist.run_commands()
- 101 so_path = obj_build_ext.get_outputs()[0]
- 102 if obj_build_ext.inplace:
- C:\Anaconda\lib\distutils\dist.pyc in run_commands(self)
- 951 """
- 952 for cmd in self.commands:
- --> 953 self.run_command(cmd)
- 954
- 955 # -- Methods that operate on its Commands --------------------------
- C:\Anaconda\lib\distutils\dist.pyc in run_command(self, command)
- 970 cmd_obj = self.get_command_obj(command)
- 971 cmd_obj.ensure_finalized()
- --> 972 cmd_obj.run()
- 973 self.have_run[command] = 1
- 974
- C:\Anaconda\lib\site-packages\Cython\Distutils\build_ext.pyc in run(self)
- 161 optimization.disable_optimization()
- 162
- --> 163 _build_ext.build_ext.run(self)
- 164
- 165 def build_extensions(self):
- C:\Anaconda\lib\distutils\command\build_ext.pyc in run(self)
- 335
- 336 # Now actually compile and link everything.
- --> 337 self.build_extensions()
- 338
- 339 def check_extensions_list(self, extensions):
- C:\Anaconda\lib\site-packages\Cython\Distutils\build_ext.pyc in build_extensions
- (self)
- 169 for ext in self.extensions:
- 170 ext.sources = self.cython_sources(ext.sources, ext)
- --> 171 self.build_extension(ext)
- 172
- 173 def cython_sources(self, sources, extension):
- C:\Anaconda\lib\distutils\command\build_ext.pyc in build_extension(self, ext)
- 494 debug=self.debug,
- 495 extra_postargs=extra_args,
- --> 496 depends=ext.depends)
- 497
- 498 # XXX -- this is a Vile HACK!
- C:\Anaconda\lib\distutils\msvc9compiler.pyc in compile(self, sources, output_dir
- , macros, include_dirs, debug, extra_preargs, extra_postargs, depends)
- 552 extra_postargs)
- 553 except DistutilsExecError, msg:
- --> 554 raise CompileError(msg)
- 555
- 556 return objects
- ImportError: Building module pyqt_fit._kernels failed: ["CompileError: command '
- C:\\\\Users\\\\<username>\\\\AppData\\\\Local\\\\Programs\\\\Common\\\\Microsoft\\\\
- Visual C++ for Python\\\\9.0\\\\VC\\\\Bin\\\\amd64\\\\cl.exe' failed with exit s
- tatus 2\n"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement