Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import CascadeForestClassifier #131

Open
tomthecat1 opened this issue Jul 24, 2023 · 7 comments
Open

Unable to import CascadeForestClassifier #131

tomthecat1 opened this issue Jul 24, 2023 · 7 comments

Comments

@tomthecat1
Copy link

Despite following the instructions provided in the README document and using pip to install 'deep-forest,' I encountered a 'ModuleNotFoundError' when trying to import the package in my code.

To troubleshoot, I attempted to clone the GitHub repository directly and forced the environment to recognize the cloned path. Unfortunately, this resulted in another error: 'ImportError: cannot import name '_cutils' from partially initialized module 'deepforest' (most likely due to a circular import) (/content/Deep-Forest/deepforest/init.py).'

This is the full error message:

ImportError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from deepforest.cascade import CascadeForestClassifier

2 frames
/content/Deep-Forest/deepforest/_utils.py in
5 from datetime import datetime
6
----> 7 from . import _cutils as _LIB
8
9

ImportError: cannot import name '_cutils' from partially initialized module 'deepforest' (most likely due to a circular import) (/content/Deep-Forest/deepforest/init.py)


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

@xuyxu
Copy link
Member

xuyxu commented Jul 24, 2023

Hi @tomthecat1, I have sent you an email to solve this issue. Feel free to comment below if you have any other problem.

@XiaoYigao
Copy link

I also have this problem, how should I solve it?

@0313Fly
Copy link

0313Fly commented Oct 9, 2023

Hi @tomthecat1, I have sent you an email to solve this issue. Feel free to comment below if you have any other problem.

I also have this problem, could you please email to me?Thanks very much.
My email: [email protected]

@ipap0123
Copy link

Hi @xuyxu, I have the same issue when trying to run the python code in Windows. Can you please send me the solution for this issue?

@RaXie0101
Copy link

Hi @xuyxu , I have the same issue when trying to run the python code. Can you please send me the solution for this issue?My email: [email protected]

@xsyshr
Copy link

xsyshr commented Dec 7, 2023

Hi @xuyxu , I have the same issue when trying to run the python code. Can you please send me the solution for this issue? My email: [email protected]

@leschultz
Copy link

Can somebody actually post the solution here instead of sending private email solutions? This is important for result replication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants