Keep getting an error Can't get attribute 'VotingEnsemble' on <module 'crunch.__main__

My notebook works locally and the class they are complaining about is definitely in my notebook
but I keep getting the following error

Can’t get attribute ‘VotingEnsemble’ on <module ‘crunch.main’ from ‘/context/venv/lib/python3.10/site-packages/crunch/main.py’>

Could you please advise ?

Could you provide a bit more context on your code please:

  • I can see that you use joblib to load your model, how did you saved it? joblib.dump?
  • Which tool did you used to work on your notebook? Colab? Kaggle? VSCode?

Issues related to joblib are delicate as they could affect everyone else.

Hello yes you are correct I use joblib.dump in VSCode (local to my mac)
After that I also tried to restart my notebook and run crunch.test which loads the model and runs correctly (with joblib.load(f"{model_directory_path}/pipe.joblib"))

the VotingEnsamble definition is in the notebook so I am not sure what’s going on
everything works fine locally.

It is fixed, I was able to reproduce the issue locally.

Can you recreate your run?

Different problem this time. Still related to pickle but this time is (runs fine locally)

File “/context/venv/lib/python3.10/site-packages/numpy/random/_pickle.py”, line 34, in __bit_generator_ctor
raise ValueError(str(bit_generator_name) + ’ is not a known ’
ValueError: <class ‘numpy.random._mt19937.MT19937’> is not a known BitGenerator module.
command not exited correctly: 1

I don’t have any more runs for today, is it possible to get a reset ?

It could be related to an old version of Numpy.

Please specify which version you would like in the cloud environment via the import statement:

# this is an example, change it to your need
import numpy # ==1.2.3

More informations are available in the documentation.


Regarding the quota, you are likely referring about the daily submission count quota.
I just increased it.

thanks but it still doesn’t let me, saying I reach the maximum of 5 for today

It was a bug on our side.
It has been fixed and you can now submit again.

1 Like