gym_longicontrol icon indicating copy to clipboard operation
gym_longicontrol copied to clipboard

ModuleNotFoundError

Open Paras-Shah-sudo opened this issue 1 year ago • 4 comments

Whenever I try to run the project after iniatlising it and I want to visualize it, I run the code->

python3 main.py --load_id 9 -vis

After this I get the error->

ModuleNotFoundError: No module named 'sklearn.neural_network.multilayer_perceptron

Running on- Ubuntu 22.04 LTS Python 3.10.12 Torch 2.1.1+cpu scikit-learn 1.3.1 Tensorflow 2.15 shap 0.43.0 gym 0.26.2 numpy 1.26.2

Paras-Shah-sudo avatar Nov 21 '23 08:11 Paras-Shah-sudo

Hi, LongiControl is not updated to the current versions of scikit-learn and especially gym(nasium). Just for verification, could you try again with gym==0.12.1 and scikit-learn==0.21.2?

dohmjan avatar Nov 23 '23 11:11 dohmjan

@dohmjan So I tried installing these versions and gym works fine but scikit is not installing for this particular version and gives the error -> ERROR: Could not build wheels for scikit-learn, which is required to install pyproject.toml-based projects Also gives the note-> note: This error originates from a subprocess, and is likely not a problem with pip.

Paras-Shah-sudo avatar Nov 23 '23 12:11 Paras-Shah-sudo

Sorry it's hard to help you with that. Try maybe different versions of scikit_learn, e.g. scikit_learn==0.22.2.post1. Maybe also using Python3.8 might do it. Maybe this link is of help.

dohmjan avatar Nov 24 '23 07:11 dohmjan

@dohmjan Well alright can you tell me the exact version requirements for which you are sure that the project definitely works? So that would include the python version, scikit version etc.

Paras-Shah-sudo avatar Nov 24 '23 08:11 Paras-Shah-sudo