Everything in installed and has the latest version but when I'm trying to import FigureCanvasKivyAgg :
from kivy.garden.matplotlib import FigureCanvasKivyAgg
it says under matplotlib that: "Cannot find reference 'matplotlib' in 'init.py'"
Thanks for the help!
Related
I'm using for the first time awsglueml package to use the class FillMissingValues. I'm using Glue 3.0 importing the ML package as mentionned by the documentation:
from awsglueml.transforms import FillMissingValues
...
dyf = FillMissingValues.apply(dyf, "demographic", output_column="demographic")
And I got an import error:
from awsglueml.transforms import FillMissingValues
ImportError: cannot import name 'FillMissingValues' from 'awsglueml.transforms' (/opt/amazon/lib/python3.6/site-packages/awsglueml/transforms/__init__.py)
Why does the latest Glue version is not up-to-date with the latest documentation? FillMissingValues should be in the awsglueml/transform package.
#from fastai.conv_learner import *
#from fastai.dataset import *
I'm having a problem with importing
the version I use for fastai is
Successfully installed fastai-1.0.60 fastprogress-0.2.2
Does this help? https://www.reddit.com/r/learnmachinelearning/comments/a3jjvg/ive_started_working_with_fastai_but_i_cant_import/
Or maybe this? https://github.com/fastai/fastai/issues/1134
I'm trying to model evaluate the performance of our deep learning models. And below is my code. However, I still get
No module named 'model_evaluation_utils'
Is there any pip installation or conda that could solve this problem?
from keras.preprocessing.image import load_img, img_to_array, array_to_img
from keras.models import load_model
import model_evaluation_utils as meu # throws error
Implementation of "model_evaluation_utils" can be found in the following github repository:
link
I think it's not a publicly available library, there must be a model_evaluation_utils.py file which is imported in the code and is used.
I am using weka for my project. but get the error info"could not find class weka.core.FastVector" on the line below. I have already added weka.jar from the build path of the project by adding external jar file. How should I solve this problem? Thanks a lot for your time on reviewing my question.
import weka.core.Attribute;
import weka.core.FastVector;
import weka.core.Instance;
import weka.core.Instances;
FastVector atts;
private void setUpARFF(){
atts = new FastVector();}
I know that FastVector was marked as obsolete a while back, perhaps they've finally removed it. Are you using the dev version of weka (or what version are you using)? FastVector can be replaced with ArrayList (in dev version) so use that instead.
i have some Python Code working properly its some kinda simple thing using opencv.
for example
import cv2
x = cv2.imread('Dog6.jpg')
cv2.imwrite('new2.jpg')
setup.py is
from distutils.core import setup
import py2exe
import cv2
setup(console=['name.py'])
but i am unable to create exe of this code with py2exe.
is there another method to create exe of such program ?
Error is
ImportError:numpy.core.multiarray failed to import
Put the line:
import numpy
Into your script, i.e the first file and try again.