shogun-toolbox / shogun

Shōgun
http://shogun-toolbox.org
BSD 3-Clause "New" or "Revised" License
3.03k stars 1.04k forks source link

Importing error of shogun installed with conda #5150

Closed hmzhangBio closed 3 years ago

hmzhangBio commented 3 years ago

I installed shogun using "conda install -c conda-forge shogun". I can import it successfully in python environment. However, I got the following errors when I imported other classes of shogun

import shogun as sg from sg.Features import StringCharFeatures, RealFeatures Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'sg'

I'm wondering do I use shogun in a wrong way? Are there any examples showing how to use shogun installed with conda? Thanks!

pandeyanuradha commented 3 years ago

Hey @hmzhangBio, I am facing the same error, could you get any solution for this?

gf712 commented 3 years ago

Hi, so Features is a class not a module. Features is the base class of all features .But that doesn't seem to be the issue.. What python version are you using?

pandeyanuradha commented 3 years ago

Hey, so the python version I am using is : Python 3.6.3 :: Anaconda, Inc.

hmzhangBio commented 3 years ago

@gf712 , Thanks for the reply! I use Python 3.6.7 installed from miniconda3.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 3 years ago

This issue is now being closed due to a lack of activity. Feel free to reopen it.