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

Issues running spectralis example #6

Open
jamc1996 opened this issue Oct 28, 2024 · 0 comments
Open

Issues running spectralis example #6

jamc1996 opened this issue Oct 28, 2024 · 0 comments

Comments

@jamc1996
Copy link

Hello,

I'm trying to run the spectralis example but I encountered some problems.

First when I followed the README instructions I couldn't run spectralis with error message:

RuntimeError: The grpc package installed is at version 1.62.3, but the generated code in grpc_service_pb2_grpc.py depends on grpcio>=1.66.1. Please upgrade your grpc module to grpcio>=1.66.1 or downgrade your generated code using grpcio-tools<=1.62.3.

I couldn't downgrade successfully so I created an environment with python 3.8 instead of python 3.7 which solved that problem but led to the following error when spectralis loads the model:

ValueError: node array from the pickle has an incompatible dtype:
- expected: {'names': ['left_child', 'right_child', 'feature', 'threshold', 'impurity', 'n_node_samples', 'weighted_n_node_samples', 'missing_go_to_left'], 'formats': ['<i8', '<i8', '<i8', '<f8', '<f8', '<i8', '<f8', 'u1'], 'offsets': [0, 8, 16, 24, 32, 40, 48, 56], 'itemsize': 64}
- got     : [('left_child', '<i8'), ('right_child', '<i8'), ('feature', '<i8'), ('threshold', '<f8'), ('impurity', '<f8'), ('n_node_samples', '<i8'), ('weighted_n_node_samples', '<f8')]

Thanks for your help in advance!

Best wishes,
John.

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

1 participant