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

question #122

Open
xrhm31 opened this issue Mar 22, 2023 · 9 comments
Open

question #122

xrhm31 opened this issue Mar 22, 2023 · 9 comments

Comments

@xrhm31
Copy link

xrhm31 commented Mar 22, 2023

I tried the example, but encountered some issues. Could you please advise me on how to solve them?
ImportError: cannot import name 'CascadeForestClassifier' from 'deepforest' .
image
image

@xuyxu
Copy link
Member

xuyxu commented Mar 22, 2023

Please remove the first line and see what happens.

@xrhm31
Copy link
Author

xrhm31 commented Mar 22, 2023

I removed the first line, but still encountered the following error.
image
image

@xuyxu
Copy link
Member

xuyxu commented Mar 22, 2023

Please move your script try.py to a directory outside of the package directory. It looks like this causes the python fails to find the package.

@xrhm31
Copy link
Author

xrhm31 commented Mar 22, 2023

I tried it,and find it still error.

image
image

@xrhm31
Copy link
Author

xrhm31 commented Mar 22, 2023

This is my init.py .
image

@xuyxu
Copy link
Member

xuyxu commented Mar 22, 2023

See if CascadeForestClassifier could be successfully imported if you remove the __init__.py.

@xrhm31
Copy link
Author

xrhm31 commented Mar 23, 2023

I remove the init.py,then it still couldnot find the CascadeForestClassifier.
image

ImportError: cannot import name 'CascadeForestClassifier' from 'deepforest' (unknown location)

@xrhm31
Copy link
Author

xrhm31 commented Mar 23, 2023

then I try to restore the init.py and change its code from github .
but this has created new problems.
image

@sssuzr1
Copy link

sssuzr1 commented Jul 20, 2024

dont use "pip install deepforest”, its wrong and in doc "pip install deep-forest"
but it not work too "ERROR: No matching distribution found for deep-forest"
so, i install it from source "python setup.py install" and it work

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

3 participants