Can't run wrapper from pycharm

123 views
Skip to first unread message

sasini de silva

unread,
Jun 8, 2018, 12:08:16 PM6/8/18
to python-weka-wrapper
Hi, I'm using pycharm IDE on windows with python 2.7. I have installed javabridge (Using pre compiled version) and python weka wrapper (using pip). But I'm getting error, 


  File "C:/Users/Sasini/PycharmProjects/training/new.py", line 1, in <module>
    import weka.core.jvm as jvm
ImportError: No module named core.jvm

Could you please help me out.








Peter Reutemann

unread,
Jun 8, 2018, 6:01:03 PM6/8/18
to python-weka-wrapper
> Hi, I'm using pycharm IDE on windows with python 2.7. I have installed
> javabridge (Using pre compiled version) and python weka wrapper (using pip).
> But I'm getting error,
>
>
> File "C:/Users/Sasini/PycharmProjects/training/new.py", line 1, in
> <module>
> import weka.core.jvm as jvm
> ImportError: No module named core.jvm

It looks like you're using an interpreter that doesn't have pww
installed. Did you install pww into a virtual environment (virtualenv
or anaconda)? If that is the case, you need to configure this Python
Interpreter in PyCharm first. Once you've done that, you can select
that interpreter for running your pww scripts.

Cheers, Peter
--
Peter Reutemann
Dept. of Computer Science
University of Waikato, NZ
+64 (7) 858-5174
http://www.cms.waikato.ac.nz/~fracpete/
http://www.data-mining.co.nz/

sasini de silva

unread,
Jun 8, 2018, 11:58:10 PM6/8/18
to python-we...@googlegroups.com
Issue was fixed. Now it is working. :) Thanks for your great support..

Reply all
Reply to author
Forward
0 new messages