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

pyfrom import error #6

Closed
ccfuncy opened this issue Nov 16, 2022 · 2 comments
Closed

pyfrom import error #6

ccfuncy opened this issue Nov 16, 2022 · 2 comments

Comments

@ccfuncy
Copy link

ccfuncy commented Nov 16, 2022

I tried your installation method of pyrfm and successfully installed pyrfm, but the following exception was thrown when I used it. Could you please provide me with help? Thank you

root@Ieb7bd1b1801501882:/pyrfm# python
Python 3.8.10 (default, Mar 15 2022, 12:22:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
from pyrfm import MB, SparseMBClassifier, SparseMB
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/pyrfm/pyrfm/__init__.py", line 1, in <module>
    from .random_feature import (RandomFourier, RandomMaclaurin,
  File "/pyrfm/pyrfm/random_feature/__init__.py", line 2, in <module>
    from .random_kernel import RandomKernel, SubfeatureRandomKernel
  File "/pyrfm/pyrfm/random_feature/random_kernel.py", line 11, in <module>
    from ..kernels import anova, all_subsets, anova_fast, pairwise
  File "/pyrfm/pyrfm/kernels.py", line 4, in <module>
    from .kernels_fast import _anova, _all_subsets, _intersection, _chi_square
ModuleNotFoundError: No module named 'pyrfm.kernels_fast'
@neonnnnn
Copy link
Owner

neonnnnn commented Mar 5, 2023

@ccfuncy
Sorry for my delayed response. It seems that you executed python command in the /pyrfm directory, so I think that the statement from pyrfm import MB, SparseMBClassifier, SparseMB tried to import your local pyrfm, namely, /pyrfm/pyrfm. Can you execute the same statement in a different directory?

@ccfuncy
Copy link
Author

ccfuncy commented Jul 11, 2023

yes,so thank your response.I have solved this problem with a similar solution.

@ccfuncy ccfuncy closed this as completed Jul 11, 2023
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

2 participants