melodyguan / pyqt-fit

Automatically exported from code.google.com/p/pyqt-fit
GNU General Public License v3.0
0 stars 1 forks source link

missing _kernels module #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
>> import pyqt_fit

ImportError                               Traceback (most recent call last)
<ipython-input-2-36ec621967a7> in <module>()
----> 1 import pyqt_fit

C:\Python27\lib\site-packages\pyqt_fit-1.1.4-py2.7.egg\pyqt_fit\__init__.py in 
<module>()
     10 import functions
     11 import residuals
---> 12 from plot_fit import write1d, plot1d, fit_evaluation
     13 from curve_fitting import CurveFitting
     14 from path import path

C:\Python27\lib\site-packages\pyqt_fit-1.1.4-py2.7.egg\pyqt_fit\plot_fit.py in 
<module>()
      9 from numpy import sort, iterable, argsort, std, abs, sqrt, arange, pi, c_
     10 from pylab import figure, title, legend, plot, xlabel, ylabel, subplot, clf, ylim, hist, suptitle, gca
---> 11 import bootstrap
     12 from itertools import izip, chain
     13 from scipy.special import erfinv, gamma

C:\Python27\lib\site-packages\pyqt_fit-1.1.4-py2.7.egg\pyqt_fit\bootstrap.py in 
<module>()
     10 from collections import namedtuple
     11 from itertools import izip
---> 12 import kernel_smoothing
     13 import sharedmem
     14 import multiprocessing as mp

C:\Python27\lib\site-packages\pyqt_fit-1.1.4-py2.7.egg\pyqt_fit\kernel_smoothing
.py in <module>()
     14 import cy_local_linear
     15 
---> 16 from kde import scotts_bandwidth
     17 from kernels import normal_kernel
     18 

C:\Python27\lib\site-packages\pyqt_fit-1.1.4-py2.7.egg\pyqt_fit\kde.py in 
<module>()
      8 from scipy.special import erf
      9 import cyth
---> 10 from kernels import normal_kernel1d
     11 
     12 def variance_bandwidth(factor, xdata):

C:\Python27\lib\site-packages\pyqt_fit-1.1.4-py2.7.egg\pyqt_fit\kernels.py in 
<module>()
      4 import numpy as np
      5 from scipy.special import erf
----> 6 import _kernels
      7 from scipy.weave import inline
      8 

ImportError: No module named _kernels

-----

Platform: Windows 7
Python 2.7.2 |EPD 7.1-1 (32-bit)

Original issue reported on code.google.com by brad.rei...@gmail.com on 25 Jan 2013 at 9:50

GoogleCodeExporter commented 8 years ago
Hey, yes thank you, I forgot to add it to the MANIFEST file. It should be 
working now (v1.1.7).

Original comment by pierre.b...@gmail.com on 28 Jan 2013 at 8:09

GoogleCodeExporter commented 8 years ago
Ok, I need to make some more test. It works with local files though.

Original comment by pierre.b...@gmail.com on 28 Jan 2013 at 10:22

GoogleCodeExporter commented 8 years ago
Turned out, I also forgot to import cyth before the Cython module in kernels.py
It's done now and it seems to be working.
It will be available in 1.1.8

Original comment by pierre.b...@gmail.com on 28 Jan 2013 at 10:32