AttributeError: module 'ecole' has no attribute 'instance' #129
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Hello @augustgao1995, Nice to meet you. I'm personally a graduate student in Polytechnique Montréal. I am not able to reproduce this problem with Ecole print("version: {v.major}.{v.minor}.{v.patch}@{v.git_revision}".format(v=ecole.core.get_build_version())) On my computer, it prints
|
Beta Was this translation helpful? Give feedback.
-
by the way, I tried another install command of Ecole, and I got this. |
Beta Was this translation helpful? Give feedback.
-
The print command: print("version: {v.major}.{v.minor}.{v.patch}@{v.git_revision}".format(v=ecole.core.get_build_version())) is Python code, so you'll need to run it in your Jupyter Notebook that you showed in your first message. Otherwise, in you terminal, you can try the command: python -m ecole.version For the new install command you run, I am not sure what is going on, but one hypothesis I have is that we currently need to run the command with both conda install -c conda-forge -c scipopt ecole If your conda environment is getting corrupted, perhaps you could create a new one? conda create -n other_ecole -c conda-forge -c scipopt ecole pyscipopt |
Beta Was this translation helpful? Give feedback.
-
Thank you for your patience and help. I got this error in Jupiter notebook. |
Beta Was this translation helpful? Give feedback.
-
In that last error message, I cannot reproduce your error under any version of ecole since the instance generator were introduced ( conda uninstall ecole
conda install -c conda-forge -c scipopt 'ecole>=0.4' |
Beta Was this translation helpful? Give feedback.
In that last error message,
name 'ecole' is not defined
, Python is telling you that you are using some name (ecole
) that is not in your scope.Indeed, it does not exist yet in your notebook. You need to
import ecole
for that code to work.I cannot reproduce your error under any version of ecole since the instance generator were introduced (
v0.3.0
).I think the best thing to do for you would be to try to reinstall everything from the start.
conda uninstall ecole conda install -c conda-forge -c scipopt 'ecole>=0.4'